转载
https://www.cnblogs.com/mikemhm/p/12050421.html
附上获取天气的api
其中101010100是北京的城市编码,
http://www.weather.com.cn/data/sk/101010100.html
http://www.weather.com.cn/data/cityinfo/101010100.html
http://wthrcdn.etouch.cn/weather_mini?city=北京
城市编码的api
https://github.com/seeways/PythonDemo/blob/master/other_tools/weather_city.json