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!
Metadata
Release files for FRScraper 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| frscraper-0.1.3.tar.gz | 5.1 kB | Without provenance | Details for frscraper-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| FRScraper-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for FRScraper-0.1.3-py3-none-any.whl |
Total release size: 10.4 kB
Release files / frscraper-0.1.3.tar.gz
| Download URL | frscraper-0.1.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37f67c29c9b2c7d90cf52289e6128bc4299b6e8cc6115e36bb0a506df7215327
|
|
BLAKE2b-256 checksum How to use checksums |
5591db635b41f99634c029c40b58630beae54d3247cbf84cb8886b2376e04f67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Release files / FRScraper-0.1.3-py3-none-any.whl
| Download URL | FRScraper-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af7a47e5bb32c47ad5bf235771a55ec0ee326e281034288b9b4b85be1d43dfae
|
|
BLAKE2b-256 checksum How to use checksums |
763eb1f0e79c47ab5bf6c37edad8cc2c88f4ce747936122a43282f8f730e3f10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Security for FRScraper 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.