Skip to main content

A complete Python API wrapper for StoryTV — browse, stream, and download shows

Project description

pystorytv

PyPI version Documentation

A complete Python API wrapper for StoryTV.

Browse, search, stream, and bulk-download Hindi/regional dramas effortlessly from within your own Python programs.

Features

  • Python API — Object-oriented wrapper around StoryTV endpoints.
  • Bulk Downloader — Thread-pool based parallel downloading of m3u8 streams via yt-dlp and ffmpeg.
  • OTPLess Login — Phone OTP authentication, session handled automatically.

Requirements

  • Python 3.10+
  • ffmpeg (required for downloading/muxing HLS streams)

Installation

Install from PyPI:

pip install pystorytv

Quick Start (Python API)

from pystorytv import AuthManager, StoryTVClient
from pystorytv.downloader import Downloader

# 1. Authenticate
auth = AuthManager()
if not auth.is_logged_in():
    auth.request_otp("9876543210", "+91")
    otp = input("Enter OTP: ")
    auth.verify_otp("9876543210", "+91", otp)

# 2. Fetch Data
client = StoryTVClient(session=auth.session)
show = client.get_show_details(3413)
episodes = client.get_all_episodes(3413)

# 3. Download
downloader = Downloader(max_workers=5)
downloader.download_bulk(episodes, output_dir="./downloads", show_title=show.title)

Documentation

Full documentation is available at https://pystorytv.vrma.dev.

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

pystorytv-0.1.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

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

pystorytv-0.1.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pystorytv-0.1.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pystorytv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 723ae77d870d2b0aa67408907088534efd1c826029b4cec2aa19e95a7d29bf4c
MD5 4b04ad817133b774971a96e4d89516f1
BLAKE2b-256 99a0048c9e6df2120af38305193d87e54d5a2f1b1f77394ae8458bd3b208d29f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystorytv-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for pystorytv-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14b8bbd0b65f5593916776939a893c312629be18c6bcd720fc78b7afc688b6b9
MD5 4c99fcd5f0900fab87a0df8080298de8
BLAKE2b-256 b82204ff214798a46be3bfbfa0700edfa775830aed4405a7a651262b55bc46fc

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