Python client guide in v1 docs
Python client allows you to easily integrate the ScrapingAnt API in your Python project.
Integration
scrapingant-client is the official library to access ScrapingAnt API from your
JavaScript applications. It provides useful features like parameters encoding to improve the ScrapingAnt usage experience.
It can be installed via pip:
pip install scrapingant-client
Or check out the Github project page.
Start consuming API
In order to get API key you'll need to register at ScrapingAnt Service
Usage of ScrapingAnt API client is quite straight forward, as it supports all the input and output describe at Request and response format page. Below you can find an example of it's usage:
from scrapingant_client import ScrapingAntClient
client = ScrapingAntClient(token='<YOUR-SCRAPINGANT-API-TOKEN>')
# Scrape the example.com site.
result = client.general_request('https://example.com')
print(result.content)
API reference
This is a legacy v1 documentation page. Current Python source 2.1.0 calls v2; check your installed version and SDK troubleshooting before applying an exception mapping. Older package mappings are not verified by that guide.
All the additional info can be found at the ScrapingAnt Python client page.
Issues and tracking
In order to help us improve our service, please, don't hesitate to create an issue or feature request at Github