Answers for "Berlin"

0

Berlin

# coding: utf-8
import requests

params = {
  'access_key': 'YOUR_ACCESS_KEY',
  'query': 'Berlin'
}

api_result = requests.get('https://api.weatherstack.com/current', params)

api_response = api_result.json()

print(u'Current temperature in %s is %d℃' % (api_response['location']['name'], api_response['current']['temperature']))
Posted by: Guest on April-23-2021
0

Berlin

Run API Requesthttp://api.weatherstack.com/current
    ? access_key = YOUR_ACCESS_KEY
    & query = Berlin
Posted by: Guest on April-23-2021
0

Berlin

Run API Requesthttp://api.weatherstack.com/current
    ? access_key = YOUR_ACCESS_KEY
    & query = New York
Posted by: Guest on April-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language