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.1.tar.gz
(12.1 kB
view details)
Built Distribution
pixiv_sql-0.3.1-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file pixiv_sql-0.3.1.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.3.1.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64da0081817bdeec237d8bc767cf6d52cc340610f80bba93234acc31c428eef3 |
|
MD5 | 68ad282b571f58826a664209b0851d10 |
|
BLAKE2b-256 | ca5a064e2d5ea76aa25bcc5e1c613deb769a45316a94898dc0363a4f4505728a |
File details
Details for the file pixiv_sql-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.3.1-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 | f6b0a0258ca2980ab81d698188b08e620d3f2aa88636998a360681c476e252bb |
|
MD5 | d63a50b7980a3370d9347f8678cf2cfb |
|
BLAKE2b-256 | 9a7ed13861f56ac44f4cd7349520d72af3fa42e8a71f8eabdc0bbfecbe9d3e3a |