Skip to main content

StoryCLI

StoryCLI is an unofficial CLI tool for downloading your favourite audiobooks from Storytel without leaving your terminal. An active Storytel account is required for using this tool.

I am not responsible for any issues that this tool could cause, including but not limited to account blocking, temporary or permanent bans, loss of time or monet. I built this tool only as a learning experience, and making it open-source so other people can see the source code and learn. Use it at your own risk.

  • Download from PyPI: pipx install storycli

Authentication

Create ~/.storycli and fill it with your login credentials:

STORYCLI_MAIL=<your-storytel-email>
STORYCLI_PASS=<your-storytel-password>

Usage

usage: storycli [-h] (-q QUERY | -D BOOK_ID) [-o PATH] [-H]

Search and download Storytel audiobooks.

options:
  -h, --help            show this help message and exit
  -q QUERY, --query QUERY
                        search for audiobooks
  -D BOOK_ID, --download BOOK_ID
                        download an audiobook
  -o PATH, --output PATH
                        MP3 output path (required with --download)
  -H, --human-readable  do not format query lengths as hours:minutes:seconds

Search an Audiobook:

storycli -q <search-query>
storycli -q Dune
storycli --query Dune

ID       LENGTH    TITLE 
-------  --------  ---------------
...
2759046   18:36:1  Paul of Dune
2836812  17:19:18  The Winds of Dune
2835170  19:31:19  Sandworms of Dune
...

Download an Audiobook:

storycli -D <book-id> -o <mp3-save-path>
storycli -D 2759046 -o ~/Downloads/2759046.mp3
storycli --download 2759046 -o ~/Downloads/2759046.mp3

Development

  • Install the uv project manager.
  • Clone the project and run uv sync.

Future Improvements

  • Prevent logging in everytime by storing login tokens.
  • Add book description preview.
  • Better UX.
  • Standalone Storytel TUI with builtin player.
  • Better error message management.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

storycli-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

storycli-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file storycli-0.1.0.tar.gz.

File metadata

  • Download URL: storycli-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for storycli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eff3a343dd7a28f9d22764c2825f61853e209252a5bdda43ab22c7f4df24e703
MD5 7826ce325e542bc20c05a7decb2315e8
BLAKE2b-256 102c8055bc4c48b1723784ea60c3ff17b5cfb64b10fa9f651e459e94a7484313

See more details on using hashes here.

File details

Details for the file storycli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: storycli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"22.3","id":"zena","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for storycli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02dde45ad9d3185b49fc8d2b8f13502e2d10b86888b287cce4f5e56c6445cf42
MD5 80c15250dd3eb1911b26611facb4962f
BLAKE2b-256 6564d1212e91c63228fde2ab634d259a87fcb356dfbadd0d0b345243b8d06393

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page