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.
Metadata
Release files for lolpros-parser 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lolpros_parser-0.2.tar.gz | 1.9 kB | Without provenance | Details for lolpros_parser-0.2.tar.gz |
Release files / lolpros_parser-0.2.tar.gz
| Download URL | lolpros_parser-0.2.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caecaebb86db9a7c0d5dbf3bc1b46b0a4600e256b9d2246cd0cc998d143e7591
|
|
BLAKE2b-256 checksum How to use checksums |
867beccaeef7a554b658299c8110c93cb22a63246dd65d4d62744733d4fb92cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for lolpros-parser 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.