sparklemotion / nokogiri.org

Documentation site for Nokogiri (a ruby library)
https://nokogiri.org/
MIT License
45 stars 24 forks source link

Incorporate "how to extract HTML features using xpath and css" into tutorial #18

Open flavorjones opened 5 years ago

flavorjones commented 5 years ago

originally https://github.com/sparklemotion/nokogiri.org-tutorials/issues/58

@rdpoor suggested:

A while back, I wrote a Nokogiri tutorial disguised as a StackOverflow response on "how to extract HTML features using xpath and css":

https://stackoverflow.com/a/20284975/558639

It shows in substantial detail how to extract links from HTML, find a specific link, find a link from associated text, extract text from a link. And it shows how to do each of those using xpath and css constructs.

I opine that this would be a welcome addition to the tutorial documentation.

I'm not psychically prepared to learn the sparklemotion stuff to incorporated this into the tutorial, but it should be an easy task for someone who is.

rdpoor commented 5 years ago

@flavorjones : thanks!

Here's a slightly updated and expanded link:

https://stackoverflow.com/questions/39653384/how-to-extract-links-and-link-text-from-html-using-nokogiri/