Scraping heading(h1, h2...) tags from web pages is most common use of website scraping and thousands of users use Agenty to extract heading, title and meta tags from websites for SEO purpose or competitiveness research to find better content. See this example to learn how to extract heading tags.
<title>H1 tag extraction demo</title>
<h1 itemprop="name">Buy Success in Interview Book Online at Low Prices</h1>
Buy Success in Interview Book Online at Low Prices
In this example, I could have been used
h1 only. But I used
h1[itemprop="name"] to ignore any other h1 tag if there by chance on any page.