diff --git a/amt/server.py b/amt/server.py index 3757fb7..b977a97 100644 --- a/amt/server.py +++ b/amt/server.py @@ -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): diff --git a/amt/settings.py b/amt/settings.py index 3886536..545a2e1 100644 --- a/amt/settings.py +++ b/amt/settings.py @@ -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 = []