@SuppressWarnings("rawtypes")
 	public static Map getWeather(String cityName) throws UnsupportedEncodingException, ParserConfigurationException {
 		Map<String, String> map = null ; 
 		URL url = null ;
 			try {				 			    			     
 				url = new URL("http://m.weather.com.cn/data/"+CityInfoUtil.getCityNoByName(cityName)+".html");
 				System.out.println(url);
 				try  
 				{  				     								
 		            HttpURLConnection conn = (HttpURLConnection)url.openConnection();  
 		            InputStream is = conn.getInputStream();  
 		            BufferedReader br = new BufferedReader(new InputStreamReader(is,"utf-8"));  
 		            String msg = null;  
 		            StringBuilder sb = new StringBuilder();  
 		            while((msg = br.readLine()) != null) {  
 		                sb.append(msg);  
 		            }  					 				     			        	
 		            if(sb==null||sb.toString().contains("ܱǸҪʵҳ治")||sb.toString().contains("404 Not Found"))  //޷ȡ
 		            {
 		            	 return null;
 		            }
 		               //ȡ÷صַ   	
 				        System.out.println("weather.com.cnȡΪ"+sb.toString());  
 				        JSONObject jo = JSONObject.fromObject(sb.toString());
 				       jo = jo.getJSONObject("weatherinfo");
 				        System.out.println(jo.toString());  
 				        System.out.println(jo.getString("city"));
 				        map = new HashMap<String, String>();
 				        map.put("city",jo.getString("city").toString());
 				        map.put("date",jo.getString("date_y").toString());
 				        map.put("status",jo.getString("weather1").toString());
 				        //¶
 				        if(jo.getString("temp1").toString()!=null&& !jo.getString("temp1").toString().equals(""));
 				        {
 				        	String[] tempStrs = jo.getString("temp1").toString().split("~");			       
 	 				        map.put("temperatureLow",tempStrs[1]);
 	 				        map.put("temperatureHigh",tempStrs[0]);
 				        }	        
 				        map.put("sportAdvice",jo.getString("index_d").toString());
 				        map.put("dataSource", "http://m.weather.com.cn"); 				       				        				      				        
 				    				   
 				}  
 				catch (ClientProtocolException e1)  
 				{  
 				    e1.getMessage().toString();  
 				}

 			} catch (MalformedURLException e) {
 				// TODO Auto-generated catch block
 				e.printStackTrace();
 			} catch (IOException e) {
 				// TODO Auto-generated catch block
 				e.printStackTrace();
 			}					
 		return map;
 	}