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

Uploaded Source

File details

Details for the file lolpros-parser-0.1.tar.gz.

File metadata

  • Download URL: lolpros-parser-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f1cc88a8474df56f09d8c069e3233520ec4a41ffc2d129b2c0082d37f35494a7
MD5 c8a2a1ec76a1fc1cd5513b890b119721
BLAKE2b-256 d177f00d6d066050b82198b6b326328695b4a1c29030ac5a98f270fd4c815c8d

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