Giter Site home page Giter Site logo

bet365-live-soccer-scraper's Introduction

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

bet365-live-soccer-scraper's People

Contributors

s4l1h avatar

Stargazers

 avatar  avatar

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.