Skip to main content

dpixiv

Tool to simple use pixiv api of site

Install

pip install dpixiv

Example of using

from dpixiv import DPixivIllusts

pix = DPixivIllusts(session=None, proxy=None)

### Attributes: ###

pix.is_auth  #(True|False)
pix.session  #session
pix.proxy    #http proxy 'http://{ip}:{port}'

### Methods:    ###

# Auth
pix.auth(login, password, captcha_token)
# To get capthca_token go to https://accounts.pixiv.net/login
# and write in browser console command:
# document.getElementById('recaptcha-v3-token').value
# Do it fast and save pix.session

# Get lists of ids that recommended to user by pixiv
pictures_ids = pix.recommender(sample_illusts=None, count=100)

# Get list(or not) of short information of pictures (fast speed)
short_pictures_info = pix.illust_list(illusts)

# Get full information of picture (not so fast)
full_picture_info = pix.info(id, token=False)

# Use next method for a lot of pictures(much faster then one by one)
# Get list of full information of picture (medium speed)
full_pictures_info = pix.info_packs(ids, token=False)

# Get lists of ids of pictures that similar to picture with id (fast speed)
similar_pictures_ids = pix.similar(id, limit=10)

# Get list of bookmarks
bookmarks_ids = pix.bookmarks(page=None, from_page=1, to_page=1000000, step_count=10)
# Use page to show only one page

# Get list of following
following_ids = pix.new_work_following(page=None, from_page=1, to_page=1000000, step_count=10)
# Use page to show only one page

# Search by name
search_ids = pix.search(word, page=None, from_page=1, to_page=1000000, step_count=10)
# Use page to show only one page

# Add tag (set token=True to info and get by 'token' key)
response = pix.add_tag(pic_id, tag, token)

# Delete tag
response = pix.del_tag(pic_id, tag, token)

Release files for dpixiv 4.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dpixiv 4.2.0
File Size Uploaded
dpixiv-4.2.0.tar.gz 5.1 kB Details

Release files / dpixiv-4.2.0.tar.gz

Download URL dpixiv-4.2.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
05de8227f55b1bf2a0e46f217c710c3f1566cf6bb2923ffa8bb79d8204aa1e11
BLAKE2b-256 checksum
How to use checksums
dc625400f42851bc869dc919160374e9330e4c5b56a3426cf1b8f6104301a184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

4.2.0 This release

1 release file

4.1.0

2 release files

4.0.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page