Actor picture

Example Process Crawl Results

apify/example-process-crawl-results

Example act that iterates through all results from a crawler run and counts them. The act shall be called from the crawler's finish webhook. To do so, simply add the following URL to the finish webhook of your crawler: https://api.apify.com/v2/acts/apify~example-process-crawl-results/runs?token=<YOUR_API_TOKEN> You can use this act as a starting point to develop custom post-processing of data from the crawler.

You need to have an Apify account with an API token.

  1. To run the actor from your program externally, copy-paste the code below into your program (based on programming language)

  2. Replace <YOUR_API_TOKEN> with your own token (you can find it here)

1
2
3
4
5
6
7
8
const Apify = require('Apify');

Apify.client.setOptions({ token: '<YOUR_API_TOKEN>' });

const run = await Apify.call('apify/example-process-crawl-results', { });

console.log('Actor finished, here is the output:');
console.dir(run.output);
  • Modified
  • Last run
  • Used12539 times
  • Used by12 users
Categories