mirror of
https://github.com/adulau/DomainClassifier.git
synced 2024-11-22 01:47:06 +00:00
chg: [domainclassifier] update req user-agent
This commit is contained in:
parent
1e55e0a5a7
commit
c769bba999
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class Extract:
|
|||
req = urllib.Request(ianatldlist)
|
||||
req.add_header(
|
||||
'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')
|
||||
f = open(tldcache, "wb")
|
||||
|
|
Loading…
Reference in a new issue