Skip to main content

A parser for Leaguepedia.

Project description

Generic badge Code style: black

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

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 Spring")

# 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


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-1.0a3.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file leaguepedia_parser-1.0a3.tar.gz.

File metadata

  • Download URL: leaguepedia_parser-1.0a3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.3

File hashes

Hashes for leaguepedia_parser-1.0a3.tar.gz
Algorithm Hash digest
SHA256 e555df4ddae5c8d3be0923a0824646c75bbb4f0474a2aa184cf6297a72565876
MD5 3c1e4b369a7ee5fd4632d90fb49f99e4
BLAKE2b-256 d2a11f9db04024c97051eb3fdb54318fb6693b5d722fa1379eb94bc5836855ec

See more details on using hashes here.

Supported by

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