Skip to main content

yt-live-scraper

A Python library and CLI tool for scraping YouTube channels for live and upcoming stream events.

Installation

pip install yt-live-scraper

Documentation

The full library documentation can be found here.

CLI Usage

# Show upcoming streams for one or more channels
yt-live-scraper @home_assistant @superhousetv

# Output as JSON
yt-live-scraper @home_assistant --json

# Only show streams from a specific date onwards
yt-live-scraper @home_assistant --from 2026-03-01

Library Usage

Get upcoming streams

from yt_live_scraper import get_upcoming_streams

streams = get_upcoming_streams(["@home_assistant", "@superhousetv"])
for stream in streams:
    print(stream)

Check if a stream is live

from yt_live_scraper import is_stream_live

if is_stream_live("dQw4w9WgXcQ"):
    print("Stream is live!")

UpcomingStream fields

Each UpcomingStream object contains:

Field Type Description
channel str Channel display name
channel_thumbnail_url str URL of the channel's avatar image
video_id str YouTube video ID
title str Stream title
scheduled_start datetime Scheduled start time (UTC)
url str Full YouTube watch URL
thumbnail_url str URL of the stream's thumbnail image
live bool True if the stream is currently live

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

License

MIT

Metadata

Release files for yt-live-scraper 1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yt-live-scraper 1.8.1
File Size Uploaded Provenance Actions
yt_live_scraper-1.8.1.tar.gz 19.7 kB Without provenance Details for yt_live_scraper-1.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yt-live-scraper 1.8.1
File Interpreter ABI Platform Actions
yt_live_scraper-1.8.1-py3-none-any.whl Python 3 none any Details for yt_live_scraper-1.8.1-py3-none-any.whl

Total release size: 31.4 kB

Release files / yt_live_scraper-1.8.1.tar.gz

Download URL yt_live_scraper-1.8.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f1e53c7453e6eb7079c264a19b2cdfb8ad7573663a08fe683ccec86c9469dd40
BLAKE2b-256 checksum
How to use checksums
8f5cec10dc63208ba45c2dc43c7991e5b1ef11f6fa35452a52e142a05c11c132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / yt_live_scraper-1.8.1-py3-none-any.whl

Download URL yt_live_scraper-1.8.1-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e1de94b78f4c220a83b2f7e604d6c8910d5a7049556eb2edfee3568f3dee45b
BLAKE2b-256 checksum
How to use checksums
ee6efc9cab78063ccf336ba332b0d6eca4f6b56e4f76252a2c10ff5ba1b39d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for yt-live-scraper 1.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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