Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.49 KB

File metadata and controls

63 lines (46 loc) · 1.49 KB

Description:

fetch process plugin is intended for downloading files.

Generic parameters:

Param Required Type Default Example
include - bool false true
require - array [] [1, 2]
timeout - int 60 300

Plugin parameters:

Param Required Type Default Example Description
input + array [] ["twitter.media"] List of Datum fields with URLs.
output + array [] ["data.array0"] List of target Datum fields.

Flow sample:

flow:
  name: "fetch-example"
  params:
    cleanup: false

  input:
    plugin: "twitter"
    params:
      cred: "creds.twitter.default"
      input: ["rianru"]
      force: true
      force_count: 10

  process:
    - id: 0
      plugin: "fetch"
      params:
        input:  ["twitter.media"]
        output: ["data.array0"]

    - id: 1
      plugin: "echo"
      alias: "echo fetched data"
      params:
        input:  ["data.array0"]

Config sample:

[creds.twitter.default]
access_token = "<ACCESS_TOKEN>"
access_secret = "<ACCESS_SECRET>"
consumer_key = "<CONSUMER_KEY>"
consumer_secret = "<CONSUMER_SECRET>"