Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stricklerxc/twitch-clip-chat
Python package for scrapping chat from twitch clips
https://github.com/stricklerxc/twitch-clip-chat
chat clips python twitch
Last synced: 3 months ago
JSON representation
Python package for scrapping chat from twitch clips
- Host: GitHub
- URL: https://github.com/stricklerxc/twitch-clip-chat
- Owner: stricklerxc
- License: mit
- Created: 2020-05-27T03:48:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:04:34.000Z (about 2 years ago)
- Last Synced: 2023-09-11T06:19:45.422Z (over 1 year ago)
- Topics: chat, clips, python, twitch
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Twitch Clip Chat
==========================Python package for scrapping chat from Twitch clips
Requirements
------------1. Python 3.7+
Installation
------------```shell
$ git clone https://github.com/stricklerxc/twitch-clip-chat.git
$ cd twitch-clip-chat
$ python3 -m venv .env
$ source .env/bin/activate
(.env) $ pip install .
```Usage
-----```shell
$ clip_chat -h
usage: clip_chat [-h] {get,configure} ...Twitch Clip Chat - Scrape chat from Twitch Clips
optional arguments:
-h, --help show this help message and exitcommands:
{get,configure}
get Scrapes the chat from the given Twitch clip
configure Configure Twitch Credentials
```1. Register your application using the [Twitch Developer Console](https://dev.twitch.tv/console/apps)
2. Configure Twitch Client Credentials```shell
$ clip_chat configure
Twitch Client ID:
Twitch Client Secret:
```3. Grab Clip Chat
```shell
$ clip_chat get
```Notes:
- Chat is output in CSV format in your current working directory. Filename is \.csv
- CSV Columns: Timestamp, Username, Message
- The "slug" is the last part of the clip's URL (see highlighted portion of image below)![Alt text](docs/clip_slug.png "Slug in Clip URL")