Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s4l1h/bet365-live-soccer-scraper
Bet365 Live Soccer Score Scraper
https://github.com/s4l1h/bet365-live-soccer-scraper
bet365 express express-js puppeteer
Last synced: 2 months ago
JSON representation
Bet365 Live Soccer Score Scraper
- Host: GitHub
- URL: https://github.com/s4l1h/bet365-live-soccer-scraper
- Owner: s4l1h
- License: mit
- Created: 2019-08-28T02:56:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T19:02:51.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T23:15:00.757Z (3 months ago)
- Topics: bet365, express, express-js, puppeteer
- Language: JavaScript
- Size: 1.58 MB
- Stars: 46
- Watchers: 6
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`.
```javascript
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.
```javascript
[
{
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 `intervalTimes`has 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```javascript
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.
```js
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
![](screenshots/screenshot.png)
![](screenshots/html.png)
![](screenshots/result.png)
![](screenshots/showip.png)