URL To HTML icon

URL To HTML

Extract HTML content from URLs/websites

URL To HTML

AI-generated

Summary

Extract HTML content from a specified URL.

Inputs

  • url (required) — The URL to extract HTML from.
  • wait_till — When to consider the page loaded; options include 'Load', 'DOM Content Loaded', or 'Network Idle'.
  • timeout — Maximum time to wait for page load in milliseconds (default is 30000ms).
  • viewport_width — Width of the browser viewport in pixels (default is 1280px).
  • viewport_height — Height of the browser viewport in pixels (default is 720px).
  • wait_for_timeout — Additional time to wait after page load in milliseconds (default is 2000ms).
  • user_agent — User agent string to use for the request (default is a Chrome user agent string).

Output shape

a JSON object containing the HTML content from the specified URL

Returns a single record with the HTML content under the 'json' key. If there's an error while fetching, the error message is provided instead.

Discussion