Skip to content

zibingala/NASA_APOD_Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

NASA_APOD_Downloader

NASA - Astro Picture of the Day Downloader

Based on Ajinkya Sonawane's code on medium.com
https://medium.com/daily-python/consuming-nasa-api-using-python-part-1-daily-python-17-4ce104fa47ab

Using NASA APOD API:
https://github.com/nasa/apod-api

INSTALL

pip install requests

CREATE your API-key at https://api.nasa.gov/
COPY it to line 16
FOLDER for your downloads automatically created
SPECIFY FOLDER in line 19

USAGE

Two modes (Single date || Iterate through Years/Months) :

  • Change booleans in line 22 or line 28 to choose between modes

  • Set dates for single download or iteration in line {23,25} && line {29,32}

  • Automatically tries to use 'hdurl' (you can uncomment line 61 for simple url)

  • Currently works only with images (no videos, or other 'media_type')

ENJOY THE UNIVERSE!

About

NASA - Astro Picture of the Day Downloader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages