Skip to content

Instantly share code, notes, and snippets.

@jseiser
Created March 24, 2021 22:56
Show Gist options
  • Save jseiser/1b42f103de868b51924e3fddac5471fa to your computer and use it in GitHub Desktop.
Save jseiser/1b42f103de868b51924e3fddac5471fa to your computer and use it in GitHub Desktop.
Get URLS of Ball Chase Rocket League Replays by Certain Pros
import requests
headers = {'Authorization': 'TOKEN_HERE'}
payload = {'playlist': 'ranked-duels', 'pro': 'true'}
r = requests.get('https://ballchasing.com/api/replays', params=payload, headers=headers)
jsonResponse = r.json()
PROS = ['AYYJAY', 'Daniel', 'Wizz']
for replay in jsonResponse['list']:
blue = replay['blue']['players'][0]['name']
orange = replay['orange']['players'][0]['name']
if (blue in PROS) or (orange in PROS):
print("REPLAY: " + replay['link'])
@jseiser
Copy link
Author

jseiser commented Mar 24, 2021

pip install requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment