-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
25 lines (19 loc) · 816 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from elaborate import elaborate
def main():
pressed=input("Press 1 for last hour eartquakes,2 for today eartquakes,3 for this week eartquakes and 4 for past 30 days eartquakes(press 'q' for exit):\n")
if pressed =='q':
print("good bayz")
elif pressed == '1':
csv = 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.csv'
elif pressed == '2':
csv = 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_day.csv'
elif pressed == '3':
csv = 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.csv'
elif pressed == '4':
csv = 'https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv'
else:
print("no")
return csv
if __name__ =='__main__':
csv = main()
elaborate(csv)