CognitiveScience commited on
Commit
9a2db7c
1 Parent(s): c3a56cd

Update ecogsphere.py

Browse files
Files changed (1) hide show
  1. ecogsphere.py +4 -5
ecogsphere.py CHANGED
@@ -1,7 +1,7 @@
1
  import requests
2
  import os
3
  import math
4
- import pandas as pd
5
 
6
  RB_TOKEN=str(int(math.sqrt(1)+math.factorial(int(math.log2(int(math.log10(10)))))))
7
 
@@ -22,13 +22,12 @@ def ecf(inp):
22
 
23
 
24
  if inp is None:
25
- response3 = "No Input!"
26
  else:
27
  try:
28
  response1 = requests.get(url, headers=headers, params=inp)
29
  response2=response1.json()
30
- response3 = pd.DataFrame.from_dict(response2["videos"][0])
31
  except NameError:
32
- response3="Wrong Input!"
33
 
34
- return response3
 
1
  import requests
2
  import os
3
  import math
4
+ #import pandas as pd
5
 
6
  RB_TOKEN=str(int(math.sqrt(1)+math.factorial(int(math.log2(int(math.log10(10)))))))
7
 
 
22
 
23
 
24
  if inp is None:
25
+ response2 = "No Input!"
26
  else:
27
  try:
28
  response1 = requests.get(url, headers=headers, params=inp)
29
  response2=response1.json()
 
30
  except NameError:
31
+ response2="Wrong Input!"
32
 
33
+ return response2