https://github.com/celtian/soccerbot
Library for scraping soccer data from the internet
https://github.com/celtian/soccerbot
library typescript
Last synced: about 1 year 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 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T21:43:43.000Z (almost 2 years ago)
- Last Synced: 2025-03-27T21:23:22.266Z (over 1 year ago)
- Topics: library, typescript
- Language: TypeScript
- Homepage:
- Size: 2.17 MB
- Stars: 3
- 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
[](https://badge.fury.io/js/soccerbot)
[](https://www.npmjs.com/soccerbot)
[](https://www.npmjs.com/soccerbot)
[](https://github.com/celtian/soccerbot/actions)
[](https://codecov.io/gh/celtian/soccerbot/)
[](https://github.com/celtian/soccerbot/)
[](https://github.com/celtian/soccerbot/)
[](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