From b2a8ece290f4254c43a67eac68de372fff56dbdd Mon Sep 17 00:00:00 2001 From: Pomax Date: Sat, 20 Apr 2024 07:52:53 -0700 Subject: [PATCH] Change useragent to something that doesn't get blocked Looks like https://github.com/Nandaka/PixivUtil2/issues/1239 is still the case, with pixiv now blocking the current user agent, too. Switching it to the recommended value from 1239, however, works. --- PixivConfig.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PixivConfig.py b/PixivConfig.py index 681cdb77..5eaa5091 100644 --- a/PixivConfig.py +++ b/PixivConfig.py @@ -57,8 +57,7 @@ class PixivConfig(): __items = [ ConfigItem("Network", "useProxy", False), ConfigItem("Network", "proxyAddress", ""), - ConfigItem("Network", "useragent", - "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0"), + ConfigItem("Network", "useragent", "Mozilla/5.0"), ConfigItem("Network", "useRobots", True), ConfigItem("Network", "timeout", 60), ConfigItem("Network", "retry", 3),