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.3.tar.gz
(14.6 kB
view details)
Built Distribution
pixiv_sql-0.5.3-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file pixiv_sql-0.5.3.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.5.3.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db9839bdf37139ecd0d87436f8e3fd4115c8bb81f3d89b28f51d56845c75481 |
|
MD5 | ad1a6b847659d24f2db2ebdebfe046d3 |
|
BLAKE2b-256 | 3cc931d3c4d40d0706c7f1877b92c99be821f514545426af842f296a1195e956 |
File details
Details for the file pixiv_sql-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.5.3-py3-none-any.whl
- Upload date:
- Size: 14.2 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 | 83071e16866df97fe4ebd9501b8aa01de678d6b48ee7069c795bc1878da9a0a5 |
|
MD5 | b7854e2e8c56c1690a162916b7e027df |
|
BLAKE2b-256 | f94a884a83079612d77ee544cf80bce38722b14576dadb6db789ea66fab9436e |