How to query document by CSS selectors?
Thanks for a promising library!
Beautiful Soup allows to query document by CSS selectors.
soup.select("p > .sister:nth-of-type(2)")
# [<a class="sister" href="http://example.com/lacie" id="link2">Lacie</a>]
As I understand, soup
can't do that. I should do something like the next instead:
soup.tag("p").class("sister").find_all().nth(2)
How to query document by CSS selectors?