lolalytics-api


Namelolalytics-api JSON
Version 0.0.5 PyPI version JSON
download
home_pageNone
SummaryUnofficial Lolalytics scraper
upload_time2025-07-16 20:32:38
maintainerNone
docs_urlNone
authorxPerSki
requires_python>=3.6
licenseMIT
keywords
VCS
bugtrack_url
requirements requests lxml pytest
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Unofficial Lolalytics scraper  
[TBA] a lot of things

## Installation  
```bash
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  
```json
{
  "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+
```json
{
  "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.  
```json
{
    "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.  
```json
{
    "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.  
```json
{
    "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)"
        }
    }
}
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lolalytics-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "xPerSki",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/86/64/384770b944691106d31ab735a689e1d092b103ec055c4eea0e6b363c41ae/lolalytics_api-0.0.5.tar.gz",
    "platform": null,
    "description": "# Unofficial Lolalytics scraper  \n[TBA] a lot of things\n\n## Installation  \n```bash\npip install lolalytics-api\n```\n\n## Functions  \n### `get_tierlist`\n- `def get_tierlist(n: int = 10, lane: str = '', rank: str = '')`  \n*Empty rank is set by default to Emerald+  \n*Empty lane is set by default to all lanes  \n```json\n{\n  \"0\": {\n      \"rank\": \"1\",\n      \"champion\": \"Ahri\",\n      \"tier\": \"S+\",\n      \"winrate\": \"52.73\"\n    },\n  \"1\": {\n      \"rank\": \"2\",\n      \"champion\": \"Yone\",\n      \"tier\": \"S\",\n      \"winrate\": \"50.92\"\n    }\n}\n```\n\n### `get_counters`\n- `def get_counters(n: int = 10, champion: str = '', rank: str = '')`  \n*Empty rank is set by default to Emerald+\n```json\n{\n  \"0\": {\n      \"champion\": \"Akali\",\n      \"winrate\": \"47.91\"\n    }\n}\n```\n\n### `display_ranks`\n- `def display_ranks(display: bool = True)`  \nDisplay all available ranks and their shortcuts.  \nIf display is True (default), prints the ranks to the console.  \nOtherwise, returns a dict.\n\n### `display_lanes`\n- `def display_lanes(display: bool = True)`  \nSame as above, but for lanes.\n\n### `get_champion_data`  \n- `def get_champion_data(champion: str, lane: str = '', rank: str = '')`  \nReturns detailed info about a certain champion.  \n```json\n{\n    \"winrate\": \"51.7%\",\n    \"wr_delta\": \"0.93%\",\n    \"game_avg_wr\": \"50.77%\",\n    \"pickrate\": \"7.46%\",\n    \"tier\": \"S+\",\n    \"rank\": \"1 / 99\",\n    \"banrate\": \"10.27%\",\n    \"games\": \"67,380\"\n}\n```\n\n### `matchup`\n- `def matchup(champion1: str, champion2: str, lane: str = '', rank: str = '')`  \nReturns winrate and number of games played in a matchup between two champions.  \n```json\n{\n    \"winrate\": \"49.8%\",\n    \"number_of_games\": \"1,000\"\n}\n```\n\n### `patch_notes`\n- `def patch_notes(rank: str = '')`  \nIt does NOT show detailed patch notes.  \nNevertheless, it shows which champions were buffed/nerfed/adjusted, also with the winrate/pickrate/banrate changes for each of them.  \n```json\n{\n    \"buffed\": {\n        \"0\": {\n            \"champion\": \"Fiddlesticks\",\n            \"winrate\": \"52.48% (+0.80%)\",\n            \"pickrate\": \"2.88 (+0.55)\",\n            \"banrate\": \"3.12 (+0.47)\"\n        }\n    },\n    \"nerfed\": {\n        \"0\": {\n            \"champion\": \"Ryze\",\n            \"winrate\": \"49.03% (-0.67%)\",\n            \"pickrate\": \"3.45 (-0.07)\",\n            \"banrate\": \"0.68 (-0.10)\"\n        }\n    },\n    \"adjusted\": {\n        \"0\": {\n            \"champion\": \"Briar\",\n            \"winrate\": \"52.66% (+0.61%)\",\n            \"pickrate\": \"3.70 (+0.63)\",\n            \"banrate\": \"5.14 (+1.53)\"\n        }\n    }\n}\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Unofficial Lolalytics scraper",
    "version": "0.0.5",
    "project_urls": {
        "Homepage": "https://github.com/xPerSki/lolalytics-api",
        "Issues": "https://github.com/xPerSki/lolalytics-api/issues",
        "Repository": "https://github.com/xPerSki/lolalytics-api"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4df44027202129b0efe52290b1e104ba066738fe216299db8fc23f9a70d6b88f",
                "md5": "bc7e0dae664521df1f49ff8315e148a1",
                "sha256": "0bfea79a6540369b9015a3cc68a3374339b0effb6fce6a39679c6d69a7ea35e7"
            },
            "downloads": -1,
            "filename": "lolalytics_api-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bc7e0dae664521df1f49ff8315e148a1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6424,
            "upload_time": "2025-07-16T20:32:36",
            "upload_time_iso_8601": "2025-07-16T20:32:36.860776Z",
            "url": "https://files.pythonhosted.org/packages/4d/f4/4027202129b0efe52290b1e104ba066738fe216299db8fc23f9a70d6b88f/lolalytics_api-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8664384770b944691106d31ab735a689e1d092b103ec055c4eea0e6b363c41ae",
                "md5": "522ecda3e7feb6818384b33dc9c292ce",
                "sha256": "63bd6af0ab2d2cbe8c3d15b70e70b987b1080cd4e032365474148964e72f88f3"
            },
            "downloads": -1,
            "filename": "lolalytics_api-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "522ecda3e7feb6818384b33dc9c292ce",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6522,
            "upload_time": "2025-07-16T20:32:38",
            "upload_time_iso_8601": "2025-07-16T20:32:38.114076Z",
            "url": "https://files.pythonhosted.org/packages/86/64/384770b944691106d31ab735a689e1d092b103ec055c4eea0e6b363c41ae/lolalytics_api-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-16 20:32:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xPerSki",
    "github_project": "lolalytics-api",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "requests",
            "specs": []
        },
        {
            "name": "lxml",
            "specs": []
        },
        {
            "name": "pytest",
            "specs": []
        }
    ],
    "lcname": "lolalytics-api"
}
        
Elapsed time: 0.43286s