Skip to main content

Overview

The Web Scrape block extracts content from webpages. Use it to gather information from websites, pull article content, extract product details, or collect data for AI analysis. The block supports multiple output formats including AI-powered structured data extraction.

Configuration

Website URL

Enter the URL of the webpage to scrape. This field supports placeholders to scrape dynamic URLs from previous steps. Examples:
  • Static URL: https://example.com/blog/article-title
  • From search results: {{step_1.output.organic[0].link}}
  • From loop: {{current.url}}
The scraper handles JavaScript-rendered pages, so dynamic content loads correctly.

Result Format

Choose how the scraped content is returned.

AI JSON Format

When you select AI JSON Format, the scraper uses AI to extract specific data from the page based on your prompt.

Prompt

Tell the AI what information to extract from the page. Be specific about the data structure you need. Example prompts: For a product page:
For a blog article:
For a company page:

JSON Output Example

For a product page with the prompt “Extract product name, price, and features”:
Accessing JSON data:

Markdown Format

Returns the page content as clean, readable markdown text. Navigation, ads, and boilerplate are removed.

Markdown Output Example

Accessing markdown:

HTML Format

Returns the raw HTML content of the page. Useful when you need to preserve exact structure or perform custom parsing.

HTML Output Example


Content Options

Only Main Content

When enabled, the scraper excludes navigation menus, footers, sidebars, and other peripheral content. Returns only the primary content area.
  • On: Cleaner output focused on main content
  • Off: Full page content including navigation and sidebars
Use this when you want article text without site-wide elements.

Include Metadata

When enabled, the output includes page metadata alongside the content. Metadata fields included:
  • title - Page title
  • description - Meta description
  • ogTitle - Open Graph title
  • ogDescription - Open Graph description
  • language - Page language
  • favicon - Favicon URL
  • sourceURL - Original URL
  • twitter:title - Twitter card title
  • twitter:description - Twitter card description

Output with Metadata

When metadata is included, the output structure changes: Markdown with metadata:
Accessing content with metadata:

Best Practices

  • Use “Only Main Content” for cleaner article extraction
  • Choose Markdown format when feeding content to LLM blocks
  • Use AI JSON format when you need specific structured data
  • Include metadata when you need page titles or descriptions
  • Combine with Google Search to scrape top-ranking pages
  • Test scraping on a single URL before running bulk operations

Common Use Cases


Example Workflow: Competitor Content Analysis

Analyze content from top-ranking pages:
  1. Google Search Block: Search for target keyword
  2. Loop Block: Iterate through top 5 organic results
  3. Web Scrape Block:
    • URL: {{current.link}}
    • Format: Markdown
    • Only Main Content: On
  4. LLM Block: Analyze content themes and structure
  5. Google Sheets Block: Store analysis results

Example Workflow: Product Data Extraction

Extract product details from e-commerce pages:
  1. Google Sheets Block: Read list of product URLs
  2. Loop Block: Process each URL
  3. Web Scrape Block:
    • URL: {{current.product_url}}
    • Format: AI JSON
    • Prompt: “Extract product name, price, rating, number of reviews, and availability status”
  4. Google Sheets Block: Append extracted data

Troubleshooting


What’s Next

Now that you understand the Web Scrape block: