From c676a16752e0eb69fef6fc49eda054dd3fe94853 Mon Sep 17 00:00:00 2001 From: klea Date: Mon, 1 Jun 2026 12:34:50 +0000 Subject: wikibot-m(atf): Use our own User-Agent string Seems silly to act as if we were Mozilla but I guess it was put there for some purpose? --- wikibot-manual/archiveteamfun.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wikibot-manual/archiveteamfun.py b/wikibot-manual/archiveteamfun.py index 36f243f..60e43f0 100644 --- a/wikibot-manual/archiveteamfun.py +++ b/wikibot-manual/archiveteamfun.py @@ -128,7 +128,8 @@ def getURL(url='', cache=False, retry=True): #print("Using cached page for %s" % (url)) return ArchivebotCache[url] raw = '' - headers = { 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0' } + #headers = { 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0' } + headers = { 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0, ArchiveWikiListGenerator) Gecko/20100101 Firefox/55.0' } request = urllib.request.Request(url, headers=headers) try: print("Retrieving: %s" % (url)) -- cgit v1.3.1-10-gc9f91