Skip to content

s4l1h/bet365-live-soccer-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bet365 Live Soccer Score Scraper

Notes

This software for education only. I don't take any responsibility.

You can get betting odds from bet365 if you change the parser codes in bet365mobile.js. It will be your responsibility.

Config

Probably you should change config file /app/config.js.

  domain: "mobile.288365.com",
  intervalTimes: {
    list: 1, // 1 sec.
    reload: 1200, // 60*20 = 20 min.
    proxy: 60 // 1 min.
  },
  proxyListAddr: "" // proxy list addr. http://blabla/proxy.json

The proxyListAddr address should be return like this because we need host, port, type, username and password for using the proxy. You can leave the address blank.

[
  {
    host: "172.17.0.1",
    port: "6000",
    type: "http",
    username: "userr",
    password: "pwd"
  },
  {
    host: "172.17.0.2",
    port: "6002",
    type: "http",
    username: "userr",
    password: "pwd"
  }
];

The intervalTimeshas 3 variables. list process list interval time. reload browser reload interval time. if you set to 0 this feature won't work. proxy proxy list fetch interval time

intervalTimes: {
    list: 1, // 1 sec.
    reload: 1200, // 60\*20 = 20 min.
    proxy: 60 // 1 min.
}

How to Use?

via Container

Pls look at the reload.sh file.

via npm

cd app;npm install;npm start Note: You should modify this line if you are going to use without a container. For local development just remove the line.

executablePath: "/opt/google/chrome-unstable/google-chrome", // app/config.js#L3

for more details: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions

URL's

/connect open a browser and connect to bet365

/close close browser

/reload close browser and connect to bet365

/screenshot it returns browser screenshot

/showip it opens https://whatismyipaddress.com/ and returns the screenshot

/params it shows puppeter params.

/proxyList it returns proxy list

/pickProxy/:id You can choice proxy by id.

/clearProxyParam it removes proxy from params.You should reload browser for apply the changes.

/html it returns page html data

/result it returns results.

/it returns results. Status 212 means match's suspended.

screen shots