Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Releases: JacobLee23/FanGraphs-Export

Major League Leaderboards

03 Mar 22:32
2f2efe7
Compare
Choose a tag to compare
Pre-release

Major League Leaderboards

The FanGraphs Major League Leaderboards page is covered.
The page can be scraped using MajorLeagueLeaderboards class of the FanGraphs.leaders module.

from FanGraphs.leaders import MajorLeagueLeaderboards
mll = MajorLeagueLeaderboards()
mll.configure(query, value)
mll.export(name="MajorLeagueLeaderboards.csv")
mll.quit()

Note: The Splits Leaderboards are not covered with MajorLeagueLeaderboards, even though the split query can be configure to Splits Leaderboards. Coverage for this leaderboard will be added with the SplitsLeaderboards class of FanGraphs.leaders.