dpixiv
Script to simple use pixiv api of site
Example of using
run on python 3 with aiohttp
from dpixiv import DPixivIllusts
pix = DPixivIllusts('login', 'password') #Auth
pictures = pix.recommender() #Get lists of ids that recommended to user by pixiv
# Has two parameters: (sample_illusts=None, count=100) - by default
# sample_illusts - id or list of ids which help you to find what you want
# count - count of elements which you will get
short_pictures_info = pix.illust_list(pictures) #Get list(or not) of short information of pictures (fast speed)
# Has one parameter: (illusts) - required
# illusts - id or list of ids of pictures
one_picture = picture[0]
full_picture_info = pix.info(one_picture) #Get full information of picture (not so fast)
# Has one parameter: (id) - required
# id - id of picture
#Use next method for a lot of pictures(much faster then one by one)
full_pictures_info = pix.info_packs(picture) #Get list of full information of picture (medium speed)
# Has one parameter: (id) - required
# id - list of ids of pictures
pictures = pix.similar(one_picture) #Get lists of ids of pictures that similar to picture with id (fast speed)
# Has two parameters: (id, limit=10) - by default
# id - id of picture
# limit - max count of elements which you can get
picture_urls = pix.bookmarks(pictures) #Get list of bookmarks of user
# Has four parameters: (page=None, from_page=1, to_page=1000000, step_count=10) - by default
# page - number of page of bookmarks to show one page
# OR
# from_page - start page of list
# to_page - final page of list
# step_count - count pages to parse in one step(change for your task - can make your program faster)
pix.auth() #Updating session or changing login and password
# Has two parameters: (login=None, password=None) - by default
# login - if None uses default login
# password - if None uses default password
Metadata
Release files for dpixiv 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dpixiv-2.0.0.tar.gz | 3.9 kB | Without provenance | Details for dpixiv-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dpixiv-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for dpixiv-2.0.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / dpixiv-2.0.0.tar.gz
| Download URL | dpixiv-2.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec9fd60e0429b98234777eb180fb955af70adbec21f61b003e3edd85a0c072b6
|
|
BLAKE2b-256 checksum How to use checksums |
9d93c503449c29dce5e231fe6497d9bac1a08e3744fd4e5a4fc8cca565ef04c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|
Release files / dpixiv-2.0.0-py3-none-any.whl
| Download URL | dpixiv-2.0.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9416401a398194af0a6500d97cf671489dc459f2175ef67f2bbcf2e37b8a725a
|
|
BLAKE2b-256 checksum How to use checksums |
e2f8b287ccc6cf619c0919c6aac450d06c862dfab0bc93b87b45460b22e0265a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|
Security for dpixiv 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.