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.2.tar.gz (1.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: lolpros_parser-0.2.tar.gz
  • Upload date:
  • Size: 1.9 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.2.tar.gz
Algorithm Hash digest
SHA256 caecaebb86db9a7c0d5dbf3bc1b46b0a4600e256b9d2246cd0cc998d143e7591
MD5 d5fc50fe9d041203bb430e88856977e4
BLAKE2b-256 867beccaeef7a554b658299c8110c93cb22a63246dd65d4d62744733d4fb92cf

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