This is a pretty simple Bet365 scraper using Selenium + Beautiful Soup. It can get the odds of any player from any currently running match
WARNING: This currently only works on Windows. With some modification, it can be made to work on Linux (make a pull request!)
Requirements:
- beautifulsoup4
- selenium
- soupsieve
- urllib3
While the latest versions of all of these should be compatible, using the versions listed in the req.txt file are guaranteed to work
To install from source, simply clone this repository. First, install the requirements:
python3 -m pip install -r req.txt
Then, install it:
python bet365/setup.py install
- Install Chrome Beta using the install file in the repo
- Install dependencies by running
pip install -r req.txt
- Include the get_data function by having
from scrape import *
in your program - Use the
get_odds_data
function to retrieve data from any currently running game. Add True or False to whether to include debug info. to have certain commands print
Alternatively you can just install the scraper using pip by running
python -m pip install bet365