Simple reddit bot to update the sidebar with Serie A & Serie B live table, and top scorers. Nothing really fancy.
- Copy config.ini.default to config.ini
- Set the following:
username: <your bot's username>
password: <your bot's password>
subreddit: <your subreddit without the /r/>
userAgent: Soccer_Bot_S/v1.1.0 by <your bot's username>
- NOTE: setting the subreddit in this file makes this the default subreddit in the event that you do not pass an argument to the script show later on
username: calciobot
password: somepassword
subreddit: beta_calcio
userAgent: Soccer_Bot_S/v1.1.0 by calciobot
- Note that the userAgent MUST be changed or it will go against reddit's TOS.
- This the install_prep.sh is meant to be run on a Fedora box or equivalent.
python
python-pip (to help install the python modules)
beautifulsoup4 (Screen-scraping library)
praw (The Python Reddit Api Wrapper)
- If you have a fedora system you can simply run the install_prep.sh script and it should install the required modules o* Then just create a cronjob to run the script at specific intervals
** Example:
*/15 * * * * sh ~/calciobot/run_calciobot.sh
** Example: to run the script for beta_calcio and calcio, this will allow you to have different intervals for running the script based on the subreddit chosen
*/15 * * * * sh ~/calciobot/run_calciobot.sh beta_calcio
*/15 * * * * sh ~/calciobot/run_calciobot.sh calcio
- Modify run_calciobot.sh if needed to point to the full path or use ${HOME}/some_path/in_your/home_dir
- This script was heavily modified from ubercl0ud's original Calciobot and Spiz Trezbot