This bot scrapes information about Twitch streamers from the Twitch API, generates promotional messages using the ChatGPT API, and sends the messages to the streamers via the Twitter API.
To use this bot, you need the following:
- A Twitch account with a registered application and client ID
- A Twitch OAuth token with the "helix:users:read" scope
- A ChatGPT API key
- A Twitter account with a registered application and consumer key/secret and access token/secret
- A CSV file with the usernames of Twitch streamers you want to scrape information for (one username per row)
-
Clone this repository:
-
Install the required Python packages:
-
Set the following environment variables with your API credentials:
-
Update the
streamers.csv
file with the usernames of Twitch streamers you want to scrape information for.
To use this bot, run the following command:
This will scrape information about each streamer in the streamers.csv
file, generate a promotional message for them using the ChatGPT API, and send the message to the streamer via the Twitter API.
This bot uses the following APIs:
This project is licensed under the MIT License - see the LICENSE file for details.