Skip to content

saccini/nasa-astro-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ NASA Astro Image Downloader

This project downloads the Astronomy Picture of the Day (APOD) from NASA's public API.
You can enter a date and get the image, along with metadata.

βš™οΈ How to Use

1. 🐍 Run with Python

pip install -r requirements.txt
python main.py 

Note: You'll be asked to enter a date in the format YYYY-MM-DD.

2. 🐳 Run with Docker

docker build -t nasa-astro-image .

docker run -it \
  -v "$(pwd)/images:/app/images" \
  -v "$(pwd)/data:/app/data" \
  nasa-astro-image

The -it flag enables interactive mode to prompt you for a date.

πŸ“¦ Output

  • Image saved in images/
  • Metadata saved to data/metadata.csv

πŸ—‚ Project Structure

nasa-astro-image/
β”œβ”€β”€ main.py 
β”œβ”€β”€ requirements.txt 
β”œβ”€β”€ Dockerfile 
β”œβ”€β”€ docker-compose.yml 
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .dockerignore
β”œβ”€β”€ images/ 
β”œβ”€β”€ metadata.csv 
|   └── metadata.csv  
└── README.md

πŸ“‘ NASA APOD API

More info: https://api.nasa.gov

About

Download NASA's Astronomy Picture of the Day with image and metadata.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published