The National Weather Service provides three types of data
Web site in:
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
The last one is the most comprehensive analysis.
Data parsing format:
The JSON data provided by the first URL is:
Copy Code code as follows:
{"Weatherinfo": {"City": "Beijing", "Cityid": "101010100", "temp": "2", "WD": "Northwest Wind", "WS": "Level 3", "SD": "241%", "WSE": "3", "Time" : "10:61", "Isradar": "1", "Radar": "JC_RADAR_AZ9010_JB"}
The JSON data provided by the second URL is:
Copy Code code as follows:
{"Weatherinfo": {"City": "Beijing", "Cityid": "101010100", "Temp1": "3 ℃", "Temp2": " -8℃", "Weather": "Clear", "IMG1": "D0.gif", " Img2 ":" N0.gif "," Ptime ":" 11:00 "}}
The third web site provides a more comprehensive JSON data:
Copy Code code as follows:
{
"Weatherinfo":
{
"City": "Beijing",
"City_en": "Beijing",
"Date_y": "January 17, 2013",
"Date": "",
"Week": "Thursday",
"Fchh": "11",
"Cityid": "101010100",
"Temp1": "3℃~-8℃",
"Temp2": "3℃~-5℃",
"Temp3": "3℃~-3℃",
"Temp4": "1℃~-5℃",
"TEMP5": "3℃~-6℃",
"TEMP6": "2℃~-5℃",
"TempF1": "37.4℉~17.6℉",
"TempF2": "37.4℉~23℉",
"TempF3": "37.4℉~26.6℉",
"TempF4": "33.8℉~23℉",
"TempF5": "37.4℉~21.2℉",
"TempF6": "35.6℉~23℉",
"Weather1": "Clear",
"Weather2": "Clear",
"Weather3": "Doyun",
"Weather4": "Overcast to Cloudy",
"Weather5": "Cloudy Turn Fine",
"Weather6": "Sunny Turn Cloudy",
"IMG1": "0",
"Img2": "99",
"IMG3": "0",
"Img4": "99",
"Img5": "1",
"Img6": "2",
"Img7": "2",
"Img8": "1",
"Img9": "1",
"IMG10": "0",
"Img11": "0",
"Img12": "1",
"Img_single": "0",
"Img_title1": "Clear",
"Img_title2": "Clear",
"Img_title3": "Clear",
"Img_title4": "Clear",
"Img_title5": "Cloudy",
"Img_title6": "Yin",
"Img_title7": "Yin",
"Img_title8": "Cloudy",
"Img_title9": "Cloudy",
"Img_title10": "Clear",
"Img_title11": "Clear",
"Img_title12": "Cloudy",
"Img_title_single": "Clear",
"Wind1": "The Breeze",
"Wind2": "The Breeze",
"Wind3": "The Breeze",
"Wind4": "The Breeze",
"Wind5": "The Breeze",
"Wind6": "The Breeze",
"FX1": "The Breeze",
"FX2": "The Breeze",
"FL1": "Less than 3",
"FL2": "Less than 3",
"Fl3": "Less than 3",
"Fl4": "Less than 3",
"FL5": "Less than 3",
"Fl6": "Less than 3",
"Index": "Cold",
"Index_d": "The weather is cold, suggest a coat, leather jacket and sweater, such as winter clothing." Elderly and frail people should be a thick coat or winter overcoat. ",
"index48": "Cold",
"Index48_d": "The weather is cold, suggest a coat, leather jacket and sweater, such as winter clothing." Elderly and frail people should be a thick coat or winter overcoat. ",
"Index_uv": "Weak",
"Index48_uv": "Weak",
"INDEX_XC": "Suitable",
"Index_tr": "More Appropriate",
"Index_co": "Less comfortable",
"St1": "2",
"St2": "-6",
"St3": "2",
"St4": "-3",
"St5": "3",
"St6": "-4",
"INDEX_CL": "Suitable",
"Index_ls": "Basically suitable",
"Index_ag": "very difficult to send"
}
}
The detailed parsing format is as follows:
Provided in JSON format, as follows
Copy Code code as follows:
{"Weatherinfo": {
Basic information;
"City": "Beijing", "city_en": "Beijing",
"Date_y": "January 17, 2013", "date": "Singonan", "Week": "Wednesday", "Fchh": "A", "Cityid": "101010100",
Celsius temperature
"Temp1": "24℃~33℃", "Temp2": "24℃~32℃", "Temp3": "25℃~31℃", "Temp4": "23℃~30℃", "TEMP5": "22℃~30℃", "TEMP6": "21℃~32℃",
Fahrenheit temperature;
"TempF1": "75.2℉~91.4℉", "tempF2": "75.2℉~89.6℉", "tempF3": "77℉~87.8℉", "tempF4": "73.4℉~86℉", "tempF5": "71.6℉~86℉", " TempF6 ":" 69.8℉~89.6℉ ",
Weather description;
"Weather1": "Cloudy", "Weather2": "Clear to Cloudy", "Weather3": "Yin", "weather4": "Sunny Turn Showers", "weather5": "Showers", "WEATHER6": "Cloudy",
Weather description Picture Number
"IMG1": "1", "Img2": "The", "IMG3": "0", "IMG4": "1", "Img5": "2", "Img6": "", "Img7": "0", "Img8": "3", "Img9": "3", "IMG10": " "", "Img11": "1", "Img12": "99",
"Img_single": "1",
Picture name;
"Img_title1": "Cloudy", "Img_title2": "Cloudy", "Img_title3": "Clear", "img_title4": "Cloudy", "img_title5": "Yin", "img_title6": "Yin", "img_" Title7 ":" "clear", "Img_title8": "Showers", "img_title9": "Showers", "img_title10": "Showers", "img_title11": "Cloudy", "img_title12": "Cloudy", "img_ Title_single ": Cloudy",
Wind speed description
"Wind1": "Breeze", "wind2": "Breeze", "wind3": "Breeze", "Wind4": "Breeze", "Wind5": "Breeze", "Wind6": "Breeze",
//???
"FX1": "Breeze", "fx2": "Breeze", "fl1": "Less than 3", "FL2": "Less than 3", "FL3": "Less than 3", "FL4": "Less than 3", "FL5": "Less than 3 level", "fl6": "Less than 3",
Today's dressing index;
"Index": "Hot", "index_d": "Hot weather, suggest a blouse, short skirts, shorts, thin t-shirts, open collar short-sleeved cotton shirts and other cool summer clothing." ",
48-hour Dressing index
"index48": "Hot", "index48_d": "Hot weather, suggest a blouse, short skirts, shorts, thin t-shirts, open collar short-sleeved cotton shirts and other cool summer clothing." "
Ultraviolet and 48-hour ultraviolet
, "Index_uv": "Medium", "INDEX48_UV": "Weak",
Car Wash
"INDEX_XC": "Suitable",
Tourism
"Index_tr": "More Appropriate",
Comfort Index
"Index_co": "Less comfortable",
//
"St1": "St2": "A", "ST3": "The", "St4": "A", "ST5": "The", "St6": "24",
Morning exercises
"INDEX_CL": "Suitable",
Drying
"Index_ls": "Suitable",
Allergy
"Index_ag": "Very easy to send"}
Field concise, city name, English name, date, lunar date, week, forecast time, city code, 6 forecast temperature (Fahrenheit temperature, Celsius temperature), 6 forecast weather and wind, the rest is some meteorological index.