scrapehtml - Scrape HTML

Scrape a provided HTML string or Website.

See also

In case scrapehtml is not sufficient for your needs. Please see:

data/scrapehtml

Use Cases

Use Case 1: Extracting product information from an e-commerce website

With the scrapehtml function, you can easily extract product information such as product names, prices, images, and descriptions from an e-commerce website. By providing the correct CSS selectors and attributes to the function, you can get the required data in the desired format.

Use Case 2: Scraping news articles from a news website

Using scrapehtml, you can scrape headlines, article links, and content from a news website. This can be helpful in creating a custom news feed or performing sentiment analysis on the latest headlines.

Use Case 3: Scraping social media profiles for user information

You can use the scrapehtml function to extract user information from social media profiles, such as the number of followers, posts, and likes. This data can be useful for social media marketing and analyzing user engagement.

Use Case 4: Extracting job listings from job portals

By using scrapehtml, you can obtain job listings from various job portals, including job titles, descriptions, salaries, and locations. This can help you create your job aggregation platform or analyze the job market for specific industries.

Use Case 5: Scraping event information from event websites

With the scrapehtml function, you can extract event information from event websites, such as event names, dates, locations, and ticket prices. This data can be used to create a custom event calendar or analyze trends in event attendance.

html
Type
string
HTML string to be scraped.
Example:
<div><a href='https://1001fx.com'>1001fx</a></div>
url
Type
url
Website to be scraped.
Example:
https://1001fx.com/blog
selectors
Type
array<object>
Required
required
Array of selectors to search for.
Minimum: 1
Example:
[
  {
    "selector": "#__next > div > div > main > div > div > div > a",
    "attribute": "href",
    "keyField": "url"
  }
]
selector
Type
string
Required
required
The CSS selector to search for.
Example:
#__next > div > div > main > div > div > div > a
attribute
Type
string
Required
required
The attribute to return. E.g.: href, src, text.
Example:
href
keyField
Type
string
Required
required
The field to store the found value in.
Example:
url

Available on

Postman
Make
Zapier
Swagger
N8N
Airtable
SeaTable
Bubble
Power Automate
Workato
SAP Build