python tornado api code example
Example 1: python weather api
>>> import pyowm
>>> owm = pyowm.OWM()
>>> observation = owm.weather_at_place('London,uk')
>>> w = observation.get_weather()
>>> w.get_wind()
{u'speed': 3.1, u'deg': 220}
>>> w.get_humidity()
76
Example 2: python google api
# python3 -m pip install webbrowser
import webbrowser
question = input("What is your question? ")
webbrowser.open("https://www.google.com" + str(question))