Skip to content

A small script that helps you download artwork from Pixiv

Notifications You must be signed in to change notification settings

Nachtalb/PixivDownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixivDownloader

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

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}')

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.

With pip:

pip install pixivdownloader
pixiv

From source:

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

Thirdparty packages used:

This package is copyrighted by Nachtalb.

PixivDownloader is licensed under GNU General Public License, version 3. Terms

About

A small script that helps you download artwork from Pixiv

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages