Skip to content

Instantly share code, notes, and snippets.

@downthecrop
Created March 23, 2022 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save downthecrop/e2ee5a73c647249b129fc864229646f3 to your computer and use it in GitHub Desktop.
Save downthecrop/e2ee5a73c647249b129fc864229646f3 to your computer and use it in GitHub Desktop.
most played request garena
import requests
cookies = {
'sessionid': '6cr03kpyjsii7o51ip6y5zld2i20cf63',
'_ga': 'GA1.2.1697917168.1647800683',
'_gid': 'GA1.2.365671794.1647800683',
'csrftoken': '4l4Y4mudtRDFe7uK1MiPRUBD0y4LQITL',
'_gat': '1',
}
headers = {
'Host': 'lolhelpertw.garenanow.com',
'Connection': 'keep-alive',
'Accept': '*/*',
'User-Agent': 'Mozilla/5.0 (Linux; Android 12; Pixel 6 Build/SQ1D.220205.004; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.73 Mobile Safari/537.36;GarenaGas/2.4.5.101 (google Pixel 6; Android 31; en; TW; WebView) light',
'X-Requested-With': 'XMLHttpRequest',
'Referer': 'http://lolhelpertw.garenanow.com/summoner/champions/489897928/',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'en,en-CA;q=0.9,en-US;q=0.8',
# Requests sorts cookies= alphabetically
# 'Cookie': 'sessionid=6cr03kpyjsii7o51ip6y5zld2i20cf63; _ga=GA1.2.1697917168.1647800683; _gid=GA1.2.365671794.1647800683; csrftoken=4l4Y4mudtRDFe7uK1MiPRUBD0y4LQITL; _gat=1',
}
params = {
'stats_type': 'pick',
}
response = requests.get('http://lolhelpertw.garenanow.com/api/summoner_champion_total_win_stats/489897928/', headers=headers, params=params, cookies=cookies, verify=False)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment