Scraper and data of betting odds from betsport.com with direct update to Github.
Notes:
- Tested only on politics!
- Odds is 'Last Price Traded'
Data are structured in tabular datapackage format (http://frictionlessdata.io/guides/tabular-data-package/).
Odds for bets on politics are updated daily and accessible in this project.
Requirements:
- Python 3
- Python packages: csv, datetime, datapackage (>=v0.8), git, lxml, re, requests, os
Copy example settings into settings and correct it for your Github account (e.g., your bot's account)
cp settings-example.py settings.py
Note: The origin for the local git project must be 'ssh' address (not 'https' one) for bot to work.
You can automate the data retrieval using cron. Example:
14 3 * * * /usr/bin/python3 /home/project/tipsport.cz/scraper.py > /dev/null 2>&1