Actor

petr_cermak/execution-to-knack

  • Builds
  • latest 0.0.4 / 2018-01-03
  • Created 2017-12-13
  • Last modified 2018-09-12
  • grade 1

Description

Act for inserting crawler execution results into Knack database.


API

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

https://api.apify.com/v2/acts/petr_cermak~execution-to-knack/runs?token=<YOUR_API_TOKEN>

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


Example input

Content type: application/json; charset=utf-8

{ 
    "_id": "EXECUTION_ID",
    "data": {
        "view": "KNACK_VIEW",
        "scene": "KNACK_SCENE",
        "appId": "KNACK_APP_ID",
        "apiKey": "KNACK_API_KEY"
    }
}

Readme

act-execution-to-knack

Apify act for inserting crawler results into Knack database.

This act fetches all results from a specified Apifier crawler execution and inserts them into a view in Knack database.

INPUT

Input is a JSON object with the following properties:

{ 
    // crawler execution id
    "_id": EXECUTION_ID,

    // knack connection credentials
    "data": {
        "view": KNACK_VIEW,
        "scene": KNACK_SCENE,
        "appId": KNACK_APP_ID,
        "apiKey": KNACK_API_KEY,
        "schema": TRANSFORM_SCHEMA  // optional
    }
}

The act can be run with a crawler finish webhook, in such case fill just the contents of data attribute into a crawler finish webhook data.

It is possible to transform the crawler column names into the Knack field names using a transform schema. This is what the optional schema attribute is for, it is a simple object with the following structure.

{
    // CRAWLER : KNACK
    "col_name_1": "field_001",
    "col_name_2": "field_002",
    ...
}