diff --git a/functions.py b/functions.py index b5ca788..5847b6e 100644 --- a/functions.py +++ b/functions.py @@ -3,6 +3,18 @@ from datetime import datetime def nextLaunch(): + """Uses the launchlibrary.net api to get the next rocket launch and returns + a dictionary with all the important information. + + Example Output: + { + "rocket": "Proton-M/Blok DM-03 ", + "mission": " Spektr-RG", + "date": "July 12, 2019 12:31:00 UTC", + "countdown": "15:00:03.884469", + "video": "https://www.youtube.com/watch?v=Dy1nkGghEVk", + } + """ url = "https://launchlibrary.net/1.4/launch/next/1?mode=list" response = requests.get(url)