pixiv downloader 20160806

Changelog for 20160806

  • Implement #141: allow custom datetime format for filename.
  • Fix image caption parsing.
  • Remove tempFolder configuration, use tempfile.mkdtemp() instead.

Note: use %works_date_fmt{<format>}% ==> works date using custom format. The format is using Python string format notation, e.g.

%works_date_fmt{%Y-%m-%d}%

Download link for latest version, source code in GitHub.

Donate http://bit.ly/PixivUtilDonation

6 thoughts on “pixiv downloader 20160806”

  1. Hello, I’m using 20160807 Beta1 and today I found out that I can’t log in.

    PixivUtil20160807-beta1 – INFO – Starting…
    PixivUtil20160807-beta1 – INFO – Setting log level to: DEBUG
    PixivUtil20160807-beta1 – INFO – No default cookie jar available, creating…
    PixivUtil20160807-beta1 – INFO – using default DB Path: G:\pixivutil\pixivutil20160807-beta1\db.sqlite
    PixivUtil20160807-beta1 – INFO – Only process member where day last updated >= 7
    PixivUtil20160807-beta1 – INFO – Trying to log with saved cookie
    PixivUtil20160807-beta1 – ERROR – Error at doLogin(): (, BadStatusLine(“””,), )
    PixivUtil20160807-beta1 – ERROR – Cannot Login!
    PixivUtil20160807-beta1 – INFO – EXIT: 1005

    Can you help me figure this out? thanks

    1. bad status line usually due to network/isp issue.

      Try to delete the cookie value from config.ini, also ensure you can open the site from browser.

      1. I tried to delete the cookie value so I could log in. However when I try to search a tag, there’s error.

        2016-08-11 20:16:04,234 – PixivUtil20160807-beta1 – INFO – Starting…
        2016-08-11 20:16:04,239 – PixivUtil20160807-beta1 – INFO – Setting log level to: DEBUG
        2016-08-11 20:16:04,239 – PixivUtil20160807-beta1 – INFO – No default cookie jar available, creating…
        2016-08-11 20:16:04,243 – PixivUtil20160807-beta1 – INFO – using default DB Path: G:\pixivutil\pixivutil20160807-beta1\db.sqlite
        2016-08-11 20:16:04,296 – PixivUtil20160807-beta1 – INFO – Only process member where day last updated >= 7
        2016-08-11 20:16:07,776 – PixivUtil20160807-beta1 – INFO – Logging in…
        2016-08-11 20:16:09,167 – PixivUtil20160807-beta1 – INFO – Logging in, return url: https://accounts.pixiv.net/api/login?lang=en
        2016-08-11 20:16:09,167 – PixivUtil20160807-beta1 – INFO – {“error”:false,”message”:””,”body”:{“successed”:{“return_to”:”http:\/\/www.pixiv.net”}}}
        2016-08-11 20:16:09,168 – PixivUtil20160807-beta1 – INFO – new cookie value: 8764615_6b1b438d159a44986c16482b75ed42f1
        2016-08-11 20:16:10,759 – PixivUtil20160807-beta1 – INFO – tags mode.
        2016-08-11 20:16:21,397 – PixivUtil20160807-beta1 – INFO – Searching for: (charlotte) charlotte
        2016-08-11 20:16:21,401 – PixivUtil20160807-beta1 – INFO – Looping… for http://www.pixiv.net/search.php?s_mode=s_tag&p=1&word=charlotte&scd=2016-08-01&ecd=2016-08-01&order=date_d
        2016-08-11 20:16:22,209 – PixivUtil20160807-beta1 – ERROR – Error at process_tags(): (, BadStatusLine(“””,), )
        Traceback (most recent call last):
        File “PixivUtil2.py”, line 766, in process_tags
        File “mechanize\_mechanize.pyc”, line 203, in open
        File “mechanize\_mechanize.pyc”, line 230, in _mech_open
        File “mechanize\_opener.pyc”, line 193, in open
        File “mechanize\_urllib2_fork.pyc”, line 344, in _open
        File “mechanize\_urllib2_fork.pyc”, line 332, in _call_chain
        File “mechanize\_urllib2_fork.pyc”, line 1142, in http_open
        File “mechanize\_urllib2_fork.pyc”, line 1116, in do_open
        File “httplib.pyc”, line 1074, in getresponse
        File “httplib.pyc”, line 415, in begin
        File “httplib.pyc”, line 379, in _read_status
        BadStatusLine: ”
        2016-08-11 20:16:22,236 – PixivUtil20160807-beta1 – ERROR – Unknown Error: ”
        Traceback (most recent call last):
        File “PixivUtil2.py”, line 1875, in main
        File “PixivUtil2.py”, line 1660, in main_loop
        File “PixivUtil2.py”, line 1393, in menu_download_by_tags
        File “PixivUtil2.py”, line 766, in process_tags
        File “mechanize\_mechanize.pyc”, line 203, in open
        File “mechanize\_mechanize.pyc”, line 230, in _mech_open
        File “mechanize\_opener.pyc”, line 193, in open
        File “mechanize\_urllib2_fork.pyc”, line 344, in _open
        File “mechanize\_urllib2_fork.pyc”, line 332, in _call_chain
        File “mechanize\_urllib2_fork.pyc”, line 1142, in http_open
        File “mechanize\_urllib2_fork.pyc”, line 1116, in do_open
        File “httplib.pyc”, line 1074, in getresponse
        File “httplib.pyc”, line 415, in begin
        File “httplib.pyc”, line 379, in _read_status
        BadStatusLine: ”
        2016-08-11 20:16:24,039 – PixivUtil20160807-beta1 – INFO – EXIT: -1

        And then login error continues.

        How can I fix this issue?

        1. >> BadStatusLine(“””,)

          The pixiv server close the connection before returning any response.
          This is usually due to network/isp issue, either you try to use proxy or switch to another network.

  2. Reading D:\DOWNLOADS\Compressed\pixivutil20160613\pixivutil20160726\config.ini .
    ..
    done.
    Searching for: (ラブライブ!サンシャイン!!) %E3%83%A9%E3%83%96%E3%83%A9%E3%82%
    A4%E3%83%96%EF%BC%81%E3%82%B5%E3%83%B3%E3%82%B7%E3%83%A3%E3%82%A4%E3%83%B3%EF%BC
    %81%EF%BC%81
    Looping… for http://www.pixiv.net/search.php?s_mode=s_tag_full&word=%E3%83%A9%
    E3%83%96%E3%83%A9%E3%82%A4%E3%83%96%EF%BC%81%E3%82%B5%E3%83%B3%E3%82%B7%E3%83%A3
    %E3%82%A4%E3%83%B3%EF%BC%81%EF%BC%81&p=1&order=date_d
    Error at process_tags(): (, AttributeError(“‘N
    oneType’ object has no attribute ‘findAll'”,), )

    Dumping html to: Error page for search tags %E3%83%A9%E3%83%96%E3%83%A9%E3%82%A4
    %E3%83%96%EF%BC%81%E3%82%B5%E3%83%B3%E3%82%B7%E3%83%A3%E3%82%A4%E3%83%B3%EF%BC%8
    1%EF%BC%81.html
    Traceback (most recent call last):
    File “PixivUtil2.py”, line 1875, in main
    File “PixivUtil2.py”, line 1660, in main_loop
    File “PixivUtil2.py”, line 1393, in menu_download_by_tags
    File “PixivUtil2.py”, line 780, in process_tags
    File “PixivModel.pyc”, line 866, in parseTags
    AttributeError: ‘NoneType’ object has no attribute ‘findAll’
    press enter to exit.

    ^ any help? thanks

Comments are closed.