This actor downloads results from Legacy PhantomJS Crawler task and sends them to email as attachments. It is designed to run from finish webhook.
- Modified
- Users25
- Runs9,190
This actor downloads results from Apify scraper/crawler and send them to email as attachments. It is designed to run from finish webhook of Legacy PhantomJS Crawler.
From Legacy PhantomJS Crawler task
For a specific task 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",
"html": "Link to html <a href=\"https://api.apify.com/v1/execs/{{executionId}}/results?format=html&simplified=1\"> results </a>",
"attachResults": [
{
"format": "csv",
"simplified": 1
}
]
}
Parameters:
to
(String) - Email addresssubject
(String) - Email subjecttext
(String) - Email texthtml
(String) - Email html bodyattachResults
(Array) - Array of types of results that will be attach to email. Attributeformat
is required for each type (all types of format). Use same attributes as Get dataset items api endpoint,simplified
,offset
,limit
etc.textContext
(Object) - This object is used for processsubject
andtext
. It replace all {{key}} insubject
andtext
with proper value from this object. By default object has all attributes attributes gets on input. Same behavior as HandlebarsJS.
Industries
See how Send Legacy PhantomJS Crawler Results is used in industries around the world