weather/README.md

53 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2022-11-04 23:43:25 +07:00
<h1>Get weather data from Google Search using Selenium</h1>
<h2>Requirements:</h2>
<ul>
<li>Python 3.6 or Python 3.7</li>
<li>Pip3</li>
<li>Selenium Python</li>
<li>Chromium driver binary</li>
<li>Jupyter Notebook (optional)</li>
</ul>
<h2>Trivia:</h2>
<ul>
<li>Suhu = Temperature</li>
<li>Kelembapan = Humidity</li>
<li>Angin = Wind speed</li>
<li>Cuaca = Weather</li>
</ul>
<h2>Example:</h2>
<ul>
<li>
Yogyakarta (Indonesia)
https://api.gabrielkheisa.xyz/weather/yogyakarta/
<pre>
{
"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"
}
</pre>
</li>
<li>
Yogyakarta (Singapore)
2022-11-05 00:36:53 +07:00
https://api.dev.gabrielkheisa.xyz/weather/yogyakarta/
2022-11-04 23:43:25 +07:00
<pre>
{
"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"
}
</pre>
</li>
</ul>