Skip to content

using pup

To extract the URLs from one or more links based on their anchor text, use pup -f foobar.html ':contains("baz") attr{href}', where foobar.html is the HTML source file containing the links and baz is the anchor text.

licensing

No rights reserved: CC0 1.0.

prior work