Update Chrome major version range in user agent

This commit is contained in:
nicolaasjan 2026-02-13 08:36:10 +01:00 committed by GitHub
parent aa4db1449b
commit e5ced08432
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ compiled_regex_type = compat_re_Pattern
def random_user_agent():
USER_AGENT_TMPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{} Safari/537.36'
CHROME_MAJOR_VERSION_RANGE = (134, 144)
CHROME_MAJOR_VERSION_RANGE = (135, 145)
return USER_AGENT_TMPL.format('{0}.0.0.0'.format(random.randint(*CHROME_MAJOR_VERSION_RANGE)))