Skip to content

Terrance/Staff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Unofficial Python library to work with data on The StoryGraph.

Resources

License

Stars

Watchers

Forks

Contributors

Languages