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.9.0.tar.gz
(16.1 kB
view details)
Built Distribution
pixiv_sql-0.9.0-py3-none-any.whl
(15.9 kB
view details)
File details
Details for the file pixiv_sql-0.9.0.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.9.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5243a50a3eb9c2bf5b0e8f415141d0e3d63c033679186052a1d0689feef359 |
|
MD5 | ff255912998218982a160ac88e9c72ad |
|
BLAKE2b-256 | c84c468319478376fae8b618f1570f3d5473db5b02236e6f261d8c68c249259d |
File details
Details for the file pixiv_sql-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.9.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f510a789624f4bb8e33cf3dcc0325563e60701c4752646a0f843363956e29765 |
|
MD5 | faab5234c13521e2f465e79024ceb18a |
|
BLAKE2b-256 | 8acc133c378974021d72f2e3692c91ea656f3b571292b5b0683d72cf75ea9686 |