Update Chrome major version range in user agent

This commit is contained in:
nicolaasjan 2026-04-08 09:24:46 +02:00 committed by GitHub
parent fc5ddd8e7a
commit 405324d770
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 = (135, 145)
CHROME_MAJOR_VERSION_RANGE = (137, 147)
return USER_AGENT_TMPL.format('{0}.0.0.0'.format(random.randint(*CHROME_MAJOR_VERSION_RANGE)))