youtube-livechat-scraper
A tool to scrape youtube livechat data I came up with while watching vtubers. It rips almost all data from a VOD's livechat including the following:
- Chat messages
- Superchats
- Memberships joined
- Memberships gifted and received
- Purchased Stickers
All of the data can be wrapped up in a large raw JSON object that also contains lots of metadata from the responses, like the author, the time the message got sent, etc.
USAGE:
Requires the following python3 packages:
- NOTE: These packages will be installed via pip when installing the scraper.
- BeautifulSoup
- Requests
How to use:
- Import the LiveChatScraper from scrapers.liveChatScraper to wherever you want to make the scraping call.
- Find a VOD URL and copy it
- Create a LiveChatScraper object and pass in the VOD's URL.
- Call the scrape() method on the created scraper object and the scrape will run.
- Once the scrape is completed, you can call ouputMessages() to get a dictionary with all the scraped data.
- You can all save the scraped data as a JSON to a fill by calling the writeToFile method passing the OUTPUT_JSON constant
- example.py has a working example which saves the data to different formats
Metadata
Release files for youtube-livechat-scraper-ohn0 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| youtube_livechat_scraper_ohn0-1.0.5.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| youtube_livechat_scraper_ohn0-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.6 kB
Release files / youtube_livechat_scraper_ohn0-1.0.5.tar.gz
| Download URL | youtube_livechat_scraper_ohn0-1.0.5.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a21f85f391bbd815caddcf9add8a3c1bf5f88ad9369a2a0ae6e3be6d385734ae
|
|
BLAKE2b-256 checksum How to use checksums |
519def3a79e43b3d26819fd0ede147723039189bd8760f84a46bb7d7f025b6d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / youtube_livechat_scraper_ohn0-1.0.5-py3-none-any.whl
| Download URL | youtube_livechat_scraper_ohn0-1.0.5-py3-none-any.whl |
|---|---|
| Size | 26.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df3f28bd20083749f5b0af8a19517e676f5b489b1b5ad644663dfd1cfa26b336
|
|
BLAKE2b-256 checksum How to use checksums |
3db912e91818f18cbe9477f65bc233a7d45701e5e26fad2fca12e1cc9b4dba8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|