All Projects → Seb943 → scrapeOP

Seb943 / scrapeOP

Licence: other
A python package for scraping oddsportal.com

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to scrapeOP

mysportsfeeds-api
Feature requests for the MySportsFeeds Sports Data API.
Stars: ✭ 44 (-55.56%)
Mutual labels:  nba, nfl, sports, sports-data
mysportsfeeds-r
R wrapper functions for the MySportsFeeds Sports Data API
Stars: ✭ 27 (-72.73%)
Mutual labels:  nba, nfl, sports-data
boxball
Prebuilt Docker images with Retrosheet's complete baseball history data for many analytical frameworks. Includes Postgres, cstore_fdw, MySQL, SQLite, Clickhouse, Drill, Parquet, and CSV.
Stars: ✭ 79 (-20.2%)
Mutual labels:  sports, baseball, sports-data
mysportsfeeds-node
NodeJS wrapper for the MySportsFeeds Sports Data API
Stars: ✭ 62 (-37.37%)
Mutual labels:  nba, nfl, sports-data
NBA-Machine-Learning-Sports-Betting
NBA sports betting using machine learning
Stars: ✭ 150 (+51.52%)
Mutual labels:  nba, sports, sports-data
nflreadr
Efficiently download nflverse data
Stars: ✭ 38 (-61.62%)
Mutual labels:  nfl, sports-data
brackets-viewer.js
A simple library to display tournament brackets (round-robin, single elimination, double elimination).
Stars: ✭ 52 (-47.47%)
Mutual labels:  sports, esports
flask-react-d3-celery
A full-stack dockerized web application to visualize Formula 1 race statistics from 2016 to present, with a Python Flask server and a React front-end with d3.js as data visualization tool.
Stars: ✭ 20 (-79.8%)
Mutual labels:  sports, sports-data
openrowingmonitor
A free and open source performance monitor for rowing machines
Stars: ✭ 29 (-70.71%)
Mutual labels:  sports, sports-data
sport-stats
Sport stats UI components
Stars: ✭ 62 (-37.37%)
Mutual labels:  sports, sports-data
React-NBA-Logos
React components for NBA team logos 🏀
Stars: ✭ 50 (-49.49%)
Mutual labels:  nba, sports
Sportsipy
A free sports API written for python
Stars: ✭ 229 (+131.31%)
Mutual labels:  nba, sports
retrosheet
Project to parse retrosheet baseball data in python
Stars: ✭ 19 (-80.81%)
Mutual labels:  sports, baseball
scoreboard
CRG Derby Scoreboard
Stars: ✭ 83 (-16.16%)
Mutual labels:  sports, sports-data
cfbscrapR
A scraping and aggregating package using the CollegeFootballData API
Stars: ✭ 25 (-74.75%)
Mutual labels:  sports, sports-data
Nba.js
A Node.js library for current and historical NBA stats, scores, and data.
Stars: ✭ 339 (+242.42%)
Mutual labels:  nba, sports
Nba Player Movements
🏀 Visualization of NBA games from raw SportVU data logs
Stars: ✭ 481 (+385.86%)
Mutual labels:  nba, sports
Deep-Neural-Networks-for-Baseball
A repository to follow along with Andrew Trask's "Grokking Deep Learning" by modelling baseball statistics using various architectures of neural networks built from scratch.
Stars: ✭ 15 (-84.85%)
Mutual labels:  sports, baseball
sports.py
A simple Python package to gather live sports scores
Stars: ✭ 51 (-48.48%)
Mutual labels:  sports, baseball
Basketball analytics
Repository which contains various scripts and work with various basketball statistics
Stars: ✭ 88 (-11.11%)
Mutual labels:  nba, sports

scrapeOP



🆕🆕🆕 A python package for scraping oddsportal.com 🆕🆕🆕

ℹ️ Oddportal.com [1] is a tremendous website containing both historical and future betting odds concerning a wide range of sports and boomakers.
This repository contains :

  1. A set of functions to scrape whatever league you wish :
    1. Clone the repository or download it
    2. Set your chrome driver location at line 20 in functions.py. NB : path is written with double slashes
    3. Open FinalScraper.py and use one of the functions to scrape, that is as simple as this!

