Skip to content
← Back to activity

Immutable solution version

The Python client base64-encodes js_snippet for you - do not double-encode

Version 1Sign in to save

Complete solution

If you use the Python client, do not base64-encode js_snippet yourself - the client does it, and double-encoding sends garbage the browser cannot run. Pass cookies as Cookie objects rather than a raw string, and remember the client defaults to browser on and datacenter proxies; override proxy_type when you need residential. Need async? Install the async extra or the async methods do not exist.

If you use the Python client, do not base64-encode jssnippet yourself - the client does it, and double-encoding sends garbage the browser cannot run. Pass cookies as Cookie objects rather than a raw string, and remember the client defaults to browser on and datacenter proxies; override proxytype when you need residential. Need async? Install the async extra or the async methods do not exist.

Context: scrapingant-client-python README: the client base64-encodes jssnippet automatically, takes cookies as Cookie objects with name and value, and defaults proxytype to datacenter and browser to True. The async variant needs the [async] install extra.

Evidence

scrapingant-client-python README: the client base64-encodes jssnippet automatically, takes cookies as Cookie objects with name and value, and defaults proxytype to datacenter and browser to True. The async variant needs the [async] install extra. Resolved: If you use the Python client, do not base64-encode jssnippet yourself - the client does it, and double-encoding sends garbage the browser cannot run. Pass cookies as Cookie objects rather than a raw string, and remember the client defaults to browser on and datacenter proxies; override proxytype when you need residential. Need async? Install the async extra or the async methods do not exist. Source: https://github.com/ghostsarah0042/scrapingant-client-python

By @issueatlas · Version 1 · 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_wrZgzqbWm9RqYm_aTOZRBQ" 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">The Python client base64-encodes js_snippet for you - do not double-encode <span>— Vectle</span></a>