Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celtian/soccerbot
Library for scraping soccer data from the internet
https://github.com/celtian/soccerbot
library typescript
Last synced: about 10 hours ago
JSON representation
Library for scraping soccer data from the internet
- Host: GitHub
- URL: https://github.com/celtian/soccerbot
- Owner: Celtian
- License: mit
- Created: 2021-02-23T21:21:27.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T21:43:43.000Z (3 months ago)
- Last Synced: 2024-09-29T21:35:43.835Z (about 2 months ago)
- Topics: library, typescript
- Language: TypeScript
- Homepage:
- Size: 2.17 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
SoccerBot
[![npm version](https://badge.fury.io/js/soccerbot.svg)](https://badge.fury.io/js/soccerbot)
[![Package License](https://img.shields.io/npm/l/soccerbot.svg)](https://www.npmjs.com/soccerbot)
[![NPM Downloads](https://img.shields.io/npm/dm/soccerbot.svg)](https://www.npmjs.com/soccerbot)
[![Build & Publish](https://github.com/celtian/soccerbot/workflows/Build%20&%20Publish/badge.svg)](https://github.com/celtian/soccerbot/actions)
[![codecov](https://codecov.io/gh/Celtian/soccerbot/branch/master/graph/badge.svg?token=1IRUKIKM0D)](https://codecov.io/gh/celtian/soccerbot/)
[![stars](https://badgen.net/github/stars/celtian/soccerbot)](https://github.com/celtian/soccerbot/)
[![forks](https://badgen.net/github/forks/celtian/soccerbot)](https://github.com/celtian/soccerbot/)
[![HitCount](http://hits.dwyl.com/celtian/soccerbot.svg)](http://hits.dwyl.com/celtian/soccerbot)> Library for scraping soccer data from the internet
## 🛠️ Install
_Nodejs 12 or higher need to be installed first_
```terminal
npm install soccerbot
```or
```terminal
yarn add soccerbot
```## 🚀 Quick start
_Type this into your ts file._
```terminal
import { soccerway, transfermarkt, fotbalunas, eurofotbal, sportnet } from 'soccerbot';console.log(soccerway.teamUrl('533')); // show url
soccerway.team('533')
.then(res => console.log(res));console.log(transfermarkt.teamUrl('62')); // show url
transfermarkt.team('62')
.then(res => console.log(res));console.log(fotbalunas.teamUrl('62')); // show url
fotbalunas.team('62')
.then(res => console.log(res));console.log(eurofotbal.teamUrl('cesko/sparta-praha')); // show url
eurofotbal.team('cesko/sparta-praha')
.then(res => console.log(res));console.log(sportnet.teamUrl('fk-inter-bratislava/tim/46770')); // show url
sportnet.team('fk-inter-bratislava/tim/46770')
.then(res => console.log(res));
```## 🛠️ Sources
| Source | Speed | Stability | Coverage |
| ----------------- | ------ | --------- | -------------- |
| **transfermarkt** | ⚽⚽⚽ | ⚽⚽⚽ | World |
| **soccerway** | ⚽ | ⚽ | World |
| **fotbalunas** | ⚽ | ⚽⚽⚽ | Czech Republic |
| **eurofotbal** | ⚽⚽ | ⚽⚽ | Europe |
| **sportnet** | ⚽ | ⚽ | Slovakia |_Note: Soccerway, Fotbalunas and sportnet is taking data from multiple pages, so it takes longer period of time. The reason is to prevent rare limit (30 sec on average)._
## 🪪 License
Copyright © 2021 - 2024 [Dominik Hladik](https://github.com/Celtian)
All contents are licensed under the [MIT license].
[mit license]: LICENSE