0.0.3 • Published 11 months ago

@wisewagers/medium-scrape-bms v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

SportsbettingAPI

API to webscrape sportsbetting odds from different platforms

Data

Scraping Data

{
  exchange: "Betfair",
  sport: "EPL",
  games: 
    [
      {
        homeTeam: 'Fulham',
        awayTeam: 'Chelsea',
        startTime: 1663317818000,
        link: 'https://www.betfair.com.au/exchange/plus/football/market/1.203643135',
        outcomes: 
            {
            home: 1.210,
            draw: 1.400,
            away: 8.211,
            }
      }        
    ...
    ]
}

Games Data

This is what the data looks like after combining scraped data by games { "homeTeam": "Paris Saint-Germain", "awayTeam": "OGC Nice", "startTime": 1664650800000, "sport": "Ligue 1", "bookmakers": { "bookmaker": "Ladbrokes", "link": "https://www.ladbrokes.com.au/sports/soccer/france/french-ligue-1", "outcomes": { "home": 1.15, "draw": 8, "away": 19 } }, { "bookmaker": "BlueBet", "link": "https://www.bluebet.com.au/sports/Soccer/100/France/Ligue-1-Orange/Paris-Saint-Germain-v-OGC-Nice/1056121/All-Markets", "outcomes": { "home": 1.14, "draw": 7.5, "away": 15 } }, { "bookmaker": "Pointsbet", "link": "https://pointsbet.com.au/sports/soccer/French-Ligue-1/1331822", "outcomes": { "home": 1.15, "draw": 7.5, "away": 15 } }, ... },

Coverage

sportBetDeluxeBetfairBlueBetLadbrokesMidasBetPalmerBetPlayUpPointsbetSportsbetTabUnibet
EPLtruetruetruetruetruetruetruetruetruetruetrue
Ligue 1truetruetruetruetruetruetruetruetruetruetrue

Packages

npm install express
npm install dotenv
npm install -D typescript @types/express @types/node
npm install -D concurrently nodemon
npm install dayjs
npm install puppeteer
0.0.3

11 months ago

0.0.1

12 months ago