Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 exit

commands:
{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")