Today, a Web service interface was suddenly used to dock
Think about it, Apache CXF can publish the service, you should also receive services
Then went to try a bit, during the various mistakes of various helpless
Later on-line a search, find out the following Dongdong
Suddenly there was a slap in the face of the impulse,
Here is the weather interface provided by the National Weather
Return to JSON format file, parse JSON file data to get what you want
Interface Address:
Http://www.weather.com.cn/data/sk/101010100.html
Http://www.weather.com.cn/data/cityinfo/101010100.html
http://m.weather.com.cn/data/101010100.html//This interface is more detailed
The country's city codes are as follows:
Beijing: 101010100 Chaoyang: 101010300 Shunyi: 101010400 Huairou: 101010500 Tongzhou: 101010600 changping: 101010700 Yanqing: 101010800 fengtai: 101010900 Shijingshan : 101011000 daxing: 101011100 Fangshan: 101011200 Miyun: 101011300 Mentougou: 101011400 pinggu: 1,010,115,008 Reach Ridge: 101011600 Rookie top: 101011700 Tang Estuary : 101011800 Miyun: 101011900 zhaitang: 101012000 Xia Yun Ling: 101012100 Beijing City: 101012200 Haidian: 101010200 Tianjin: 101030100 Baochi: 101030300 Toray : 101030400 xiqing: 101030500 beichen: 101030600 Jixian: 101031400 Hangu: 101030800 Jinghai: 101030900 Jinnan: 101031000 tanggu: 101031100 Dagang: 101031200 wuqing : 101030200 Ninghe: 101030700 Shanghai: 101020100 Baoshan: 101020300 jiading: 101020500 nanhui: 101020600 Pudong: 101021300 Qingpu: 101020800 Songjiang: 101020900 Fengxian : 101021000 Chongming: 101021100 Xujiahui: 101021200 Minhang: 101020200 Jinshan: 101020700 Shijiazhuang: 101090101 Zhangjiakou: 101090301 chengde: 101090402 Tangshan : 101090501 Qinhuangdao: 101091101 Cangzhou: 101090701 Hengshui: 101090801 xingtai: 101090901 Handan: 101091001 baoding: 101090201 langfang: 101090601 Zhengzhou: 101180101 Xinxiang : 101180301 Xuchang: 101180401 Pingdingshan: 101180501 xinyang: 101180601 Nanyang: 101180701 Kaifeng: 101180801 Luoyang: 101180901 Shangqiu: 101181001 Jiaozuo: 101181101 Hebi : 101181201 Puyang: 101,181,301 week Port: 101181401 Luohe: 101181501 Zhumadian: 1,011,816,013 Gate Gorge: 101181701 Jiyuan: 101181801 Anyang: 101180201 Hefei: 101220101 Wuhu : 101220301 Huainan: 101220401 ma On Shan: 101220501 anqing: 101220601 Suzhou: 101220701 fuyang: 101220801 Bozhou: 101220901 Huangshan: 101221001 Chuzhou: 101221101 huaibei: 101221201 tongling: 101221301 xuancheng: 1,012,214,016 ann : 101221501 Chaohu: 101221601 Chizhou: 101221701 Bengbu: 101220201 Hangzhou: 101210101 Zhoushan: 101211101 Huzhou: 101210201 jiaxing: 101210301 Jinhua: 101210901 Shaoxing : 101210501 Taizhou: 101210601 Wenzhou: 101210701 yeosu: 101210801 Quzhou: 101211001 Ningbo: 101210401 Chongqing: 101040100 Hechuan: 101040300 Nanchuan: 101040400 Jiangjin : 1,010,405,000,000 Sheng: 101040600 Yubei: 101040700 beibei: 101040800 Banan: 101040900 longevity: 101041000 Qianjiang: 1,010,411,000,000 State Tiancheng: 1,010,412,000,000 States B P : 101041300 fuling: 101041400 Kai: 101041500 Chengkou: 101041600 Yunyang: 101041700 Wuxi: 101041800 Fengjie: 101041900 Wushan: 101042000 Tongnan: 101042100 Dianjiang : 101042200 liangping: 101042300 None: 101042400 pillars: 101042500 dazu: 101042600 rongchang: 101042700 Tongliang: 101042800 Bishan: 101042900 Fengdou: 101043000 wulong : 101043100 Pengshui: 101043200 qijiang: 101043300 Youyang: 101043400 Xiushan: 101043600 Shapingba: 101043700 Yongchuan: 101040200 Fuzhou: 101230101 Quanzhou: 101230501 Zhangzhou : 101230601 Longyan: 101230701 jinjiang: 101230509 nanping: 101230901 Xiamen: 101230201 Ningde: 101230301 Putian: 1,012,304,013 Ming: 101230801 Lanzhou: 101160101 Pingliang : 101160301 Qingyang: 101160401 wuwei: 101160501 Jinchang: 101160601 Jiayuguan: 101161401 Jiuquan: 101,160,801 days Water: 101160901 wudu: 101161001 Linxia: 101161101 cooperation : 101161201 Silver: 101161301 Dingxi:101160201 Zhangye: 101160701 Guangzhou: 101280101 Huizhou: 101280301 Meizhou: 101280401 Shantou: 101280501 Shenzhen: 101280601 Zhuhai: 101280701 Foshan: 101280800 zhaoqing : 101280901 Zhanjiang: 101281001 jiangmen: 101281101 Heyuan: 101281201 Qingyuan: 101281301 Yunfu: 101281401 Chaozhou: 101281501 Dongguan: 101281601 Zhongshan: 101281701 Yangjiang : 101281801 Jieyang: 101281901 maoming: 101282001 Shanwei: 101282101 Shaoguan: 101280201 nanning: 101300101 Liuzhou: 101300301来: 101300401 Guilin: 101300501 Wuzhou : 101300601 Fangchenggang: 101301401 Guigang: 101300801 Yulin: 10,130,090,100 colors: 101301001 Qinzhou: 101301101 Hechi: 101301201 Beihai: 101301301 Chongzuo: 101300201 Hezhou : 101300701 Guiyang: 101260101 Anshun: 101260301 Duyun: 101260401 Xingyi: 101260906 tongren: 101260601 Bijie: 1,012,607,016 poached salmon!: 101260801 Zunyi: 101260201 Carey : 101260501 Kunming: 101290101 Red River: 101290301 Wenshan: 101290601 yuxi: 101290701 Chuxiong: 101290801 Puer: 101290901 zhaotong: 101291001 Lincang: 101291101 Nu River : 101291201 Shangri-la: 101291301 Lijiang: 101291401 Germany macro: 101291501 Jinghong: 101291601 Dali: 101290201 Qujing: 101290401 Baoshan: 101290501 hohhot : 101080101 Wuhai: 101,080,301 ji ning: 101080401 tongliao: 101080501 Alxa Zuoqi: 101081201 Ordos: 101080701 linhe: 101080801 Xilin Hot: 101080901 hulunbeier : 101081000 ulanhot: 101081101 Baotou: 101080201 Chifeng: 101080601 Nanchang: 101240101 Shangrao: 101240301 Fuzhou: 101240401 Yichun: 101240501 yingtan: 101241101 Ganzhou : 101240701 Jingdezhen: 101240801 Pingxiang: 101240901 Xinyu: 1,012,410,019 Jiang: 101240201 Jian: 101240601 Wuhan: 101200101 Huanggang: 101200501 Jingzhou: 101200801 Yichang: 101200901 Enshi : 1,012,010,010 Weir: 101201101 Shennongjia: 101201201 Suizhou: 101201301 Jingmen: 101,201,401 days Gate: 101201501 Peach: 101201601 Qianjiang: 101201701 xiangfan: 101200201 Ezhou : 101200301 Xiaogan: 101200401 Yellowstone: 101200601 xianning: 101,200,701 both: 101270101 Zigong: 101270301 Mianyang: 101270401 nanchong: 101270501 Dazhou: 101270601 Suining : 101270701 Guang ' an: 101270801 bazhong: 101270901 Luzhou: 101271001 yibin: 101271101 neijiang: 101271201 Ziyang: 101271301 Leshan: 101271401 Meishan: 101271501 Liangshan : 101271601 Yaan: 101271701 ganzi: 101271801 Aba: 101271901 Deyang: 101272001 Guangyuan: 101272101 Panzhihua: 101270201 Yinchuan: 101170101 zhongwei: 101170501 Guyuan : 101170401 Shizuishan: 101170201 wuzhong: 101170301 xining: 101150101 Huangnan: 101150301 Sea North: 101150801 Goa: 101150501 Yushu: 101150601 hercynian: 101150701 hai Dong : 101150201 Hainan: 101150401 Jinan: 101120101 Weifang: 101120601 Linyi: 101120901 heze: 101121001 Binzhou: 101121101 dongying: 101121201 Weihai: 101121301 Zaozhuang : 101121401 Rizhao: 101121501 Laiwu: 101121601 Liaocheng: 101121701 Qingdao: 101120201 Zibo: 101120301 Dezhou: 101120401 yantai: 101120501 jining: 101120701 Taian : 101120801 XI ' an: 101110101 Yanan: 101110300 Yulin: 101110401 Tongchuan: 101111001 shangluo: 101110601 ankang: 101110701 hanzhong: 101110801 Baoji: 101110901 Xianyang : 101110200 Weinan: 101110501 Taiyuan: 101100101 linfen: 101100701 Yuncheng: 101100801 Shuozhou: 101100901 Xinzhou: 101101001 Changzhi: 101100501 datong: 101100201 Yangquan: 101100301 jinzhong : 101100401 Jincheng: 101100601 Luliang: 101101100 Urumqi: 101130101 shihezi: 101130301 changji: 101130401 turpan: 101130501 Korla: 101130601 alar : 101130701 Aksu: 101130801 Kashgar: 101130901 Yining: 101131001 Tacheng: 101131101 hami: 101131201 Hotan: 101131301 Altay: 101131401 Atushi : 101131501 Bole: 101131601 karamay: 101130201 Lhasa: 101140101 Shannan: 101140301 Ali: 101140701:101140501:101140601 Shigatse: 101140201 Linzhi: 101140401 Taipei County: 101340101 Kaohsiung: 101340201 Taichung: 101340401 Haikou: 1,013,101,013 Asia: 101310201 East: 101310202 Lingao: 101310203 Chengmai : 101310204 Zhanzhou: 101310205 Changjiang: 101310206 White Sands: 101310207 qiongzhong: 101310208 ting: 101310209 Tunchang: 101310210 Qionghai: 101310211 Wenchang: 101310212 baoting : 1,013,102,140,000 Ning: 101310215 Lingshui: 101310216 xisha: 101310217 Nansha Island: 101310220 Ledong: 1,013,102,215 finger Mountain: 101310222 Qiongshan: 101310102 Changsha: 101250101 Zhuzhou : 101250301 Hengyang: 101250401 Chenzhou: 101250501 changde: 101250601 yiyang: 101250700 loudi: 101250801 shaoyang: 101250901 Yueyang: 101251001 Zhangjiajie: 101251101 Huaihua : 101251201 Qian Yang: 101251301 Yongzhou: 101251401 Jishou: 101251501 Xiangtan: 101250201 Nanjing: 101190101 Zhenjiang: 101190301 Suzhou: 101190401 nantong: 101190501 Yangzhou : 101190601 Suqian: 101191301 Xuzhou: 101190801 Huaian: 101190901 Lianyungang: 101191001 Changzhou: 101191101 Taizhou: 101191201 Wuxi: 101190201 Yancheng: 101190701 Harbin: 101050101 Mudanjiang: 101050301 jiamusi: 101050401 Suihua : 101050501 Heihe: 101050601 Shuangyashan: 101051301 Yichun: 101050801 daqing: 1,010,509,017 River: 101051002 jixi: 101051101 Hegang: 101051201 Qiqihar : 101050201 daxinganling: 101050701 Changchun: 101060101 Yanji: 1,010,603,014 Ping: 101060401 Bss: 101060901 baicheng: 101060601 Liaoyuan: 101060701 Songyuan: 101060801 Jilin : 101060201 Tonghua: 101060501 Shenyang: 101070101 Anshan: 101070301 Fushun: 101070401 benxi: 101070501 Dandong: 101070601 Huludao: 101071401 Yingkou: 101070801 fuxin : 101070901 Liaoyang: 101071001 Tieling: 101071101 Chaoyang: 101071201 Panjin: 101071301 Dalian: 101070201 Jinzhou:101070701
2. Picture interface Http://m.weather.com.cn/img/c0.gif http://m.weather.com.cn/img/b0.gif http://www.weather.com.cn/m /i/weatherpic/29x20/d0.gif Http://www.weather.com.cn/m2/i/icon_weather/29x20/n00.gif This figure is a picture of weather phenomenon 0 (Sunny), Pictures of other weather phenomena and so on. c The picture is 20*20 pixels, B is 50*46 pixels, D is the anti-white icon, 29*20 pixels, N is the night anti-white icon, 29*20 pixels,
Last pit daddy's: http://tianqi.xixik.com/code/chenzhou/
Immediately full forehead black line
Weather interface provided by the National Weather