How to get content using httpAgilityPack website?

Topics: Developer Forum
Dec 27, 2014 at 12:58 AM
I have a link:, new version have not htmlNode and SelectSingleNode.

Now, I want to get content from this link and I want to get that's results:"a request to the public for money, information, or help".

Source of page:
[TEXT](<span class="sense-body">
<span class="def-block">
    <span class="def-head">
        <span class="def-info"></span>
        <span class="def">


            <a class="query" title="request" href=""></a>

             to the 

            <a class="query" title="public" href=""></a>


            <a class="query" title="money" href=""></a>


            <a class="query" title="information" href=""></a>

            , or 

            <a class="query" title="help" href=""></a>


    <span class="def-body"></span>
[TEXT](string url = "";
    HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
    WebRequest request = WebRequest.Create(url);
    WebResponse response = await request.GetResponseAsync();
    StreamReader stream = new StreamReader(response.GetResponseStream());
    string content = await stream.ReadToEndAsync();

    List<string> list = new List<string>();

    foreach (...)
Jan 9, 2015 at 4:14 AM
Edited Jan 9, 2015 at 4:15 AM
HtmlNodeCollection defNodes=doc.DocumentNode.SelectNodes("//span[@class='def']);
var defs=from c in defNodes
where c.InnerText.Contains("serious")
select c;