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 hashes)