Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pablopunk/livesoccertv-parser
Parse soccer games data from https://livesoccertv.com
https://github.com/pablopunk/livesoccertv-parser
football futbol js matches parser soccer tv
Last synced: 3 months ago
JSON representation
Parse soccer games data from https://livesoccertv.com
- Host: GitHub
- URL: https://github.com/pablopunk/livesoccertv-parser
- Owner: pablopunk
- Created: 2017-08-09T22:16:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-02T19:25:52.000Z (4 months ago)
- Last Synced: 2024-10-19T08:37:55.062Z (3 months ago)
- Topics: football, futbol, js, matches, parser, soccer, tv
- Language: HTML
- Homepage:
- Size: 447 KB
- Stars: 17
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# livesoccertv-parser
> © All rights reserved to [Live soccer TV](http://www.livesoccertv.com/)
Parse games info from livesoccertv## Install
```bash
npm install livesoccertv-parser
```## Usage
The parser works with promises:
```js
const {getMatches} = require('livesoccertv-parser')
console.log(await getMatches('spain', 'real-madrid')) //=> [{...}, {...}, ...]
```Match object:
```js
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:
```js
getMatches('spain', 'real-madrid', { timezone: 'Europe/Madrid' })
getMatches('england', 'arsenal', { timezone: 'Europe/London' })
```- Search
You can search for teams like so:
```js
const {searchTeams} = require("livesoccertv-parser")
searchTeams("madrid")
// [
// ["spain", "real-madrid"],
// ["spain", "atletico-madrid"],
// ]
```## Contribute
Feel free to open an _issue_ or a _PR_.
## License
MIT
## Related
More at [pablopunk.com](https://pablopunk.com)
- [microsoccer](https://github.com/pablopunk/microsoccer): Microservice to fetch soccer games schedules and tv channels.
## Author
| ![me](https://gravatar.com/avatar/fa50aeff0ddd6e63273a068b04353d9d?size=100) |
| ---------------------------------------------------------------------------- |
| © 2018 [Pablo Varela](https://pablopunk.com) |