Start a new topic
Answered

Is it possible to run a spider via a static URL?

I know it's possible to fetch the latest spider data via a static URL:

https://app.scrapinghub.com/api/items.csv?project=PROJECTNUMBER&spider=SPIDERNAME&include_headers=1&fields=FIELDNAME1,FIELDNAME2&apikey=APIKEY

but is it possible to run a spider through a similar method?


Thanks,

Chris


Best Answer

Hi Nestor,


Thanks for your reply.


Could you give me an example of how the url would look like? I don't see that in the documentation (sorry, I'm not a developer)


Thanks,

Chris 

You need to send a POST request to https://app.scrapinghub.com/api/run.json with the parameters that are marked as required (spider and project)


1 person likes this
Login to post a comment