Tools for getting data from LoL sites like u.gg
Install from github using pip install git+https://github.com/AlsoSylv/LoL-Scrapper.git
This is designed to work without the usage of LoL API
Examples can be found in ./examples/{site-name}, but should be mostly the same between sites.
Example for u.gg:
from LoL_Scrapper import ugg
#async
async def winrate():
await UGG.Win_rate("Annie")
#sync
def winrate():
loop = asyncio.get_event_loop()
winrate = UGG.Win_rate("Annie")
loop.run_until_complete(winrate)
#Returns the current winrate for Annie in the mid lane