https://github.com/akapich/scrapelo
Python package for obtaining ELO rating for European football clubs easily
https://github.com/akapich/scrapelo
clubelo elo football football-data python scraping
Last synced: 7 months ago
JSON representation
Python package for obtaining ELO rating for European football clubs easily
- Host: GitHub
- URL: https://github.com/akapich/scrapelo
- Owner: AKapich
- License: mit
- Created: 2024-03-03T14:40:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-03T15:28:17.000Z (over 1 year ago)
- Last Synced: 2025-01-04T15:31:59.098Z (9 months ago)
- Topics: clubelo, elo, football, football-data, python, scraping
- Language: Python
- Homepage: https://pypi.org/project/scrapelo/
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Scrapelo
This simple package provides functions for obtaining ELO scores for clubs available on [clubelo.com](http://clubelo.com/).
If You wonder how does the ELO system work, You can read about it [here](http://clubelo.com/System).## Installation
```
pip install scrapelo
```## Features
### Get the current ELO scores of clubs for a given competition.
```
import scrapelo
scrapelo.get_competition_elo('Champions League')
```
The same effect can be achieved by using the competition code instead of the competition name. You can find out the full list of codes [here](https://github.com/AKapich/Scrapelo/blob/main/country_codes.py).
```
import scrapelo
scrapelo.get_competition_elo('UCL')
```For the country competitions the argument ought to be the country's name in English or the country's code.
```
import scrapelo
# two lines below will give You the same output
scrapelo.get_competition_elo('Spain')
scrapelo.get_competition_elo('ESP')
```
### Get the current ELO of a single club.
```
import scrapelo
# Function takes only club name as an argument
scrapelo.get_club_elo('Barcelona')
```## Legal Scraping
The data is scraped legally, as the [robots.txt](http://clubelo.com/robots.txt) file on the website allows for it.