mirror of
https://github.com/adulau/DomainClassifier.git
synced 2024-11-22 18:07:07 +00:00
Merge pull request #5 from Terrtia/master
chg: [domainclassifier] update req user-agent
This commit is contained in:
commit
e0b66d73db
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue