Skip to content

crissmath/Apod_NASA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŒ Astronomy Picture of the Day (APOD)

Author: crissmath


๐Ÿ“– Description

This project is a Streamlit web application that connects to NASAโ€™s Astronomy Picture of the Day (APOD) API to display breathtaking daily imagery of our universe, accompanied by scientific explanations written by astronomers.

Users can:

  • ๐Ÿ“… Select any date to retrieve the image or video of that day.
  • ๐Ÿ“ฅ Download the full-resolution image if available.
  • ๐ŸŽฅ Watch the video if the content is not an image.
  • ๐Ÿง  Read the corresponding explanation with metadata.

๐Ÿš€ Technologies Used

  • Python 3.10+
  • Streamlit for UI and layout
  • Requests for handling HTTP requests
  • NASA APOD API for fetching astronomy data
  • Pillow (optional) for advanced image handling

๐Ÿ”ง How It Works

  1. The user selects a date from a calendar input.
  2. The app fetches data using the NASA APOD API (API key required).
  3. If the media is an image:
    • It is displayed in a centered layout.
    • A download button is offered.
  4. If the media is a video:
    • It is embedded via Streamlitโ€™s st.video().
  5. Additional metadata such as title, copyright, and explanation are shown.

โš ๏ธ Prerequisites

  • Python installed locally
  • A valid NASA API Key (Free โ€“ get it here)

๐Ÿงช Installation & Run Locally

# Clone this repository
git clone https://github.com/yourusername/apod-streamlit.git
cd apod-streamlit

# (Optional) Create virtual environment
python -m venv myenv
source myenv/bin/activate  # On Windows: myenv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Run the app
streamlit run main.py

About

Astronomy Picture of the Day

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages