项目作者: o8e

项目描述 :
:page_with_curl: Scrape football data from Bet365
高级语言: JavaScript
项目地址: git://github.com/o8e/soccer-scrape.git
创建时间: 2018-03-14T14:03:50Z
项目社区:https://github.com/o8e/soccer-scrape

开源协议:MIT License

下载


soccer-scrape

Scrape football data from Bet365

npm version
build status

A pretty rigid library to fetch todays unplayed fixtures. It currently only supports three attributes, and comes from a defined source, Bet365, because they have the most extensive, whacky leagues available.

Installation

OS X & Linux:

  1. npm install soccer-scrape --save

Usage example

Currently the only function available is getFixtures, this returns an object.

  1. import { getFixtures } from 'soccer-scrape'
  2. const data = getFixtures()
  3. /*
  4. {
  5. "scheduled": "19:30",
  6. "teams": {
  7. "home": "AC Milan U19",
  8. "away": "Pro Vercelli U19"
  9. }
  10. }
  11. */

Development setup

  1. git clone git@github.com:o8e/soccer-scrape.git
  1. npm i
  1. npm run dev

Release History

  • 0.0.2
    • Update docs and publish to NPM (module code remains unchanged)
    • Add testing with mocha/chai and configure travis
  • 0.0.1
    • Develop initial function to fetch fixtures

Meta

Ollie Tribe – tribe@myself.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/o8e

Contributing

  1. Fork it (https://github.com/o8e/soccer-scrape/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request