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.3.2.tar.gz
(12.2 kB
view details)
Built Distribution
pixiv_sql-0.3.2-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file pixiv_sql-0.3.2.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.3.2.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c948be7d021b9dabea42d4ad9f2e16b0bd912bc7f5d3235d3ad9deb072d6b1d |
|
MD5 | 6d7d0d748196f4dbf1459d69be77c464 |
|
BLAKE2b-256 | c3dc770c7e31cd828bb932fa4b42d45fc275162f4ddb10268854912b4bc0c58c |
File details
Details for the file pixiv_sql-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.3.2-py3-none-any.whl
- Upload date:
- Size: 12.4 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 | 486ca9305c96c68db1ce8ef0ca98d5d941870be94e97bfcc77822bdca466bd9f |
|
MD5 | 3fc135797d146dcb88efa49fea40a351 |
|
BLAKE2b-256 | b57ae86687ca68152d5be8f22454681189572503fdfb91f2e874ffd1a00a8d1f |