Get weather data from Google Search
index.php | ||
README.md | ||
script.py |
Get weather data from Google Search using Selenium
Requirements:
- Python 3.6 or Python 3.7
- Pip3
- Selenium Python
- Chromium driver binary
- Jupyter Notebook (optional)
Trivia:
- Suhu = Temperature
- Kelembapan = Humidity
- Angin = Wind speed
- Cuaca = Weather
Example:
-
Yogyakarta (Indonesia)
https://api.gabrielkheisa.xyz/weather/yogyakarta/
{ "suhu": "24", "kelembapan": "100%", "presipitasi": "14%", "angin": "2 km\/h", "cuaca": "Berawan GMT+7", "last_update": "Jumat 23.00", "server_update": "04-11-2022 23:30:55" }
-
Yogyakarta (Singapore)
https://api.dev.gabrielkheisa.xyz/weather/yogyakarta/
{ "suhu": "24", "kelembapan": "100%", "presipitasi": "14%", "angin": "2 km\/h", "cuaca": "Cloudy GMT+7", "last_update": "Friday 11:00 pm", "server_update": "04-11-2022 23:21:06" }