ℹ️ Functionalities :

  • Multiple sports supported : soccer, basketball, esports, darts, tennis, baseball, rugby, american football, hockey [list to be expanded soon!]
  • Mutiple functionalities : collect historical odds, current season only, upcoming games, specific season only
  • Collects all available bookmakers odds for each game
  • Collects the final result
  • Automatically sort the data by date
  • 14/11/2020 : You can now have the possibility to scrape the opening odds instead of the closing odds. To do this, just change the line 26 in functions.py to 'OPENING'

ℹ️ Currently supported :

Sport Historical data (multiple seasons) Current Season only Specific Season Next Games
American Football ✔️ ✔️ ✔️ ✔️
Baseball ✔️ ✔️ ✔️ ✔️
Basketball ✔️ ✔️ ✔️ ✔️
Darts ✔️ ✔️ ✔️ ✔️
eSports ✔️ ✔️ ✔️ ✔️
Handball ✔️ ✔️ ✔️ ✔️
Hockey ✔️ ✔️ ✔️ ✖️
Rugby ✔️ ✔️ ✔️ ✔️
Soccer ✔️ ✔️ ✔️ ✔️
Tennis ✖️ ✔️ ✖️ ✔️
Volleyball ✔️ ✔️ ✔️ ✔️

ℹ️ The main functions which you can use are the following one :

1.scrape_oddsportal_historical(sport = 'soccer', country = 'france', league = 'ligue-1', start_season = '2010-2011', nseasons = 5, current_season = 'yes', max_page = 25)
2.scrape_oddsportal_current_season(sport = 'soccer', country = 'finland', league = 'veikkausliiga', season = '2020', max_page = 25)
3.scrape_oddsportal_specific_season(sport = 'soccer', country = 'finland', league = 'veikkausliiga', season = '2019', max_page = 25)
4.scrape_oddsportal_next_games(sport = 'tennis', country = 'germany', league = 'exhibition-bett1-aces-berlin-women', season = '2020') 

ℹ️ e.g. if I want to collect the data concerning the soccer league MLS (USA) during the 2013 season (1 season) and for the current season aswell and that I only want the first two pages from oddsportal, I just need to call :
Scraper_final code ..then console when running code :
Scraper_final code running ..and finally the scraped data, saved in .csv format :
Table Overview

Extra-documentation can be found for the functions in the functions.py script. 💯💯

ℹ️ How to create a sports-betting algorithm from historical data :

ℹ️ Please report any bug/issue in the issues section or directly at [email protected]. Any feedback is really appreciated 💬 👍.





You can also have a look at the functions.py source code in order to understand the mechanics and eventually adapt the code to your own purpose. In the functions.py script, I distinguished 4 types of sports, according to the sport-related format of outcome (either 1X2, 12, and various types of score : tennis-alike, football-alike, baseball-alike, hockey-like (the format is different for hockey on oddsportal website) ).

With the emergence of sports analytics and machine learning, it has become possible for anyone to create data-based betting strategies, taking into considerations both market-related figures (odds values, variations, differentials between bookmakers) and sport-related metrics of performance of any team. In order to perform this task, the very minimal data required is the historical results and betting odds (closing odds are usually preferred) which you can then use to create Machine Learning and Deep Learning models to infer probabilities of victories, and to analyze whether any given team is being undervalued or overvalued by any given bookmaker. The oddsportal website is one of the largest publicly open odds database, however its format and architecture are not very pleasing to deal with, therefore one need a bit of time to build tools to collect the data on their website. This package offers a comprehensive interface (sort of unofficial API) to collect odds and save the data into a comprehensive csv format.

[1] https://www.oddsportal.com/

NB : This package is purposed for educational use only, not for any commmercial purpose in any way. I am not related by any mean with the oddsportal website.

BTC : 3PkoHLXmXsL8kBrFu7GQ8kpmzPBmNK6m8B
ETH : 0xFdbB5aF291cB7e711D62c1E4a8B58d0EbD423F9C

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].