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.4.tar.gz
(12.6 kB
view details)
Built Distribution
pixiv_sql-0.3.4-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file pixiv_sql-0.3.4.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.3.4.tar.gz
- Upload date:
- Size: 12.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 | cb49cfe29bd054c3ded752f11c837e8aadd68c6e7f694ef724772c571143dce9 |
|
MD5 | 66ebef422cb2cff46351fb258a377fcc |
|
BLAKE2b-256 | 4c8d2637d36dea356c41e461b96f60988427e2661cb09ef73488ce5c98220e73 |
File details
Details for the file pixiv_sql-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.3.4-py3-none-any.whl
- Upload date:
- Size: 12.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 | 5826ed5ce1d4154b76179e03901c286dff003d61999d45d49dc7253fed2a773e |
|
MD5 | bcbfd84be5b12666bbce245c07e7bf32 |
|
BLAKE2b-256 | cf527c5c15567bdc53e24e5935b9ef284a98e5fed999c8e772b0a5f01b161a12 |