//获取描述 public String getDesc(string url) { Conmmon cn = new Conmmon(); string content = cn.GetWebHtmlContent(url); string temp = System.Text.RegularExpressions.Regex.Split(content, "var msg_desc", System.Text.RegularExpressions.RegexOptions.IgnoreCase)[1]; string descString = System.Text.RegularExpressions.Regex.Split(temp, "\"", System.Text.RegularExpressions.RegexOptions.IgnoreCase)[1]; return(descString); }
//获取图片 public string getPicurl(string url) { Conmmon cn = new Conmmon(); string content = cn.GetWebHtmlContent(url); string temp = System.Text.RegularExpressions.Regex.Split(content, "var msg_cdn_url", System.Text.RegularExpressions.RegexOptions.IgnoreCase)[1]; string picurlString = System.Text.RegularExpressions.Regex.Split(temp, "\"", System.Text.RegularExpressions.RegexOptions.IgnoreCase)[1]; return(picurlString); }