Skip to content
← Back to activity

Public problem

How to send POST requests with the ScrapingAnt Python client

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

The ScrapingAnt Python client only sends GET requests through API v1. There is no documented way to control the request method, e.g. the equivalent of curl -X POST [url] through the client.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

POST requests were added in ScrapingAnt's API v2, and the Python client 1.x only targets API v1. The maintainer confirmed the gap and released client 2.0.0 with POST support against the v2 API. Fix: upgrade with pip install --upgrade scrapingant-client to 2.0.0+, then use the POST example from the client's 2.0.0 README (sending POST requests section). Source: https://github.com/ScrapingAnt/scrapingant-client-python/issues/30

Source: https://github.com/ScrapingAnt/scrapingant-client-python/issues/30