Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterirving committed Nov 10, 2024
1 parent 8ea86ef commit 7d967cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions extensions/reddit/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
import mimetypes

DOMAIN = "reddit.com"
USER_AGENT = None

def set_user_agent(user_agent):
global USER_AGENT
USER_AGENT = user_agent
USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"

def handle_request(request):
if request.method != 'GET':
Expand Down
1 change: 0 additions & 1 deletion extensions/waybackmachine/waybackmachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
last_request_time = 0
REQUEST_DELAY = 0.2 # Minimum time between requests in seconds

# Import USER_AGENT from proxy
USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"

# Create a session object for persistent connections
Expand Down

0 comments on commit 7d967cc

Please sign in to comment.