Open Nek0Neko opened 3 years ago
``import requests
def get_url(platform, name): head = { "TRN-Api-Key": "My-Api-Key" } proxies = { 'http': 'http://localhost:1080', 'https': 'https://localhost:1080' } url = f'https://public-api.tracker.gg/v2/apex/standard/profile/{platform}/{name}'
user_data = requests.get(url, headers=head, proxies=proxies, verify=False) print(user_data)
get_url('origin', 'flymao2')
``import requests
def get_url(platform, name): head = { "TRN-Api-Key": "My-Api-Key" } proxies = { 'http': 'http://localhost:1080', 'https': 'https://localhost:1080' } url = f'https://public-api.tracker.gg/v2/apex/standard/profile/{platform}/{name}'
get_url('origin', 'flymao2')