-
Notifications
You must be signed in to change notification settings - Fork 272
Open
Labels
Description
Edited by @Nandaka: Please follow this step first
https://github.com/Nandaka/PixivUtil2/wiki#pixiv-login-using-cookie
https://github.com/Nandaka/PixivUtil2/wiki#fanbox-login-using-cookie
Prerequisites
Description
Trying to start PixivUtil to get pictures, connection fails
Steps to Reproduce
Start up configured PixivUtil2
Expected behavior:
Program starts normally, downloads work
Actual behavior:
Cannot Login!
press enter to exit
2020-10-14 09:01:16,420 - PixivUtil20201009-beta1 - INFO - ###############################################################
2020-10-14 09:01:16,420 - PixivUtil20201009-beta1 - INFO - Starting with argument: [E:\conf\pixiv\pixivutil\PixivUtil2.exe].
2020-10-14 09:01:16,423 - PixivUtil20201009-beta1 - INFO - Setting log level to: DEBUG
2020-10-14 09:01:16,423 - PixivUtil20201009-beta1 - INFO - No default cookie jar available, creating...
2020-10-14 09:01:16,565 - PixivUtil20201009-beta1 - INFO - Using default DB Path: E:\conf\pixiv\pixivutil\db.sqlite
2020-10-14 09:01:16,567 - PixivUtil20201009-beta1 - INFO - Using Username: nhorus
2020-10-14 09:01:16,567 - PixivUtil20201009-beta1 - INFO - Trying to log in with saved cookie
2020-10-14 09:01:16,765 - PixivUtil20201009-beta1 - ERROR - Error at doLogin(): (<class 'mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper'>, <httperror_seek_wrapper (urllib.error.HTTPError instance) at 0x41b9fa0 whose wrapped object = <HTTPError 403: 'Forbidden'>>, <traceback object at 0x041E3148>)
2020-10-14 09:01:16,767 - PixivUtil20201009-beta1 - ERROR - Traceback (most recent call last):
File "PixivUtil2.py", line 1077, in doLogin
last_image_id = -1
File "PixivBrowserFactory.pyc", line 317, in loginUsingCookie
File "PixivBrowserFactory.pyc", line 206, in open_with_retry
File "mechanize\_mechanize.pyc", line 253, in open
File "mechanize\_mechanize.pyc", line 309, in _mech_open
mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 403: Forbidden
2020-10-14 09:01:16,767 - PixivUtil20201009-beta1 - ERROR - Cannot Login!
2020-10-14 09:01:16,768 - PixivUtil20201009-beta1 - ERROR - Traceback (most recent call last):
File "PixivUtil2.py", line 1077, in doLogin
last_image_id = -1
File "PixivBrowserFactory.pyc", line 317, in loginUsingCookie
File "PixivBrowserFactory.pyc", line 206, in open_with_retry
File "mechanize\_mechanize.pyc", line 253, in open
File "mechanize\_mechanize.pyc", line 309, in _mech_open
mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 403: Forbidden
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "PixivUtil2.py", line 1278, in main
parsed_page = BeautifulSoup(page.read().decode("utf-8"), features="html5lib")
File "PixivUtil2.py", line 1084, in doLogin
raise
PixivException.PixivException: 0 Cannot Login!, hasDumpPage=N, pageData=None
Versions
You can get this information from executing PixivUtil2.py --help
.
Latest version available in https://github.com/Nandaka/PixivUtil2/releases