Skip to content

Instantly share code, notes, and snippets.

View josefheidler's full-sized avatar
🏠
Working from home

Josef Heidler josefheidler

🏠
Working from home
View GitHub Profile
@josefheidler
josefheidler / utils.py
Last active May 26, 2022 07:01
Python transformace dat z LoL API (Workshop PřF 2022)
import requests
import pandas as pd
import time
import json
def get_data(endpoint, file=False, region=None, api_key=None, verify=False):
if file:
with open(endpoint, "r", encoding="utf8") as file:
return json.load(file)