Skip to main content

Simple YouTube Live scrape package

Project description

LiveYoutube Scraper

Scrape YouTube Live without API. Your last hope when you can't use the official YouTube API or Selenium. Let me know if you get any errors, YouTube is constantly changing their backend.

Installation

pip install YTLiveScrape

Example

from YTLiveScrape.live_chat_worker import LiveMachine

livestream_id = '3GgSphuyBiY'  # from e.g. https://www.youtube.com/watch?v=3GgSphuyBiY

L = LiveMachine(livestream_id)

# Start stats loop
L.request_stats()
# Start comments loop
L.request_comments()

Get new comments and stats

comments = L.get_comments()
stats = L.get_stats()

To stop the script

L.stop_scrape()

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

YTLiveScrape-1.0.3.tar.gz (10.9 kB view details)

Uploaded Source

File details

Details for the file YTLiveScrape-1.0.3.tar.gz.

File metadata

  • Download URL: YTLiveScrape-1.0.3.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.3

File hashes

Hashes for YTLiveScrape-1.0.3.tar.gz
Algorithm Hash digest
SHA256 82666e82b00d09c959a5e323254484006b48e6f7935325b02755f5db03727d88
MD5 d4b5798b044c2f9b3e0c9fe543c210fe
BLAKE2b-256 b95a3264d6436f1a47bba47b9ed814e7c3aa257b5220c75d61ab1ef8dc2ad939

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