Xpath is great for html request.
Something like that:
//a[@id='infgHeader']/@text
In the Chrome Developer Tool, you can use the search box on the Elements tab to check the expression.
Quick start in terminal:
$echo '<div id="test" text="foo">Hello</div>' | xpath '//div[@id="test"]/@text' Found 1 nodes: -- NODE -- text="foo"
ebaxt source share