Giter VIP home page Giter VIP logo

allusion's Introduction

Sport betting scraper

Scrape all desired sports and odds from Oddsportal. Furthermore you can check for arbitrage opportunities.

Example scraped data

Example output of scrape-once. Example output of scrape-once

The following image depicts three arbitrage opportunities found after scraping Example arbitrage 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

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

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

allusion create-config

Note: It is recommended to use a virtual environment.

allusion's People

Contributors

dependabot[bot] avatar erdieee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

allusion's Issues

After install can't run , module not found.

Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/Alt/allusion/allusion/main.py", line 1, in
from allusion.main import main
ModuleNotFoundError: No module named 'allusion'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.