This project fetches all the streamers in the software and dev category who are live and populates a mongodb database.
Before running this application, ensure you have the following:
- ๐ Python 3.12 or later
- โ๏ธ Pixi for environment management
- ๐ฎ A Twitch Developer account and an access token
- ๐ A
.env
file containing your Twitch API access token
-
Create and activate a Pixi environment:
pixi new twitch-fetcher-env pixi activate twitch-fetcher-env ```:x:x
-
Install the required dependencies from the
.toml
file:pixi install
-
Create an
.env
file to securely store your Twitch API access token:echo "TWITCH_TOKEN=<your-twitch-access-token>" > .env
-
Run the script:
python twitch_video_service.py
-
The script will fetch live streams in the "Software and Game Development" category and display their titles.