Every day asteroids are passing close to planet Earth. Their trajectory is closely monitored by NASA as some of these could potentially pose a threat to our planet. In this python challenge we are going to use the NeoWs API to retrieve some real-time data from NASA about these near Earth asteroids.
You can read more about the NeoWs API on: https://api.nasa.gov/api.html#neows-feed
You can see what the JSON data returned by the API looks like:
Check our code to see how we make a call to the API and how we retrieve and extract the requested JSON data.
Update this code to show all the near Earth asteroids approaching Earth in the next 7 days.
The JSON data also contains links to web pages for each asteroid (e.g. https://ssd.jpl.nasa.gov/sbdb.cgi?sstr=3745034). Update the Python code to also display the relevant web addresses.