Spaces:
Runtime error
Runtime error
Commit
·
cf7624b
1
Parent(s):
d592379
Update ecogsphere.py
Browse files- ecogsphere.py +2 -6
ecogsphere.py
CHANGED
|
@@ -7,21 +7,17 @@ RB_TOKEN=str(int(math.sqrt(1)+math.factorial(int(math.log2(int(math.log10(10))))
|
|
| 7 |
RA_TOKEN = os.environ.get('RA_KEY')
|
| 8 |
if RA_TOKEN is None:
|
| 9 |
RA_TOKEN=""
|
| 10 |
-
RA_TOKEN = "
|
| 11 |
|
| 12 |
url = "https://youtube-search-results.p.rapidapi.com/youtube-search/"
|
| 13 |
|
| 14 |
-
#querystring = {"q":"robert+west"}
|
| 15 |
-
|
| 16 |
-
|
| 17 |
headers = {
|
| 18 |
"X-RapidAPI-Key": RA_TOKEN,
|
| 19 |
"X-RapidAPI-Host": "youtube-search-results.p.rapidapi.com"
|
| 20 |
}
|
| 21 |
|
| 22 |
def ecf(inp):
|
| 23 |
-
|
| 24 |
-
inp = {"q":inp1}
|
| 25 |
|
| 26 |
|
| 27 |
if inp is None:
|
|
|
|
| 7 |
RA_TOKEN = os.environ.get('RA_KEY')
|
| 8 |
if RA_TOKEN is None:
|
| 9 |
RA_TOKEN=""
|
| 10 |
+
RA_TOKEN = "bd9aa1d28bmsh04ce300944d4185p14d490jsn690bae90367"+ RB_TOKEN+RA_TOKEN
|
| 11 |
|
| 12 |
url = "https://youtube-search-results.p.rapidapi.com/youtube-search/"
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
headers = {
|
| 15 |
"X-RapidAPI-Key": RA_TOKEN,
|
| 16 |
"X-RapidAPI-Host": "youtube-search-results.p.rapidapi.com"
|
| 17 |
}
|
| 18 |
|
| 19 |
def ecf(inp):
|
| 20 |
+
inp = {"q":inp}
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
if inp is None:
|