Skip to content

Instantly share code, notes, and snippets.

@jwshields
Created August 11, 2022 12:04
Show Gist options
  • Save jwshields/f5c66581536a1344f241b1db94cb496c to your computer and use it in GitHub Desktop.
Save jwshields/f5c66581536a1344f241b1db94cb496c to your computer and use it in GitHub Desktop.
PS H:\PixivUtil> .\PixivUtil2.exe
┌──────────────────────────────────────────────────────────┐
│ PixivDownloader2 version 20220804 │
│ https://github.com/Nandaka/PixivUtil2/releases │
│ Donate at https://bit.ly/PixivUtilDonation │
└──────────────────────────────────────────────────────────┘
Reading H:\PixivUtil\config.ini ...
Configuration loaded.
send: b"GET /Nandaka/PixivUtil2/master/PixivConstant.py HTTP/1.1\r\nAccept-Encoding: identity\r\nUser-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36'\r\nAccept-Charset: utf-8\r\nHost: raw.githubusercontent.com\r\nConnection: close\r\n\r\n"
reply: 'HTTP/1.1 200 OK\r\n'
header: Connection: close
header: Content-Length: 2008
header: Cache-Control: max-age=300
header: Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
header: Content-Type: text/plain; charset=utf-8
header: ETag: "437906c3eb86a5482f22fa108f38159ef791230b4cb9ce74abbbce2901c18aae"
header: Strict-Transport-Security: max-age=31536000
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: deny
header: X-XSS-Protection: 1; mode=block
header: X-GitHub-Request-Id: ___REDACTED___
header: Accept-Ranges: bytes
header: Date: Thu, 11 Aug 2022 12:01:21 GMT
header: Via: 1.1 varnish
header: X-Served-By: cache-sea4423-SEA
header: X-Cache: HIT
header: X-Cache-Hits: 1
header: X-Timer: ___REDACTED___
header: Vary: Authorization,Accept-Encoding,Origin
header: Access-Control-Allow-Origin: *
header: X-Fastly-Request-ID: ___REDACTED___
header: Expires: Thu, 11 Aug 2022 12:06:21 GMT
header: Source-Age: 188
Using custom DB Path: D:\pixiv_util_db.sqlite
Creating database... done.
Only process members where the last update is >= 7 days ago
Using Blacklist Members: 30 members.
Using Username: ___REDACTED___
Trying to log in with saved cookie
send: b"GET / HTTP/1.1\r\nAccept-Encoding: identity\r\nCookie: PHPSESSID=___REDACTED___\r\nUser-Agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36'\r\nAccept-Charset: utf-8\r\nHost: www.pixiv.net\r\nConnection: close\r\n\r\n"
reply: 'HTTP/1.1 403 Forbidden\r\n'
header: Date: Thu, 11 Aug 2022 12:01:21 GMT
header: Content-Type: text/html; charset=UTF-8
header: Transfer-Encoding: chunked
header: Connection: close
header: CF-Chl-Bypass: 1
header: Permissions-Policy: accelerometer=(),autoplay=(),camera=(),clipboard-read=(),clipboard-write=(),fullscreen=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()
header: Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
header: Expires: Thu, 01 Jan 1970 00:00:01 GMT
header: X-Frame-Options: SAMEORIGIN
header: Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
header: Set-Cookie: __cf_bm=___REDACTED___; path=/; expires=Thu, 11-Aug-22 12:31:21 GMT; domain=.pixiv.net; HttpOnly; Secure; SameSite=None
header: Vary: Accept-Encoding
header: Server: cloudflare
header: CF-RAY: ___REDACTED___
header: alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
Error at doLogin(): (<class 'mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper'>, <httperror_seek_wrapper (urllib.error.HTTPError instance) at 0x459fa00 whose wrapped object = <HTTPError
403: 'Forbidden'>>, <traceback object at 0x045AC888>)
Cannot Login!
press enter to exit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment