On line 28 the filename is the name of the file in which the picture is to be stored.
api_key is the file with the api key
spacecode-live / nasa_apod_api Goto Github PK
View Code? Open in Web Editor NEWa flask app which would use the NASA Astronomy Picture of the Day API to fetch the image for the given date.