mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 12:12:34 +01:00
update default user-agent string (closes #122)
This commit is contained in:
parent
7e2d6bcd62
commit
2fa28a2609
@ -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
|
||||
|
@ -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":
|
||||
{
|
||||
|
@ -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"""
|
||||
|
Loading…
Reference in New Issue
Block a user