chg: [crawler] update default user agent

This commit is contained in:
Terrtia 2023-04-04 09:23:52 +02:00
parent d01780dd95
commit 54a0bcb022
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -625,7 +625,7 @@ def api_import_cookies_from_json(user_id, cookiejar_uuid, json_cookies_str): # #
# # # # # # # # # # # # # # # #
def get_default_user_agent(): def get_default_user_agent():
return 'Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0' return 'Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0'
def get_last_crawled_domains(domain_type): def get_last_crawled_domains(domain_type):
return r_crawler.lrange(f'last_{domain_type}', 0, -1) return r_crawler.lrange(f'last_{domain_type}', 0, -1)