mrtolkien / leaguepedia_parser

A parser for the Leaguepedia website, focused on gathering esports data.
MIT License
71 stars 18 forks source link

get_games() not working on example code #6

Closed jeremiahfallin closed 4 years ago

jeremiahfallin commented 4 years ago

I just installed leaguepedia_parser and I'm trying to use the example code snippet but get_games() isn't returning anything. I've tried a few different tournaments.

image

image

This is the code:


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")
print(games)
# 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')
mrtolkien commented 4 years ago

I changed the example code to one working with the new nomenclature.

Also, I recommend installing version 1.0 and posting errors as text, it will be easier to answer!