Skip to main content

an async pixiv toolbox

Project description

pixivcat

an async pixiv toolbox

Feature

  • use async
  • high performance
  • concurrency download
  • raw pixiv api

Useage

  • install pixivcat
  • pip install pixivcat
    
  • Login to pixiv using refresh token, if you don't have a pixiv refresh token, You can find the access method at @upbit
  •   from pixivcat.AppApi import AppClient
      refresh_token = "xxxxxxxxxxxxxxx" # your refresh token
      async def login():
          app = AppClient(refresh_token=refresh_token)
          async with app:
              image = app.illust_detail(99057163)
              print(image)
              #download image to path
              await image.download_origin("setu")
              # bookmark the image
              await app.illust_bookmark_add(image.id)
    

proxy

if you want use your proxy, you can add the proxy link to the parameter

app = AppClient(refresh_token=refresh_token,proxy="http://host:port")

exmaple

see exmaple.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixivcat-0.0.2.tar.gz (10.4 kB view details)

Uploaded Source

File details

Details for the file pixivcat-0.0.2.tar.gz.

File metadata

  • Download URL: pixivcat-0.0.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.6

File hashes

Hashes for pixivcat-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ce7b9f13005bc08e55a15d0db0f022e5b67a1033d6b990441ddd9d430dcb7f7a
MD5 d9064eb6e1a46f4ec64baa86b882142b
BLAKE2b-256 f0914d49a187e5f72a241bfea6f1f71acbac4f5b10e0a89e3bb526ab504a7968

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page