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

Uploaded Source

Built Distribution

pixiv_sql-0.4.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixiv_sql-0.4.1.tar.gz
  • Upload date:
  • Size: 13.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.4.1.tar.gz
Algorithm Hash digest
SHA256 06c2600b2e149b9a7e78d42386ddfc001d50e6b0630bfbfe5fd430e3b42a2702
MD5 c78aa063f18bfdcd58ffab31b7d90b0a
BLAKE2b-256 32a20e9ad4a0feff7d646e8aecce80865243bec25186150266c74a7f50a37d60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixiv_sql-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 13.6 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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 656c7b42b544abcd5c1bb20405aaa1e0ce195b8942ed9cab251b533bfcdb091b
MD5 f43eeb6b5461ca6b69f58c6014ba4cc3
BLAKE2b-256 01045e4df9f38e31765b5f0b0b35167c31ab19ea84bdce2879fce76d365dce3e

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