Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> url="http://weather.livedoor.com/forecast/webservice/json/v1"
- >>> payload={"city":"400040"}
- >>> weather_data=requests.get(url,params=payload).json()
- >>> pprint.pprint(weather_data)
Advertisement
Add Comment
Please, Sign In to add comment