Skip to main content

Unofficial Python library to work with data on The StoryGraph.

Project description

Staff

Unofficial Python library to work with data on The StoryGraph.

This library relies on interacting with The StoryGraph's website, and is liable to break at any moment! If you want something more stable, consider voting for API support on the roadmap.

Basic usage

Create a JSON file containing your login credentials for The StoryGraph, e.g. .storygraph.json:

{
  "email": "user@example.com",
  "password": "password"
}

Create a client using your credentials file:

from staff import StoryGraph

with StoryGraph(".storygraph.json") as sg:
    latest = next(sg.current_books())
    print(f"I'm reading {latest.title} by {latest.author}")

Your credentials file will be updated with a cookie from the website after your first sign-in.

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

staff-0.2.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

staff-0.2.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file staff-0.2.0.tar.gz.

File metadata

  • Download URL: staff-0.2.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for staff-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3251e29bb9b0f6345b3617fe8b9a4e82a0c304279865cde1cd0038641b5ca442
MD5 77e0d2d390e985e9d601552504bbf62f
BLAKE2b-256 3a3f9116b0975a7ae48131c2f966d91b6f620a4f93b9de7e9a27fb9c001c5d69

See more details on using hashes here.

File details

Details for the file staff-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: staff-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for staff-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b321e0b0813de2bc2a054c938112fd8e224dd6330508c9454751e1a3d9d40481
MD5 99962ba3e36bee8717ea0c3879af4f8c
BLAKE2b-256 f50ba49b8d3d3891073803b02ef161a8d5d05d72d933e0ea4ee2412551bcbe5d

See more details on using hashes here.

Supported by

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