Metadata-Version: 2.1
Name: YTLiveScrape
Version: 0.0.20
Summary: Simple YouTube Live scrape package
Home-page: https://github.com/BambooFlower/LiveYoutube-Scraper
License: UNKNOWN
Keywords: YouTube,Live comments,scrape
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# LiveYoutube Scraper
Scrape YouTube Live without API. Your last hope when you can't use the official [YouTube API](https://developers.google.com/youtube)
or Selenium. Let me know if you get any errors, YouTube is constantly changing their backend.

# Installation
`pip install -i https://test.pypi.org/simple/ YTLiveScrape`

# Example

```python
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

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

To stop the script
```python
L.stop_scrape()
```

