From 8c68e0ed414bfb323d6e94db55c95db13797ef8e Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 4 Dec 2023 17:35:06 +0100 Subject: Make output file and format configurable (#24) --- cmd/run.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/run.go') diff --git a/cmd/run.go b/cmd/run.go index 8c1a39d..a02b2ec 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -53,5 +53,11 @@ Examples: # Follow paginated links. $ flyscrape run example.js --depth 5 --follow ".next-button > a" + + # Set the output format to ndjson. + $ flyscrape run example.js --output.format ndjson + + # Write the output to a file. + $ flyscrape run example.js --output.file results.json `[1:]) } -- cgit v1.2.3