weather/README.md
gabrielkheisa 5f21810bcc first
2022-11-04 23:43:25 +07:00

1.0 KiB

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/stocks/usdidr/
    {
        "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"
    }