Skip to main content

PixivDownloader

PixivDownloader enables you to download artworks, mangas and videos from pixiv.net via CLI, CLI UI and programmatically.

Usage

To start CLI UI:

pixiv

To start downloads directly:

pixiv "XXXXXXXX" "https://www.pixiv.net/en/artworks/XXXXXXXX"

If the user is not logged in yet the CLU UI starts and asks for login credentials. This can be disabled with using –username and –password to log in. If only one of those is given then the Login CLI UI will be started asking for the missing value. So eg. in this case the UI will start and ask for a password:

pixiv "XXXXXXXX" -u my_user

If you want to disable the CLI UI completely and just exit if no username and passwords are given then use -q.

pixiv "XXXXXXXX" -q

Finally, you can also use this downloader via its python interface like this:

from pixiv.downloader import PixivDownloader
pd = PixivDownloader(username='xxx', password='pwd')
downloader = pd.download_by_url('https://www.pixiv.net/en/artworks/74607898', '~/Downloads/pixiv-downloads')
# Or just by the id
downloader = pd.download_by_id(74607898, '~/Downloads/pixiv-downloads')
for path in downloader:
    print(f'Downloaded {path}')

Is my pixiv password saved?

TLDR: No, it is not.

For the communication between the program and Pixiv PixivPy is used. This enables us to use a so-called “refresh token” with which we can re-authenticate without saving the password anywhere.

This token, as well as other settings, are saved in ~/.pixivrc.

Installation

With pip:

pip install pixivdownloader
pixiv

From source:

git clone https://github.com/Nachtalb/PixivDownloader.git
cd PixivDownloader
python setup.py install
pixiv

Changelog

0.1.1 (2020-02-17)

  • Fix slash in filename resulting in additional folders [Nachtalb]

0.1.0 (2019-11-15)

  • Initial implementation

Metadata

Release files for pixivdownloader 0.1.1

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

Source distribution (sdist)

Source distribution for pixivdownloader 0.1.1
File Size Uploaded Provenance
pixivdownloader-0.1.1.tar.gz 24.0 kB Without provenance Details

Release files / pixivdownloader-0.1.1.tar.gz

Download URL pixivdownloader-0.1.1.tar.gz
Size 24.0 kB
Tags Source
SHA-256 checksum
How to use checksums
99a079fcf8b9c42e57d4b422e2821c795fecdf6632858dd04a288f66ab90ed50
BLAKE2b-256 checksum
How to use checksums
649cf7a9aec1c75b6444108f584e04351a0ac4705e25cb29f1a3a3341465055a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Security for pixivdownloader 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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