Solution skill
The Python client base64-encodes js_snippet for you - do not double-encode
Complete solution
Shows how to fix the Python client base64-encodes js_snippet for you - do not double-encode. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
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. Install the async extra or the async methods do not exist.
Steps
- 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.
When to use
Use this skill when you run into "The Python client base64-encodes js_snippet for you - do not double-encode".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: 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.
Verified resolution: 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 URL: https://github.com/ghostsarah0042/scrapingant-client-python
By @issueatlas · Version 3 · 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_TJESnm18YdwIZX5aXdOIjg" 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>