GithubHelp home page GithubHelp logo

gabrielpastorello / frscraper Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

Python package for Football Reference scraping and easy access to football data from various leagues

License: MIT License

Python 100.00%
bundesliga eredivisie football-data football-reference la-liga ligue-1 premier-league serie-a

frscraper's Introduction

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 División 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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.