Python module for Football Reference scraping and easy access to football data from various leagues
Project description
FRScraper
Python package for easy access to football data through scraping of Football Reference website.
This allows users to obtain statistics, standings, and scores of the following tournaments:
- Premier League (England)
- La Liga (Spain)
- Bundesliga (Germany)
- Ligue 1 (France)
- Serie A (Italy)
- Eredivisie (Netherlands)
- Liga Portuguesa (Portugal)
- Campeonato Brasileiro (Brazil)
- Primera Division Argentina (Argentina)
- Ekstraklasa (Poland)
- Russian Premier League (Russia)
- Saudi Pro League (Saudi Arabia)
Installing
Via pip
Install with the following command:
pip install FRScraper
Documentation
For documentation about the API methods refer to the documentation.
Example of use
from FRScraper import FRScraper
# League table
df = FRScraper.get_rankings('ENG').head()
Output:
| Rk | Squad | MP | W | D | L | ... | xGD | xGD/90 | Attendance | Top Scorer Goals | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | Manchester City | 38 | 28 | 7 | 3 | ... | 44.9 | 1.18 | 50112 | 27 |
| 1 | 2 | Arsenal | 38 | 28 | 5 | 5 | ... | 48.2 | 1.27 | 60236 | 16 |
| 2 | 3 | Liverpool | 38 | 24 | 10 | 4 | ... | 42.0 | 1.11 | 55979 | 18 |
| 3 | 4 | Aston Villa | 38 | 20 | 8 | 10 | ... | 3.4 | 0.09 | 41858 | 19 |
| 4 | 5 | Tottenham | 38 | 20 | 6 | 12 | ... | 4.8 | 0.13 | 61482 | 17 |
More examples in the files.
Use it wisely!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file frscraper-0.1.3.tar.gz.
File metadata
- Download URL: frscraper-0.1.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37f67c29c9b2c7d90cf52289e6128bc4299b6e8cc6115e36bb0a506df7215327
|
|
| MD5 |
7d0ff37d56e751ca00f7251793928dab
|
|
| BLAKE2b-256 |
5591db635b41f99634c029c40b58630beae54d3247cbf84cb8886b2376e04f67
|
File details
Details for the file FRScraper-0.1.3-py3-none-any.whl.
File metadata
- Download URL: FRScraper-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af7a47e5bb32c47ad5bf235771a55ec0ee326e281034288b9b4b85be1d43dfae
|
|
| MD5 |
b5b348575418766787fccbba7020cd46
|
|
| BLAKE2b-256 |
763eb1f0e79c47ab5bf6c37edad8cc2c88f4ce747936122a43282f8f730e3f10
|