how to display current weather condition of any country using open weather api and python

Поделиться
HTML-код
  • Опубликовано: 18 сен 2024
  • In this video, I have shown you how to display the current weather condition of any city in a GUI using open weather API and python
    package required: requests
    source code : github.com/har...
    related questions :
    * Getting started with OpenWeatherMap API - python script
    * Using Weather API in Python in 6 Lines of Code | OpenWeatherMap API
    * Python Requests Tutorial - How to Call a Weather API
    * Weather App - Django Tutorial (Using Python Requests)
    * Python Weather Forecast With Pywapi API
    * How to get Weather forecast in python?
    tags : #open_weather_api #python_api_project #i_know_python

Комментарии • 21

  • @rysmo0
    @rysmo0 4 года назад

    This is GREAT. worked successfully with zero errors

  • @renatogordao
    @renatogordao 4 года назад

    tnx for you GREAT work man, thats real help me to keep learning

  • @zoyafathima2981
    @zoyafathima2981 4 года назад

    Lovely ❤️❤️❤️❤️❤️❤️❤️❤️

  • @heyderelesgerov9499
    @heyderelesgerov9499 5 лет назад

    Hello, very good video, thanks , can you tell me which app do you use to edit videos ?

  • @vatsalsharma1320
    @vatsalsharma1320 4 года назад

    You can use obs for recording

  • @lokeshkumar-nf9se
    @lokeshkumar-nf9se 5 лет назад +1

    The python file does not run on windows powershell

    • @Iknowpython
      @Iknowpython  5 лет назад

      specify your error

    • @lokeshkumar-nf9se
      @lokeshkumar-nf9se 5 лет назад

      @@Iknowpython Rather than showing an error , it shows the directory of python file containing folder

  • @urmimahajan342
    @urmimahajan342 5 лет назад

    Thanks

  • @navivanartu
    @navivanartu 5 лет назад

    Hi Men, thank you for sharing, however I'm getting this errors
    " (venv) C:\Users\IA\Dropbox\Casa\weather>1.py
    Exception in Tkinter callback
    Traceback (most recent call last):
    File "C:\Users\IA\AppData\Local\Programs\Python\Python37-32\lib\tkinter\__init__.py", line 1705, in __call__
    return self.func(*args)
    File "C:\Users\IA\Dropbox\Casa\weather\1.py", line 11, in weather
    weather_status = output['weather'][0]['description']
    KeyError: 'weather'
    "
    Thank you in advance for any clues!

    • @jaybuddhdev7146
      @jaybuddhdev7146 5 лет назад +1

      Use Capital Letter for City name and Url should be api.openweathermap.org/data/2.5/weather?q={}&appid=

  • @ugentharv7221
    @ugentharv7221 5 лет назад

    Bro pls tell what compiler ur using.

  • @thekingmaker1788
    @thekingmaker1788 5 лет назад

    I got a ModuleNotFoundError:No module named 'requests'
    What to do bro?

    • @Iknowpython
      @Iknowpython  5 лет назад

      have you pip installed requests ???

    • @thekingmaker1788
      @thekingmaker1788 5 лет назад

      @@Iknowpython yeah bro but it didn't work in python interpreter. So I ran the program in cmd ,it worked and I got the output☺️. Thank you bro

  • @aninditab5371
    @aninditab5371 4 года назад

    you are writing the code in which platform

    • @Iknowpython
      @Iknowpython  4 года назад

      Do you mean editor , i am using sublime text

  • @akashbu8026
    @akashbu8026 4 года назад

    Sir I want database for this