Python library to backup pixiv user data to SQLite DB.
Project description
pixiv-sql
Python library to backup pixiv user data to SQLite DB.
Installation
You can install this library using PyPI:
pip install pixiv-sql
Usage
Create dataBase file
touch db/my_pixiv.db
Get refresh_token
To get
refresh_token
, see @ZipFile Pixiv OAuth Flow or OAuth with Selenium/ChromeDriver
Initialize the PixivSQL class with your Pixiv user ID, refresh token, and database:
user_id = "your_user_id"
refresh_token = "your_refresh_token"
database = "db/my_pixiv.db"
app = PixivSQL(user_id, refresh_token, database)
You can then fetch your bookmarked illusts and insert them into the database:
app.bookmarked_illusts()
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pixiv_sql-0.5.7.tar.gz
(14.7 kB
view details)
Built Distribution
pixiv_sql-0.5.7-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file pixiv_sql-0.5.7.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.5.7.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f225959ea84732826dd5729f6e7e794de380f29b9d4d0df4e76b4ddec545d3a3 |
|
MD5 | 6944e8e00a96a60e770d902c3d078a7a |
|
BLAKE2b-256 | f65b85343a5d54b69636388533a1e2a9898f77dde6513e37a69cab214867368a |
File details
Details for the file pixiv_sql-0.5.7-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.5.7-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab197409bb50f1590b93538782b50ba61c9974ffc9f3603d17bebcd337710098 |
|
MD5 | 8bc0e12d99b73ffeffa813195c6a45c9 |
|
BLAKE2b-256 | 75334aa47f45c0c94799267398e9dc57651e3d0f3e866afb05c7d2334edd393e |