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.1.tar.gz (14.5 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.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pystorytv-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 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.1.tar.gz
Algorithm Hash digest
SHA256 6ce7b682d58e6211cecf2d0cd2ee69b3349dfb46ab01621a06457ba90d4d66b9
MD5 e0215db785ac0508aa8a44e6c0cb7ed2
BLAKE2b-256 a795da4a721cbccac6ad4327c7684b25d325064005c1e93299bdf915488e9065

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystorytv-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59183f82f0dc2c41b5f863d2fb7e87f2d91bfdb0e41126c901f5f45261ccb932
MD5 dec86aceb00869042ecf2896ac91bee5
BLAKE2b-256 bf11c4a578814fa0ccdc2f8997caa078fb0b1398c0f0cda930346ddf47503461

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