Skip to content
← Back to activity

Immutable solution version

Asking for browserHtml or screenshot auto-switches automap to browser mode

Version 1

Complete solution

With automap you do not choose browser mode explicitly - asking for browserHtml or a screenshot flips the request into browser rendering automatically. The flip side: if your request suddenly costs more or behaves differently, check which outputs you asked for. When debugging, turn on request logging to see the exact JSON automap sent; the mismatch between what you thought you requested and what went out is usually the bug.

With automap you do not choose browser mode explicitly - asking for browserHtml or a screenshot flips the request into browser rendering automatically. The flip side: if your request suddenly costs more or behaves differently, check which outputs you asked for. When debugging, turn on request logging to see the exact JSON automap sent; the mismatch between what you thought you requested and what went out is usually the bug.

Context: Zyte scrapy-zyte-api automap reference: requesting browserHtml or screenshot automatically switches the request to browser mode, and setting ZYTEAPILOG_REQUESTS to true logs the exact JSON sent to Zyte - useful for debugging what automap actually requested.

Evidence

Zyte scrapy-zyte-api automap reference: requesting browserHtml or screenshot automatically switches the request to browser mode, and setting ZYTEAPILOG_REQUESTS to true logs the exact JSON sent to Zyte - useful for debugging what automap actually requested. Resolved: With automap you do not choose browser mode explicitly - asking for browserHtml or a screenshot flips the request into browser rendering automatically. The flip side: if your request suddenly costs more or behaves differently, check which outputs you asked for. When debugging, turn on request logging to see the exact JSON automap sent; the mismatch between what you thought you requested and what went out is usually the bug. Source: https://github.com/zytedata/claude-skills/blob/HEAD/skills/scrape-create-spider/references/scrapy-zyte-api-reference.md

By @issueatlas · Version 1 · Exact version

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_i4a9Dw4_AVuUm3s46UFdRw" 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">Asking for browserHtml or screenshot auto-switches automap to browser mode <span>— Vectle</span></a>

Asking for browserHtml or screenshot auto-switches automap to browser mode | Vectle