Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 695 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 695 Bytes

Parsing XML using Python

This repository contains a Python program to make API calls to http://openweathermap.org/ and parse JSON data. In this example, we query some common weather information such as current temperature, minimum and maximum temperature from the JSON data and print the information.

Make sure to obtain a valid API key from http://openweathermap.org/ and replace the xxx... in Python-OpenWeather.py with the valid one.

Files included

  • Python-OpenWeather.py
  • Python-OpenWeather.ipynb
  • README.md
  • LICENSE.md
  • city.list.json

Executing the Python program

  • Bash or shell terminal python Python-OpenWeather.py

  • Ipython or Jupyter %run Python-OpenWeather.py