How to extract heading h1 tag only using Agenty?

Posted by Agenty on Mar 19, 2019

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 website for SEO purpose or competitiveness research to find better content. See this example to learn how to extract heading tags.

HTML Source

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <title>H1 tag extraction demo</title>
	<div class="container">
	<h1 itemprop="name">Buy Success in Interview Book Online at Low Prices</h1>

Expected Output

Buy Success in Interview Book Online at Low Prices

Heading extraction from website

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.

You need data? Our data experts team can help!

Request a demo, to get high-quality web data for your project

Install Agenty Chrome Extension?
Yes, install Not now