From c769bba999334a6e66f7ee1f88aa8513aac55db7 Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 9 Jan 2024 15:02:22 +0100 Subject: [PATCH] chg: [domainclassifier] update req user-agent --- DomainClassifier/domainclassifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DomainClassifier/domainclassifier.py b/DomainClassifier/domainclassifier.py index 40ff813..e072e5c 100644 --- a/DomainClassifier/domainclassifier.py +++ b/DomainClassifier/domainclassifier.py @@ -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")