Update UA browser versions; Remove Android as system platform
lint
This commit is contained in:
@ -110,24 +110,15 @@ class SlowRequests(Session):
|
|||||||
def get_random_user_agent() -> str:
|
def get_random_user_agent() -> str:
|
||||||
windows_x64 = "Windows NT 10.0; Win64; x64"
|
windows_x64 = "Windows NT 10.0; Win64; x64"
|
||||||
linux_x64 = "X11; Linux x86_64"
|
linux_x64 = "X11; Linux x86_64"
|
||||||
android = [f"Android {version}; Mobile" for version in range(8, 12)]
|
android = [] # [f"Android {version}; Mobile" for version in range(10, 13)]
|
||||||
|
|
||||||
firefox_template = "Mozilla/5.0 ({osystem}; rv:{version}.0) Gecko/20100101 Firefox/{version}.0"
|
firefox_template = "Mozilla/5.0 ({osystem}; rv:{version}.0) Gecko/20100101 Firefox/{version}.0"
|
||||||
firefox_versions = range(85, 92)
|
firefox_versions = range(92, 97)
|
||||||
|
|
||||||
chrome_template = (
|
chrome_template = (
|
||||||
"Mozilla/5.0 ({osystem}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{version} Safari/537.36"
|
"Mozilla/5.0 ({osystem}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{version} Safari/537.36"
|
||||||
)
|
)
|
||||||
chrome_versions = [
|
chrome_versions = ["92.0.4515.159", "93.0.4577.82", "94.0.4606.81", "95.0.4638.54", "96.0.4664.110"]
|
||||||
"85.0.4183.121",
|
|
||||||
"86.0.4240.183",
|
|
||||||
"87.0.4280.141",
|
|
||||||
"88.0.4324.182",
|
|
||||||
"89.0.4389.128",
|
|
||||||
"90.0.4430.18",
|
|
||||||
"91.0.4472.73",
|
|
||||||
"92.0.4515.159",
|
|
||||||
]
|
|
||||||
uas = []
|
uas = []
|
||||||
|
|
||||||
for osystem in [windows_x64, linux_x64, *android]:
|
for osystem in [windows_x64, linux_x64, *android]:
|
||||||
|
@ -735,7 +735,6 @@ class Reporter:
|
|||||||
self.register_account()
|
self.register_account()
|
||||||
self.allowed = True
|
self.allowed = True
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def citizen(self):
|
def citizen(self):
|
||||||
return self._citizen()
|
return self._citizen()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
PySocks==1.7.1
|
PySocks==1.7.1
|
||||||
pytz==2021.3
|
pytz==2021.3
|
||||||
requests==2.26.0
|
requests==2.27.0
|
||||||
requests-toolbelt==0.9.1
|
requests-toolbelt==0.9.1
|
||||||
|
Reference in New Issue
Block a user