EN

HTML Scraper

DirectoriesMCP

Automatically scrape full HTML source code and metadata from any public web page. Just supply the URL(s) - no login, no coding, no setup - and receive structured data ready for export in minutes.

Templates are view-only on mobile. Please switch to a desktop to run this template.

🚀 Why Use Octoparse's HTML Scraper?

🔎 Effortless HTML & Meta-Data Extraction

Simply provide a list of URLs (one per line), and Octoparse retrieves each page's full HTML source as well as its meta tags - page title, description, and keywords - automatically.

⚡ Fast, No-Code, & Scalable

No coding or configuration needed. Whether you have a handful of URLs or hundreds, the scraper handles them all. Perfect for bulk web-page archiving, site audits, or content research at scale.

📄 Clean, Structured Data Output

Each record includes:

  • Original URL
  • Page title
  • Meta keywords (if present)
  • Meta description (if present)
  • Full HTML source code
  • This makes our tool ideal for web scraping HTML across SEO audits, content analysis, archiving, and compliance checks.

🧰 Flexible Use Cases: From SEO to Development & Research

  • Use cases include:
  • SEO & technical audits (meta-tag & structure reviews)
  • Archiving web pages or backing up site content
  • Content research and competitive analysis
  • Preparing datasets for parsing, indexing, or automated analysis

✅ Who Should Use This Template?

  • SEO Analysts & Web Auditors - For metadata checks, page-by-page review, and site-wide audits.
  • Content Researchers & Archivists - To archive full HTML or build content databases.
  • Developers & QA Engineers - For retrieving raw HTML for debugging, parsing, or testing.
  • Researchers & Data Analysts - When you need full page HTML for data-mining, parsing, or machine-processing.

🐙 Why Octoparse?

  • True No-Code Interface - One-click setup: just paste URLs and start. No scripting or technical knowledge required.
  • Preset Template - Instant Use - The HTML Scraper is ready out of the box; no custom workflow needed.
  • Handles Simple & Static Pages Reliably - For any page accessible via URL, Octoparse fetches the full source quickly.
  • Scalable Export Options - Bulk-process many URLs, then export clean data to Excel, CSV, or JSON, ready for analysis or storage.

Input and Output

Input

{
  "uRLs": [
    "https://www.kw.com/agent/search/CA/Los%20Angeles",
    "https://www.rkflife.com.uy/hombre",
    "https://www.vanarama.com/car-leasing/search",
    "https://www.mk2shop.com/it/elettrodomestici/grandi-elettromestici/cappe-da-cucina.html",
    "https://pimcoprimerealestate.com/en/company"
  ],
  "scroll_for_One_Screen": 1,
  "scroll_to_the_Bottom_of_Webpage": 1,
  "wait_Before_Extraction": 1
}

Output

[
  {
    "Original_URL": "",
    "Source_code": ""
  }
]

⚠️ Important Notes & Best Practices

  • This template works only with publicly accessible pages. Pages requiring login, cookies, or complex dynamic rendering may need a custom workflow.
  • Extracted data (such as meta tags) depends on what the source page actually contains. If a page has no meta description or keywords, those fields will appear blank.
  • The HTML Scraper only supports URLs from the same domain within a single run.
  • Login or authentication-based scraping is not supported for this template.
  • The scraper retrieves the full HTML source code of each page (not simplified or text-only versions).
  • For large batches of URLs, we recommend splitting them into multiple runs or using scheduled cloud tasks to maintain stability and performance.
  • Always ensure your data collection is legal, ethical, and compliant with the target site's Terms of Service and applicable regulations.

❓ FAQs

Q: Can I scrape URLs from different websites or pages with different structures in one task?
A: No. The HTML Scraper only supports URLs from the same domain and pages with similar layouts. Use separate tasks for different domains or structures.

Q: Can I add cookies or log in to scrape content behind a login page?
A: Login and authentication are not supported in this template. As a workaround, pause the task, log in manually, and then resume to scrape behind the login.

Q: Can I extract only the text instead of the full HTML code?
A: The default template extracts full HTML. For text-only output, request a custom template that captures page title, plain text, meta description, and URL.

Q: Can I extract all the text from a webpage?
A: Yes. Since the template captures the full HTML source, all text content contained in the page is included. If you need just the text without HTML markup, learn how to extract text from HTML documents for cleaner, text-only output options.

Q: Excel cuts off HTML content at 32,767 characters. How can I avoid this?
A: Use a text-only scraper instead. Extracting plain text helps keep the output within Excel's cell character limits. For structured table data, you can also export HTML tables to Excel that preserve formatting while staying within cell limits.


🛠 How to Use: Step-by-Step Guide

1. Start the template

Click "Try it!" or "Start" to load the HTML Scraper.

2. Enter your scraping parameters

On the input screen, fill in your keyword and filter options.

Input Fields Explained

ParameterRequired?DescriptionExample
URLsRequiredUp to 10,000 per run, separate by line breaks.For large datasets, consider splitting them into multiple runs.https://example.com/page1
Scroll for One Screen (times)OptionalNumber of times to scroll down by one screen height. Leave blank to skip.3
Scroll to the Bottom of Webpage (times)OptionalNumber of times to scroll to the bottom of the page. Leave blank to disable.1
Wait Before Extraction (seconds)OptionalNumber of seconds to wait before starting extraction. Useful for slow-loading pages.5
Run the scraper

3. Click "Start" and select a run mode. (Greyed-out modes are not supported for this template.)

  • Octoparse will automatically browse your target website, load search results, scroll pages, and extract all matching products.

4. Monitor & Handle Interruptions

  • Scraping duration may vary based on the number of products returned for your search.
  • If a CAPTCHA appears, pause the task, solve it manually, then resume the run.

5. Export your data

  • Once scraping completes, go to the Output section to review.
  • Export the results - e.g. as CSV or Excel - for further analysis, filtering, or storage.