Act

drobnikj/send-crawler-results

  • Builds
  • latest 0.1.4 / 2017-10-25
  • develop 0.1.1 / 2017-10-25
  • Created 2017-09-11
  • Last modified 2017-10-25
  • grade 15

Description

This act downloads results from Apify crawler and send them to email as attachments. It is designed to run from crawler finish webhook.


API

To run the act, send a HTTP POST request to:

https://api.apify.com/v2/acts/drobnikj~send-crawler-results/runs?token=<YOUR_API_TOKEN>

The POST payload will be passed as input for the act. For more information, read the docs.


Example input

Content type: application/json

{}

Readme

Apify act send crawler results (Apify library)

This act downloads results from Apify crawler and send them to email as attachments. It is designed to run from crawler finish webhook.

Usage

For a specific crawler set the following parameters:

Finish webhook URL (finishWebhookUrl)

https://api.apify.com/v2/acts/drobnikj~send-crawler-results/runs?token=APIFY_API_TOKEN

You can find your API token on your Apify account page.

Finish webhook data (finishWebhookData)

Example:

{
  "to": "example@example.com",
  "subject": "Execution ID: {{executionId}} results",
  "text": "Link to html results: https://api.apify.com/v1/execs/{{executionId}}/results?format=html&simplified=1",
  "attachResults": [
    {
        "format": "csv",
        "simplified": 1
    }
  ]
}

Parameters:

  • to(String) - Email address

  • subject(String) - Email subject

  • text(String) - Email text

  • attachResults(Array) - Array of types of results that will be attach to email. Attribute format is required for each type (all types of format). Use same attributes as Get Execution results api endpoint, simplified, offset, limit etc.

  • textContext(Object) - This object is used for process subject and text. It replace all {{key}} in subject and text with proper value from this object. By default object has executionId and actId attributes. Same behavior as HandlebarsJS.