Version: v0.0.0-...-d33463d Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0



Fetcher CLI of the Dataflow kit downloads html content from web pages via Fetcher service endpoint.

Currently two types of fetcher are available : Headless Chrome Fetcher and Base Fetcher.

Base fetcher is used for downloading html web page using Go standard library's http.

Chrome Fetcher connects to Headless Chrome which renders JavaScript pages.

Accessing Fetcher endpoints


./fetch.cli --URL http://example.com
./fetch.cli --URL http://example.com --FETCHER_TYPE base
./fetch.cli -u http://example.com -t base
./fetch.cli -u http://example.com -t chrome

Flags and configuration settings

DFK_FETCH: HTTP listen address of Fetch service (defaults to "")
FETCHER_TYPE: DFK Fetcher type: chrome, base (defaults to base)
URL: URL to be fetched

Request parameters for fetchers

FORMDATA: string value for passing formdata parameters.
For example the following string for processing pages which
require authentication may be passed:
COOKIES: Cookies contain cookies to be added to request  before
sending it to browser.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL