chg: [crawler] update tor user agent

pull/607/merge
terrtia 2024-10-08 10:27:03 +02:00
parent d9fc014a1d
commit 554897e1d8
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ def api_import_cookies_from_json(user_org, user_id, user_role, cookiejar_uuid, j
# # # # # # # # # # # # # # # #
def get_default_user_agent(): def get_default_user_agent():
return 'Mozilla/5.0 (Windows NT 10.0; rv:102.0) Gecko/20100101 Firefox/102.0' return 'Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.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)