Filters

Filters are simple methods that modify the output of strings and arrays. They are placed in the schema of parse & scrape tasks.

Examples

Using a single filter

tasks:
  - input: hElLo WoRld
    task: parse
    schema:
      type: string
      filter:
        type: upcase

Outputs:

HELLO WORLD

Using a multiple filters

You can also combine multiple filters by using an array:

tasks:
  - input: hElLo WoRld
    task: parse
    schema:
      type: string
      filter:
        - type: upcase
        - type: split
          separator: ' '

Outputs:

['HELLO', 'WORLD']

Further reading