Exemple #1
0
 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 "";
     }
 }
Exemple #2
0
 public static string getShopNickName(Element ele)
 {
     Elements subeles = ele.GetElementsByAttributeValue("class", "nick");
     return subeles.Text;
 }