Using this program requires basic knowledge of Python. This code was written quickly, and there is a lot of room for improvement. If you find any bugs, don’t hesitate to let me know, I currently don’t have any plans on further developing this bot, but I would fix the bugs.
|1||Does this bot find fake views?||No, This bot only checks the streamer’s user in chat and finds out which one of them follows that broadcaster. This information may be used along with other statistics to show if someone’s views are artificially adjusted.|
|2||Is this allowed?||This program uses publicly available Twitch API.|
|3||Why do I need to login?||The Twitch API has a lower rate limit of Application tokens compared to User tokens. By logging in, the app uses your user token to do things more quickly.|
In order to run this code you need to:
- Have Python running properly on your computer (if you don’t know how to do this, use a beginner’s guide)
- Install pyTwitchAPI for Python, you can install using pip:
pip install twitchAPI
- Register an Application on Twitch and save its App ID and Secret
Go to Twitch Dev Console and register your application. Use
http://localhost:17563as the redirect URL.
After setting up everything from the previous section, all you need to do is to replace the APP_ID and APP_SECRET in line 85:
twitch = Twitch(APP_ID_HERE,APP_SECRET_HERE)
and replace the streamer’s name with the person you want to check in line 88:
streamer_name = "shroud"
You can now run the python file and wait for it to generate the related text files.