Spaces:
Runtime error
Runtime error
Commit
·
f248660
1
Parent(s):
eb695d4
Update ecogsphere.py
Browse files- ecogsphere.py +12 -3
ecogsphere.py
CHANGED
|
@@ -12,6 +12,15 @@ headers = {
|
|
| 12 |
"X-RapidAPI-Host": "youtube-search-results.p.rapidapi.com"
|
| 13 |
}
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"X-RapidAPI-Host": "youtube-search-results.p.rapidapi.com"
|
| 13 |
}
|
| 14 |
|
| 15 |
+
def ecs(inp):
|
| 16 |
+
inp=querystring
|
| 17 |
+
|
| 18 |
+
if inp is None:
|
| 19 |
+
response = "No Input!"
|
| 20 |
+
else:
|
| 21 |
+
try:
|
| 22 |
+
response = requests.get(url, headers=headers, params=inp)
|
| 23 |
+
except NameError:
|
| 24 |
+
response="Wrong Input!"
|
| 25 |
+
|
| 26 |
+
return response
|