If you want to use the same ip continuously you can use the session parameter. 'SessionId
' parameter can be any integer value. Each unique integer value will be the id of a session.
If you don't make any requests within 5 minutes, your session will be closed automatically.
$ curl "http://api.scrape.do/?token=API_TOKEN&sessionId=98&url=http://httpbin.org/ip"$ curl "http://api.scrape.do/?token=API_TOKEN&sessionId=99&url=http://httpbin.org/ip"
import requestspayload = {}headers = {}url = "http://api.scrape.do?token=API_TOKEN&session=98&url=http://example.com"response = requests.request("GET", url, headers=headers, data = payload)print(response.text.encode('utf8'))url = "http://api.scrape.do?token=API_TOKEN&session=99&url=http://example.com"response = requests.request("GET", url, headers=headers, data = payload)print(response.text.encode('utf8'))
{"origin": "88.226.65.162"}
{"origin": "88.226.65.162"}