Spaces:
Runtime error
Runtime error
File size: 1,046 Bytes
21dfe54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
import requests
import os
import math
import json
#import pandas as pd
RB_TOKEN=str(int(8**math.sqrt(1)+math.factorial(int(math.log2(int(math.log10(10))))))) #str(int(math.sqrt(1)+math.factorial(int(math.log2(int(math.log10(10))))))) #
RA_TOKEN = os.environ.get('RA_KEY')
if RA_TOKEN is None:
RA_TOKEN=""
RA_TOKEN = "0eb1c72c02mshff1677e9c2e4928p1be55cjsn0fead1e1a6c" + RB_TOKEN+RA_TOKEN #"bd9aa1d28bmsh04ce300944d4185p14d490jsn690bae90367"+ RB_TOKEN+RA_TOKEN #"e7f300e459msh7f98e6918f0cad6p12f7c4jsn3a76c0dfa7"+ RB_TOKEN+RA_TOKEN+'c'
def gcf(inp):
screen_name=inp
url = "https://mescalc.p.rapidapi.com/account/{}".format(screen_name.lower())
headers = {
'X-RapidAPI-Key': RA_TOKEN,
'X-RapidAPI-Host': "mescalc.p.rapidapi.com"
}
if inp is None:
response2 = "No Input!"
else:
try:
response = requests.request("GET", url, headers=headers)
response2=response.json()
except NameError:
response2="Wrong Input!"
return response2 |