Skip to main content

Python Parser for lolpros.gg

Project description

lolpros_parser

Small library for pulling player data from https://lolpros.gg/ external API.

Installation

Using pip:

pip install lolpros_parser

Usage

Full functionality can be found within the method definition file.

import lolpros_parser

# Grab list of summoner names for a player
player = "Chemera"
print(lolpros_parser.get_player_summoner_names(player))
# >> ["Chemera"]

# Grab list of summoner info for a player
print(lolpros_parser.get_player_summoner_info(player))
# >> [{'uuid': '86b3f764-5dbe-4230-a32c-d8f246636771', ...} ...]

# Grab ranking history for a particular summoner UUID
summoner_uuid = "86b3f764-5dbe-4230-a32c-d8f246636771"
print(lolpros_parser.get_summoner_rankings(summoner_uuid, months=3))
# >> [{
#   "score":2504,
#   "created_at":"2021-09-14T00:04:27+00:00",
#   "tier":"40_platinum",
#   "ranking":1,
#   "league_points":100,
#   "wins":3,
#   "losses":8,
#   "season":"season_11"
#   },
#   ...
# ]  

# Grab players and their role for a given team
print(lolpros_parser.get_players_by_team("Resolve"))
# >> [
#   {'role': 'support', 'name': 'fgg'}, 
#   {'role': 'jungle', 'name': 'sof'}, 
#   {'role': 'top', 'name': 'kaylem'},
#   ...
# ]

Feature Request

Please feel free to raise an issue requesting a feature, or create a PR to implement one yourself.

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

lolpros_parser-0.0.3.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file lolpros_parser-0.0.3.tar.gz.

File metadata

  • Download URL: lolpros_parser-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.0

File hashes

Hashes for lolpros_parser-0.0.3.tar.gz
Algorithm Hash digest
SHA256 23f03f1453eeb14bbe5e6630cbf0f1507d6b51f5372c4c5a5fb9d18c03705582
MD5 77782186150fb3034da1e158abf83975
BLAKE2b-256 2ffcf9beebea7f5efdec65b8d4dd62813f7660ac603ec23078c2c0a58199d6dc

See more details on using hashes here.

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