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.4.0.tar.gz
(13.5 kB
view details)
Built Distribution
pixiv_sql-0.4.0-py3-none-any.whl
(13.5 kB
view details)
File details
Details for the file pixiv_sql-0.4.0.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.4.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e79252f503a0085b6864ba731b61e1f290b65ef4fa6720fa2c08a87811c3fa06 |
|
MD5 | e0ecf3c3ca6865c911ea8d3b8536660e |
|
BLAKE2b-256 | dd8db64318a3624f0418a4bd58b7e5e51abd01d60e3f4d9dd1809313b61a5eb1 |
File details
Details for the file pixiv_sql-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.4.0-py3-none-any.whl
- Upload date:
- Size: 13.5 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 | b1ae8eec0a316b1f6d3d43231d7a6dc3cee7829dada270e327600ca67854c57d |
|
MD5 | 4534041a10b07b26fbe2264981d175a8 |
|
BLAKE2b-256 | 10daaac4ee875999a2ca4d9c083dee8433edf33234b727f6d636f9ebadd4c221 |