rflechner / ScrapySharp

reborn of https://bitbucket.org/rflechner/scrapysharp
MIT License
346 stars 75 forks source link

Extend to allow for node lookups for multiple selectors #11

Closed gregclout closed 5 years ago

gregclout commented 5 years ago

At present if I have the following html:

<html>
    <body>
        <p id="description">This is a description</p>
        <p id="secondary-description">This is a secondary description</p>
        <p id="not-a-description">This is a secondary description</p>        
    </body>
</html>

If you wanted to get description and secondary-description you need to do:

    var nodes = html.CssSelect("description");
    var nodes = html.CssSelect("secondary-description");

Ideally you could use a call like:

    var nodes = html.CssSelect(new string[] { "description", "secondary-description" });
rflechner commented 5 years ago

thanks for your PR https://github.com/rflechner/ScrapySharp/pull/14