generate_code
Convert captured network flows into a runnable scraper script. Preserves request order and session cookies for faithful replay.
Instructions
Turn captured flows into a runnable scraper script — the final deliverable.
flow_ids may be a list or a comma-separated string. The order is preserved in the generated script and all requests share one Session, so a "log in, then call the API" sequence replays correctly with cookies carried across.
framework = curl_cffi (default; TLS fingerprint impersonation, best for scraping) | httpx | requests | curl (emits a shell script instead).
Original request headers are kept, minus the ones the client manages itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body_max | No | ||
| flow_ids | Yes | ||
| framework | No | curl_cffi | |
| impersonate | No | chrome |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |