- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
var processedHtml = new HtmlAgilityPack.HtmlDocument
{
OptionOutputAsXml = true
};
processedHtml.LoadHtml(sbb);
var doc = processedHtml.DocumentNode;
foreach (var link in doc.SelectNodes("//a[@href]"))
{
string hrefValue = link.GetAttributeValue("href", string.Empty);
if (!hrefValue.ToUpper().Contains("GOOGLE")
&& hrefValue.Contains("/url?q=")
&& hrefValue.ToUpper().Contains("HTTP"))
{
int index = hrefValue.IndexOf("&");
if (index > 0)
{
hrefValue = hrefValue.Substring(0, index);
lstTitles.Items.Add(hrefValue.Replace("/url?q=", string.Empty));
string output = Regex.Replace(link.InnerText, ""\\.?", string.Empty);
Log.Items.Add("Found new url");
requested_urls.Add(hrefValue.Replace("/url?q=", string.Empty));
}
}
}
// Log.DataSource = requested_urls;
// Analyze();
UpdateLog();
f2.Show();
Analyze();
}