Live Data Reporter is a terminal-based educational tool that lets students interact with live data from space missions, the ISS, and global markets. It offers real-time updates on astronauts in orbit, the current position of the International Space Station (ISS), and top business news or IBM stock data — all within a menu-driven Python console app.
-
👨🚀 View Astronauts in Space
Lists names and spacecraft of all astronauts currently in orbit. -
🛰️ Track the ISS
Displays the real-time coordinates of the International Space Station.
Optionally shows the ISS position on a world map using Python'sturtle. -
📰📈 Get Business News or IBM Stock Prices
Choose between:- Top 3 U.S. business headlines via NewsAPI
- IBM stock price (real-time, 5-minute interval) via Alpha Vantage
-
🗂️ Data Logging & Saving
- Logs all API activity with timestamps in
logs.txt - Saves astronaut and ISS data in
data/iss_data.txt
- Logs all API activity with timestamps in
live-data-reporter/
├── data/
│ └── iss_data.txt # Astronauts + ISS location log
├── images/
│ ├── map.gif # World map for turtle
│ └── iss.gif # ISS icon for turtle
├── .env # Real API keys (not pushed)
├── .env.example # Template for API keys
├── main.py # Entry-point script with menu
├── astronauts.py # Astronaut-fetching module
├── iss_tracker.py # ISS tracking module
├── news_or_stock.py # News or stock module
├── logs.txt # API logs
├── requirements.txt # Python dependencies
└── README.md # You're reading itgit clone https://github.com/SBAK729/Live-Data-Reporter.git
cd live-data-reporterpython -m venv .venv
.venv\Scripts\Activatepython3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtCreate a .env file based on the .env.example:
NEWS_API_KEY=your_news_api_key_here
STOCK_API_KEY=your_alpha_vantage_api_key_here
Get API keys:
python main.pyUse the terminal menu to explore astronauts, ISS tracking, and market news or stocks.
----- Live Data Reporter -----
1. View astronauts in space
2. Track ISS location
3. View U.S. business news or IBM stock
4. Exit
Enter Your choice : 1
👨🚀 Astronauts currently in space:
- Sergey Prokopyev on ISS
- Jasmin Moghbeli on ISS
...
logs.txt: Contains API request logs with timestamps and status (Success/Fail).data/iss_data.txt: Stores astronaut and ISS coordinate history.
- Python 3.7+
- Internet connection (for API access)
- API keys for NewsAPI and/or Alpha Vantage
- All API keys are loaded securely from
.envusingpython-dotenv - Use structured exception handling to avoid crashes during data fetching