Personal project with NASA's API
Link to NASA Api: https://api.nasa.gov/
This code will grab NASA's "Astronomy Photo Of the Day" and save it to the same directory as this script as a .jpg
You will need to do two things to make this work on your machine
- You will need to visit this url (https://api.nasa.gov/) and fill out the portion that says "Generate API Key". You will receive an email from NASA with your key.
- Copy this key and paste it into the script where it says "#PASTE YOUR KEY HERE#"
Then run the script with python, and the .jpg will be saved to your machine!