Skip to main content

Unofficial Lolalytics scraper

Project description

Unofficial Lolalytics scraper

[TBA] a lot of things

Installation

pip install lolalytics-api

Functions

get_tierlist

  • def get_tierlist(n: int = 10, lane: str = '', rank: str = '')
    *Empty rank is set by default to Emerald+
    *Empty lane is set by default to all lanes
{
  "0": {
      "rank": "1",
      "champion": "Ahri",
      "tier": "S+",
      "winrate": "52.73"
    },
  "1": {
      "rank": "2",
      "champion": "Yone",
      "tier": "S",
      "winrate": "50.92"
    }
}

get_counters

  • def get_counters(n: int = 10, champion: str = '', rank: str = '')
    *Empty rank is set by default to Emerald+
{
  "0": {
      "champion": "Akali",
      "winrate": "47.91"
    }
}

display_ranks

  • def display_ranks(display: bool = True)
    Display all available ranks and their shortcuts.
    If display is True (default), prints the ranks to the console.
    Otherwise, returns a dict.

display_lanes

  • def display_lanes(display: bool = True)
    Same as above, but for lanes.

get_champion_data

  • def get_champion_data(champion: str, lane: str = '', rank: str = '')
    Returns detailed info about a certain champion.
{
    "winrate": "51.7%",
    "wr_delta": "0.93%",
    "game_avg_wr": "50.77%",
    "pickrate": "7.46%",
    "tier": "S+",
    "rank": "1 / 99",
    "banrate": "10.27%",
    "games": "67,380"
}

matchup

  • def matchup(champion1: str, champion2: str, lane: str = '', rank: str = '')
    Returns winrate and number of games played in a matchup between two champions.
{
    "winrate": "49.8%",
    "number_of_games": "1,000"
}

patch_notes

  • def patch_notes(rank: str = ''')
    It does NOT show detailed patch notes.
    Nevertheless, it shows which champions were buffed/nerfed/adjusted, also with the winrate/pickrate/banrate changes for each of them.
{
    "buffed": {
        "0": {
            "champion": "Fiddlesticks",
            "winrate": "52.48% (+0.80%)",
            "pickrate": "2.88 (+0.55)",
            "banrate": "3.12 (+0.47)"
        }
    },
    "nerfed": {
        "0": {
            "champion": "Ryze",
            "winrate": "49.03% (-0.67%)",
            "pickrate": "3.45 (-0.07)",
            "banrate": "0.68 (-0.10)"
        }
    },
    "adjusted": {
        "0": {
            "champion": "Briar",
            "winrate": "52.66% (+0.61%)",
            "pickrate": "3.70 (+0.63)",
            "banrate": "5.14 (+1.53)"
        }
    }
}

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

lolalytics_api-0.0.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lolalytics_api-0.0.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file lolalytics_api-0.0.4.tar.gz.

File metadata

  • Download URL: lolalytics_api-0.0.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lolalytics_api-0.0.4.tar.gz
Algorithm Hash digest
SHA256 41f13c4dbe82ab652c5270038c6c26c6aeb19445e127cc677f26e1c3e41188a0
MD5 67fd5c763782faae24accefc0d286a74
BLAKE2b-256 cd72e66777584c27ab58cd96d85d73deabe9a2c9cd74cb24d9551af4e0d483de

See more details on using hashes here.

Provenance

The following attestation bundles were made for lolalytics_api-0.0.4.tar.gz:

Publisher: publish.yml on xPerSki/lolalytics-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lolalytics_api-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: lolalytics_api-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lolalytics_api-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cc0f7a462498a07c8b490cba602d9f36bfa28669081ff624b72625dd0b120795
MD5 5a9d70b49fc342a52eddca4817bdfa3e
BLAKE2b-256 5c692b7e5f92414e618bc4aa630da954eab405bd53e52080136dbbbb57db2463

See more details on using hashes here.

Provenance

The following attestation bundles were made for lolalytics_api-0.0.4-py3-none-any.whl:

Publisher: publish.yml on xPerSki/lolalytics-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page