Skip to main content

Python library to backup pixiv user data to SQLite DB.

Project description

pixiv-sql

PyPI version build License

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


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.6.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

pixiv_sql-0.5.6-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file pixiv_sql-0.5.6.tar.gz.

File metadata

  • Download URL: pixiv_sql-0.5.6.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pixiv_sql-0.5.6.tar.gz
Algorithm Hash digest
SHA256 ab868569b1e1d8c2bdcad98452cfa4cc400d7a26f29ee9369e5093e805ece39b
MD5 e2d951efa4376d4f2e30bc0dffcc8e9b
BLAKE2b-256 c9748399e2ba64dcfb322773d870706be5fe388da79b5dcadec1445241b6f9f6

See more details on using hashes here.

File details

Details for the file pixiv_sql-0.5.6-py3-none-any.whl.

File metadata

  • Download URL: pixiv_sql-0.5.6-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

Hashes for pixiv_sql-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b6bcb0875e5a812fc2cacbc955345663f773b116bcfe9135829f6a1112c92c2a
MD5 35a4ee50b9ba96e0c3a9e6d3fb5acf88
BLAKE2b-256 f5e4c502a5f96ac2982005365a3c84c9f0e8ccb6861854305521e6f334d5435a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page