Skip to content

icepick4/daily-steam-stats

Repository files navigation

daily-steam-stats

Description

This Twitter bot posts every day some tweets about trending games on steam. You can take a look at it right here Currently the bot is in auto mode, take a look just below in Usages

Dependencies

The bot depends on the following modules :

  • requests
  • tweepy
  • bs4
  • emoji
  • pyshorteners

You can skip pyshorteners and emoji (it's a bonus for the bot)

Install them with the following command :

pip install -r requirements.txt

Datas are scraped from www.steamcharts.com

Usages

To use the scripts on your own, you must create a config.py file including your API keys. It claims that you already have a dev twitter account. If it's not the case, you will need one.

You have three ways to use the script :

# post manually the tweets
python3 main.py --manual
# run the script without tweeting for real
python3 main.py --debug
# post every 2 hours automatically
python3 main.py --auto
  • In auto mode, every two hours, the bot tweets trending games, then most played games, and once a day the peak games of the day.
  • In manual mode you can choose which tweet you want.
  • With debug mode you disable tweeting for real.

If you have any advice or any new feature idea just tell me ! Or simply fork this project and send me a pull request !

Examples

Currently tweets are threads containing :

  • Main leaderboard
  • Links to the games
  • Hashtags
  • Ending reply

Screenshots

Main leaderboard :

image image image

Links to the games :

image image image

Hashtags & Ending tweet :

image