Launch Offer! Get lifetime access for just $59 for a limited time.

UScraper
Back to block reference

Extraction

Extract HTML block

Extracts inner or outer HTML from matching elements.

Purpose

Use Extract HTML when you need raw markup for archiving, downstream parsing, audits, or preserving rich snippets.

How it works

  • Finds elements by selector or XPath.
  • Returns inner HTML by default, or outer HTML when inner HTML is disabled.
  • Can save extracted HTML files to a selected folder.
  • Can extract from one or multiple matching elements.

Configuration fields

FieldRequiredDefaultDescription
Element SelectorYes-CSS selector or XPath for the element to capture.
Extract from multiple elementsNofalseCapture every matching element.
Inner HTMLNotrueUse inner markup instead of the full wrapper element.
Save FolderNo-Optional folder where HTML files should be written.
FilenameNo-Optional base filename for saved HTML files.

Output

HTML string, list of HTML strings, and optionally saved HTML files.

Usage notes

  • Use inner HTML for widget contents and outer HTML when the wrapper attributes matter.
  • Choose a save folder when you want files instead of only run results.
  • HTML files are timestamped when written so repeated runs do not overwrite each other unexpectedly.
FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No subscriptions, no code, no limits.

Available on Windows 10+ · macOS coming soon