[utils] random_user_agent: update with past stable release versions

This commit is contained in:
Timo Gurr 2023-07-31 19:13:31 +02:00
parent a006ce2b27
commit 965cffc2a2
1 changed files with 28 additions and 28 deletions

View File

@ -9,34 +9,6 @@ from ._utils import remove_start
def random_user_agent():
_USER_AGENT_TPL = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36'
_CHROME_VERSIONS = (
'90.0.4430.212',
'90.0.4430.24',
'90.0.4430.70',
'90.0.4430.72',
'90.0.4430.85',
'90.0.4430.93',
'91.0.4472.101',
'91.0.4472.106',
'91.0.4472.114',
'91.0.4472.124',
'91.0.4472.164',
'91.0.4472.19',
'91.0.4472.77',
'92.0.4515.107',
'92.0.4515.115',
'92.0.4515.131',
'92.0.4515.159',
'92.0.4515.43',
'93.0.4556.0',
'93.0.4577.15',
'93.0.4577.63',
'93.0.4577.82',
'94.0.4606.41',
'94.0.4606.54',
'94.0.4606.61',
'94.0.4606.71',
'94.0.4606.81',
'94.0.4606.85',
'95.0.4638.17',
'95.0.4638.50',
'95.0.4638.54',
@ -47,6 +19,34 @@ def random_user_agent():
'96.0.4664.55',
'96.0.4664.93',
'97.0.4692.20',
'97.0.4692.71',
'97.0.4692.99',
'98.0.4758.80',
'98.0.4758.102',
'99.0.4844.51',
'99.0.4844.74',
'99.0.4844.82',
'99.0.4844.84',
'100.0.4896.60',
'100.0.4896.75',
'100.0.4896.88',
'100.0.4896.127',
'101.0.0.0',
'102.0.0.0',
'103.0.0.0',
'104.0.0.0',
'105.0.0.0',
'106.0.0.0',
'107.0.0.0',
'108.0.0.0',
'109.0.0.0',
'110.0.0.0',
'111.0.0.0',
'112.0.0.0',
'113.0.0.0',
'114.0.0.0',
'115.0.0.0',
'116.0.0.0',
)
return _USER_AGENT_TPL % random.choice(_CHROME_VERSIONS)