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.5.1.tar.gz
(14.1 kB
view details)
Built Distribution
pixiv_sql-0.5.1-py3-none-any.whl
(14.0 kB
view details)
File details
Details for the file pixiv_sql-0.5.1.tar.gz
.
File metadata
- Download URL: pixiv_sql-0.5.1.tar.gz
- Upload date:
- Size: 14.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 | fcd20890d08653f613eee74d8cd94be50f17cdd17393754570bb06d72ca741ba |
|
MD5 | 6d4c03b27488050b639ded6e7c7b420f |
|
BLAKE2b-256 | f1252e828bf2a8910eb032e58ec0268ddfaea9fcf36fcc4ba8942e832db1432f |
File details
Details for the file pixiv_sql-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: pixiv_sql-0.5.1-py3-none-any.whl
- Upload date:
- Size: 14.0 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 | cd4f4241ab77d803398109ccfb0f8a2810e4fc7b6d0046261a2bb9554d06b257 |
|
MD5 | 2886e3a05c109e38e2ad14c4a1f86fc2 |
|
BLAKE2b-256 | f3f747c2f972253f098af67bb6c14158b27a830a0a469ea87ffb6e611bced6d3 |