Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
TAAPArthur committed May 14, 2024
1 parent 047a397 commit 3f4f60f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions amt/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def _request(self, post_request, url, force_cloud_scraper=False, start=0, need_a
kwargs["verify"] = False
if need_auth_headers:
kwargs["headers"] = self.get_auth_headers()
if "headers" in kwargs:
kwargs["headers"]["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0"
self.update_default_args(kwargs)
session = self.session
if not kwargs.get("verify", True):
Expand Down
2 changes: 1 addition & 1 deletion amt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Settings:
max_retries = 3
backoff_factor = 1
status_to_retry = [403, 429, 500, 502, 503, 504]
user_agent = "Mozilla/5.0"
user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0"

# Cookies
cookies = []
Expand Down

0 comments on commit 3f4f60f

Please sign in to comment.