chg: [domainclassifier] update req user-agent

This commit is contained in:
terrtia 2024-01-09 15:02:22 +01:00
parent 1e55e0a5a7
commit c769bba999
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -95,7 +95,7 @@ class Extract:
req = urllib.Request(ianatldlist) req = urllib.Request(ianatldlist)
req.add_header( req.add_header(
'User-Agent', 'User-Agent',
'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0',
) )
tlds = (urllib.urlopen(req).read()).decode('utf8') tlds = (urllib.urlopen(req).read()).decode('utf8')
f = open(tldcache, "wb") f = open(tldcache, "wb")