Space Launch Data
Launch Library API will provide you with a massive launch information database. You can conveniently query based on agency name, country code, date, launch id, rocket id, launch service provider, location, mission status etc.
You can even print out the relevant urls for a specific launch and access them in your browser via webbrowser library.
import webbrowser
import requests
import json
f2 = r"https://launchlibrary.net/1.3/launch/2019-11-01"
data = requests.get(f2)
a = data.text
a = json.loads(a)
a = a["launches"]
for i in a:
try:
print(i["rocket"]["agencies"][0]["countryCode"])
print(i["name"])
print(i["rocket"]["agencies"][0]["name"])
print(i["windowstart"])
for j in (i["rocket"]["agencies"][0]["infoURLs"]):
print(j)
print("\n")
except TypeError:
pass
Output:
Launch Video for ArianeSpace 5 ECA:
Source: SciNews Youtube Channel
If you’d like to visit a refresher on user defined functions lesson in Python here is a link to our Defining Functions Lesson.
Source of API: Launch Data API