Ежедневник IT-ка
130 subscribers
24 photos
4 videos
1 file
44 links
Программируем на практике!!
По вопросам по поводу проектов: @vladimir_dzen
Download Telegram
Сам код:

string about = string.Empty;

try
{
about = ZennoPoster.Parser.ParseByXpath(tab.DomText, "//div", "innerHtml").ToList().Where(s => s == "About").First();

foreach (string about_ in ZennoPoster.Parser.ParseByXpath(tab.DomText, "//div", "outerHtml").ToList())
{
try
{
about = ZennoPoster.Parser.ParseByXpath(about_, "//div", "innerHtml").ToList().Where(s => s == "About").First();
about = ZennoPoster.Parser.ParseByXpath(about_, "//div", "outerHtml").ToList().Where(s => s.Contains(">About<")).First();
about = Regex.Match(tab.DomText, about + ".*?</span>").Value;
about = about.Replace(">About<", "><");
about = Regex.Replace(about, "<.*?>", "");
}catch
{
//
}

}
}catch
{
//
}

#zennoposter, #парсинг