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()
Release files for YTLiveScrape 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| YTLiveScrape-1.0.3.tar.gz | 10.9 kB | Details |
Release files / YTLiveScrape-1.0.3.tar.gz
| Download URL | YTLiveScrape-1.0.3.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82666e82b00d09c959a5e323254484006b48e6f7935325b02755f5db03727d88
|
|
BLAKE2b-256 checksum How to use checksums |
b95a3264d6436f1a47bba47b9ed814e7c3aa257b5220c75d61ab1ef8dc2ad939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|