Skip to main content

A parser for the Leaguepedia website, focused on accessing esports data.

Project description

leaguepedia_parser

A parser for the Leaguepedia website, focused on accessing esports data.

Possible future functionality includes direct querying for games from team names, fuzzy matching for tournament names, and so on and so forth.

Install

pip install leaguepedia_parser

Usage

import leaguepedia_parser

lp = leaguepedia_parser.LeaguepediaParser()

# Gets you available regions
lp.get_tournament_regions()

# Gets you tournaments in the region, by default only returns primary tournaments
tournaments = lp.get_tournaments('Korea', year=2020)

# Gets you all games for a tournament. Get the name from get_tournaments()
games = lp.get_games(tournaments[0]['name'])

# Gets picks and bans for a game. Get the game object from get_games()
lp.get_picks_bans(games[0])

river_mwclient

If you installed river_mwclient, the LeaguepediaParser class will inherit from its EsportsClient class.

If not, it will simply be a wrapper for mwclient.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leaguepedia_parser-0.1.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

leaguepedia_parser-0.1.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page