Coder Social home page Coder Social logo

livesoccertv-parser's Introduction

livesoccertv-parser

© All rights reserved to Live soccer TV

Parse games info from livesoccertv

Install

npm install livesoccertv-parser

Usage

The parser works with promises:

const matches = require('livesoccertv-parser')
console.log(await matches('spain', 'real-madrid')) //=> [{...}, {...}, ...]

Match object:

Match {
  live: false
  played: true,
  competition: 'Supercopa de España',
  date: 'August 13',
  time: '4:00 PM',
  game: 'Barcelona vs Real Madrid',
  tvs:
    [
      'TeleCinco',
      'TV3',
      'Radio Barca'
    ]
}

API

  • Timezone

By default, the timezone is America/New_York. You can set your own with:

matches('spain', 'real-madrid', { timezone: 'Europe/Madrid' })
matches('england', 'arsenal', { timezone: 'Europe/London' })

Contribute

JavaScript Style Guide

Feel free to open an issue or a PR.

License

MIT

Related

More at pablo.pink

  • microsoccer: Microservice to fetch soccer games schedules and tv channels.

Author

me
© 2018 Pablo Varela

livesoccertv-parser's People

Contributors

pablopunk avatar mtnalonso avatar

Watchers

James Cloos 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.