Skip to content

Commit

Permalink
Change useragent to something that doesn't get blocked
Browse files Browse the repository at this point in the history
Looks like Nandaka#1239 is still the case, with pixiv now blocking the current user agent, too. Switching it to the recommended value from 1239, however, works.
  • Loading branch information
Pomax authored Apr 20, 2024
1 parent d0bfaae commit b94c487
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PixivConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b94c487

Please sign in to comment.