This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"matchInfo": { | |
"matchId": "2661e9c6-10a7-48da-821a-1eb480afc77e", | |
"mapId": "/Game/Maps/Port/Port", | |
"gameLengthMillis": 470249, | |
"gameStartMillis": 1630452346572, | |
"provisioningFlowId": "Matchmaking", | |
"isCompleted": true, | |
"customGameName": "", | |
"queueId": "spikerush", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import re | |
import requests | |
all_champs = {} | |
data = requests.get("https://raw.communitydragon.org/latest/plugins/rcp-fe-lol-champion-statistics/global/default/rcp-fe-lol-champion-statistics.js") | |
matches = re.findall('.exports=({.*)},', data.text) | |
if len(matches) > 0: | |
match = matches[0] | |
match = re.sub("([A-Z0-9]*):", r'"\1":', match) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Cloudflare Workers Script to make request to the Riot Games API | |
By: BangingHeads | |
Supports GET Requests | |
Supports Path and GET Parameters as GET Parameters | |
Example path: https://example.bangingheads.workers.dev/api/?region=na1&endpoint=/lol/summoner/v4/summoners/by-name/{summonerName}&summonerName=Headbang | |
Use Guide on Hextech Docs (https://hextechdocs.dev) if you need more help | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
from lcu_driver import Connector | |
import requests | |
import easygui | |
connector = Connector() | |
@connector.ready | |
async def connect(connection): | |
version = requests.get("https://ddragon.leagueoflegends.com/api/versions.json").json()[0] |