Skip to main content

fbref_logo

pypi python version license

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)

Source distribution for FRScraper 0.1.3
File Size Uploaded
frscraper-0.1.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FRScraper 0.1.3
File Interpreter ABI Platform
FRScraper-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page