示例#1
0
文件: Shop.cs 项目: limingyao/Crawler
 public static string getShopURL(Element ele)
 {
     Elements subeles = ele.GetElementsByAttributeValue("class", "shopname");
     if (subeles.Count >= 1)
     {
         return "www.dianping.com" + subeles.Attr("href");
     }
     else
     {
         return "";
     }
 }
示例#2
0
文件: Shop.cs 项目: limingyao/Crawler
 public static string getShopNickName(Element ele)
 {
     Elements subeles = ele.GetElementsByAttributeValue("class", "nick");
     return subeles.Text;
 }