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.7.0.tar.gz
(15.3 kB
view details)
Built Distribution
pixiv_sql-0.7.0-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file pixiv_sql-0.7.0.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.7.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bc7f9a37674be88f75767855f2a08e3379320adf619182e34b913b33a928a14 |
|
MD5 | d22947803ed1a607a2238e53261b9afb |
|
BLAKE2b-256 | f6583d9249188360338b93bc0d95106cdce5e177ffba28d39a1f1cc8f5c45d87 |
File details
Details for the file pixiv_sql-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.7.0-py3-none-any.whl
- Upload date:
- Size: 14.7 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 | 19cd653fa69aaf629c0f3a2f612830876ebca4496fdfe6f9066999e4424f77ee |
|
MD5 | 30f6cca56398284e77ecf31970964368 |
|
BLAKE2b-256 | b3f3e61475016c3b8b70816a36f1f9748f08c23c1869a6925a01e574fc98cba0 |