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

Uploaded Source

Built Distribution

pixiv_sql-0.6.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixiv_sql-0.6.0.tar.gz
  • Upload date:
  • Size: 14.8 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.6.0.tar.gz
Algorithm Hash digest
SHA256 b83d20e5cb20eb8fa86fa819a08b3cfd3354858f0f1e0a3bb651acfe0d679128
MD5 07bb50f3d9bea93bcadcb840b9d9adb2
BLAKE2b-256 e8410d0b9bdb6d847a60cce5306ad38e567bb72b6d5287b28dfc990c3b7875f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixiv_sql-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ab5d60949c5ee9a7956a69ee6458ff81ccf7c5094d58082c77edb9f3dd7737
MD5 ff6553c0557b5601a3951fb01a330b31
BLAKE2b-256 c5cd5f7d1cdb2aaebc27623d38cca6ea93a3231f2534806ac7cb86769e932c71

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