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

Uploaded Source

Built Distribution

pixiv_sql-0.3.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixiv_sql-0.3.3.tar.gz
  • Upload date:
  • Size: 12.4 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.3.3.tar.gz
Algorithm Hash digest
SHA256 1eed3704d767ab293e995e73f559dde38d095deb37f65b4a9a459ff281482577
MD5 618430e399a373b91b389623b8dbe1e5
BLAKE2b-256 4865a2f7c7d88ac3f7e37f98fc7cb6f2c6212d9e92ca7dcd810844245a4b6d81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixiv_sql-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 23b69c87372490d145eb04491424dbe4e6c5107f05f9d50f84a2c1c0c58b0fb9
MD5 596cd92b7dd5bcd3381cb35a1ae93324
BLAKE2b-256 6e676e6b9920b9d2bb8e3a8ff79f57c4248fa2ea97ba8e0b9d575afe6411d610

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