A parser for Leaguepedia.
Project description
leaguepedia_parser
A parser for Leaguepedia focused on accessing esports data.
It is very minimal at the moment and focused on my own usage of Leaguepedia’s data. Pull requests to add features are more than welcome!
Install
pip install leaguepedia_parser
Demo
Usage
import leaguepedia_parser
# Gets regions names
regions = leaguepedia_parser.get_regions()
# Gets tournaments in the region, by default only returns primary tournaments
tournaments = leaguepedia_parser.get_tournaments("Korea", year=2020)
# Gets all games for a tournament. Get the name from get_tournaments()
games = leaguepedia_parser.get_games("LCK/2020 Season/Spring Season")
# Gets picks and bans and other details from a game. Get the game object from get_games()
game = leaguepedia_parser.get_game_details(games[0])
# Gets the URL of the team’s logo
logo_url = leaguepedia_parser.get_team_logo('T1')
More usage examples can be found in the _tests
folder.
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for leaguepedia_parser-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ca73bd5620f640616c95b4df7e932789641f947768d2de2af82186f2ba467c9 |
|
MD5 | 5c4242c6cd7eed4e13ce266b15217be0 |
|
BLAKE2b-256 | 1ea1c4e866a2d1d4c0eefae5b76d246a4b66305a471baeded457adab95a10f95 |