Update Chrome major version range in user agent

This commit is contained in:
nicolaasjan 2026-10-21 05:58:48 +02:00 committed by GitHub
parent d9c68cc459
commit 3cb2ec6312
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 = (141, 151)
CHROME_MAJOR_VERSION_RANGE = (145, 155)
return USER_AGENT_TMPL.format('{0}.0.0.0'.format(random.randint(*CHROME_MAJOR_VERSION_RANGE)))