mirror of
https://github.com/adulau/DomainClassifier.git
synced 2024-12-22 16:45:59 +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.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