https://github.com/erdieee/allusion
Sports betting (Arbitrage) bot
https://github.com/erdieee/allusion
arbitrage betting odds sports sports-data
Last synced: 12 days ago
JSON representation
Sports betting (Arbitrage) bot
- Host: GitHub
- URL: https://github.com/erdieee/allusion
- Owner: erdieee
- License: mit
- Created: 2023-07-21T10:00:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-11T20:50:21.000Z (over 2 years ago)
- Last Synced: 2024-04-13T15:50:38.760Z (over 2 years ago)
- Topics: arbitrage, betting, odds, sports, sports-data
- Language: Python
- Homepage:
- Size: 755 KB
- Stars: 14
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sport betting scraper
Scrape all desired sports and odds from [Oddsportal](https://www.oddsportal.com/). Furthermore you can check for arbitrage opportunities.
## Example scraped data
Example output of `scrape-once`.

The following image depicts three arbitrage opportunities found after scraping

Not all rows are displayed in the images above.
After saving the dataframe, you can take a deeper look and manipulate it in a jupyter notebook.
You can take a look at the process of scraping the odds by providing the `not-headless` option. However it is recommended to scrape without `not-headless`, in order to speed up the scraping process.
**Note** While scraping multiple browser pages are loaded at once. If your CPU is slow, your machine might freeze or function slower until the scraping is done. Thus you might want to lower the amount of `sports/countries/leagues` to scrape.
## Commands
List available commands with
```bash
python3 allusion --help
#or just
allusion --help
```
Output:
```
usage: allusion [-h] [-V] {create-config,scrape-once,list-data} ...
Sport betting bot
positional arguments:
{create-config,scrape-once,list-data}
create-config Create template config
scrape-once Get the data and exit.
list-data Show the available data.
options:
-h, --help show this help message and exit
-V, --version Show bots version and exit.
```
## Install
Clone the repo and run
```bash
python3 -m pip install -r requirements.txt
python3 -m pip install -e .
python3 -m playwright install
```
You will need to create a config file, with the command
```bash
allusion create-config
```
**Note**: It is recommended to use a [virtual environment](https://docs.python.org/3/library/venv.html).