Hi everyone! In this video, I’ll show you how to collect real-time weather data using a free API and store it automatically using Python.
This is super useful if you’re building:
A weather app 🌤️
A dashboard or map visualization 📊
Or just learning how APIs work in real projects
API URLs :
Get the coordinates for a named location :
https://geocoding-api.open-meteo.com/...
Get the forecast for the latitude and longitude :
https://api.open-meteo.com/v1/forecas...
What you’ll learn:
How to get latitude & longitude from a city name
How to call a weather API (JSON data)
Using Command Prompt (curl) or browser
Fetching API data with Python (requests)
Writing data to a text file (append mode)
Fixing common issues (like missing newline)
Automating collection using Windows Task Scheduler ⏱️
By the end, you’ll have a simple data collection pipeline that logs weather every 15 minutes!
You can extend this by:
Saving to a database
Building dashboards
Creating charts & analytics
Subscribe for more Python, automation, and real-world coding tutorials 🚀
python api tutorial,weather api python,collect data python,python requests tutorial,free weather api,api data collection python,python automation,task scheduler python,windows task scheduler tutorial,python json tutorial,curl api example,python beginner project,data pipeline python,python file write append,python real world project
#python #api #weatherapi #coding #programming #automation #datascience #learnpython #tech #tutorial