Leaguepedia的解析器。
leaguepedia-parser的Python项目详细描述
儿科医生
Leaguepedia的解析器专注于访问电子竞技数据。在
目前这是非常小的,集中在我自己对Leaguepedia数据的使用上。请求添加功能的请求包括 不只是欢迎!在
安装
pip install leaguepedia_parser
演示
使用
importleaguepedia_parser# Gets regions namesregions=leaguepedia_parser.get_regions()# Gets tournaments in the region, by default only returns primary tournamentstournaments=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 logologo_url=leaguepedia_parser.get_team_logo('T1')
更多用法示例可以在^{
- 项目
标签: