{"repo":"eggplants/get-pixivpy-token","free":true,"listed":false,"github":"https://github.com/eggplants/get-pixivpy-token","clone":"git clone https://github.com/eggplants/get-pixivpy-token.git","description":"Get your Pixiv token easily (for running upbit/pixivpy)","language":"Python","stars":195,"topics":["pixivpy","python","pixiv","api","oauth","token","cli"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"gppt : get-pixivpy-token - Get your Pixiv token (for running upbit/pixivpy) - Refine pixiv auth.py + its fork [!IMPORTANT] v5 is a rewrite: the CLI is now just gppt configure and gppt login , and GetPixivToken / PixivAuth are replaced by gppt.login() and gppt.get token() . See UPGRADE-v5.md if you are coming from v4. Install Usage gppt has two commands: configure stores an account in a profile, login gets you a token. 1. Configure a profile /.config/gppt/ .json : /.config/gppt/ .token.json : Two-factor authentication If your account has 2FA enabled, pixiv asks for a verification code after the password. gppt fills it in from totp secret — the base32 secret pixiv shows you when you set up an authenticator app, the otpauth:// URI behind its QR code, or an op:// reference to either. This is what makes an unattended headless login possible on a 2FA account. Leave totp secret blank and gppt login prompts for a code on stdin instead, only when pixiv actually asks for one. Accounts without 2FA are unaffected. Environment variables Variable Effect --- --- GPPT USERNAME , GPPT PASSWORD , GPPT TOTP SECRET Override the profile's credentials — lets a container or CI job log in with no config file GPPT CONFIG DIR Directory holding profiles and cached tokens (default: $XDG CONFIG HOME/gppt ) ALL PROXY , HTTPS PROXY , HTTP PROXY Proxy used by both the browser and the token requests From Python gppt.get token() is the library form of gppt login : it reuses the cached token, refreshes it, or ","default_branch":null,"files":null,"tree":[],"storefront":"/r/eggplants","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eggplants/get-pixivpy-token/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}