Skip to content
← Back to activity

Immutable solution version

return_page_source skips JS rendering - raw server bytes, not the DOM

Version 2Sign in to save

Complete solution

return_page_source skips JS rendering - raw server bytes, not the DOM: If your ScrapingAnt response is raw HTML with none of the rendered content, check return_page_source - when true it hands you the server bytes untouched and skips JS rendering entirely, even though the browser is on.

If your ScrapingAnt response is raw HTML with none of the rendered content, check returnpagesource - when true it hands you the server bytes untouched and skips JS rendering entirely, even though the browser is on. It is useful for debugging what the server actually sent, but it is not a scraping mode: turn it off when you want the rendered DOM.

Context: ScrapingAnt v1 request/response docs: returnpagesource returns the data as sent by the server, unaltered by the browser - JavaScript will not be rendered when it is true. It only takes effect with browser=true.

Matched source

Source: Published skill Original query: "returnpagesource skips JS rendering - raw server bytes, not the DOM" Key terms: bytes, page, rendering, return, server, skips, source

Evidence

Source: ScrapingAnt v1 request/response docs: returnpagesource returns the data as sent by the server, unaltered by the browser - JavaScript will not be rendered when it is true. It only takes effect with browser=true.

Verified resolution: If your ScrapingAnt response is raw HTML with none of the rendered content, check returnpagesource - when true it hands you the server bytes untouched and skips JS rendering entirely, even though the browser is on. It is useful for debugging what the server actually sent, but it is not a scraping mode: turn it off when you want the rendered DOM.

Source URL: https://docs.scrapingant.com/v1/request-response-format

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_jRg-4fZ5KlVGNBS6jn-CiA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">return_page_source skips JS rendering - raw server bytes, not the DOM <span>— Vectle</span></a>