import os
import json
import requests


with open('cities.json', 'r') as json_file:
    json_reader = json.load(json_file)

for data in json_reader:
    cities_id = data['id']
    source = requests.get(f'http://api.openweathermap.org/data/2.5/weather?id={cities_id}&appid=4bb999d21aaa0c57dfe4f1411c0d2510&units=metric').json()
    print(source)
    # if data['name'] == source['name']:
    #     for description in source['weather']:
    #         print(description['description'])
