From 2fa28a260951fd49d7fda96df4f96a60a949083b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 11 Nov 2018 10:07:10 +0100 Subject: [PATCH] update default user-agent string (closes #122) --- docs/configuration.rst | 2 +- docs/gallery-dl.conf | 2 +- gallery_dl/extractor/common.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 68669a02..2b307ab3 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -203,7 +203,7 @@ extractor.*.user-agent ---------------------- =========== ===== Type ``string`` -Default ``"Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0"`` +Default ``"Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0"`` Description User-Agent header value to be used for HTTP requests. Note: This option has no effect on `pixiv` and diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 579154b0..abecd473 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -8,7 +8,7 @@ "proxy": null, "skip": true, "sleep": 0, - "user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0", + "user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0", "artstation": { diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 8905ff42..ab8b8c72 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -109,8 +109,8 @@ class Extractor(): """Set additional headers for the 'session' object""" self.session.headers["Accept-Language"] = "en-US,en;q=0.5" self.session.headers["User-Agent"] = self.config( - "user-agent", ("Mozilla/5.0 (X11; Linux x86_64; rv:54.0) " - "Gecko/20100101 Firefox/54.0")) + "user-agent", ("Mozilla/5.0 (X11; Linux x86_64; rv:62.0) " + "Gecko/20100101 Firefox/62.0")) def _set_cookies(self): """Populate the session's cookiejar"""