Skip to content

NASA Astronomy Picture of the Day - API to get the current image

Notifications You must be signed in to change notification settings

deltreey/napotd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAPOTD

NASA Astronomy Picture of the Day

An API to get the current picture from NASA's astronomy picture of the day website.


Every Day NASA posts a new astronomy-related image on https://apod.nasa.gov/apod/

Unfortunately, that image URL changes, so I cannot point to a single URL and get the current image of the day.

This is my solution. I created a python web API that returns a 302, redirecting you to the image URL by parsing the code of the website to find the img tag.

I am using it to update the background of my phone every day with Tasker. It's nice.

For convenience, I also dockerized it.

About

NASA Astronomy Picture of the Day - API to get the current image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published