---
title: "weather.com.cn的天气预报"
author: "foolraty"
date: "2011-11-29T11:02:50Z"
tags: []
categories: ["行业应用"]
slug: "weather-com-cn"
draft: false
lastmod: "2011-11-29T11:02:50Z"
id: 1283270
url: "https://foolraty.iteye.com/blog/1283270"
---

中国天气weather.com 
http://m.weather.com.cn/data/101100101.html 

其中101100101是城市的代码，获得城市代码进入 

http://www.weather.com.cn 
在搜索框上输入你要需要获得天气的城市，点击查询，即可在地址栏获得相应城市编号，然后替换 
http://m.weather.com.cn/data/101100101.html 

如果大家有更好的接口就提供上来，特别是根据IP获取天气预报信息。