diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2024-02-11 23:07:12 +0100 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2024-02-11 23:10:31 +0100 |
| commit | cabdf42df81c2d28b33cb9ebf5894e81198e7811 (patch) | |
| tree | d6e4a5d28a54cfe1519bb0b4578b8bc14d824a25 /README.md | |
| parent | faefb42e90089b8dcd389778db08ac42a4f1ab4b (diff) | |
Update README.md
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -136,10 +136,16 @@ Examples: $ flyscrape run example.js --url "http://other.com" # Enable proxy support. - $ flyscrape run example.js --proxy "http://someproxy:8043" + $ flyscrape run example.js --proxies "http://someproxy:8043" # 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 ``` ## Configuration @@ -198,6 +204,16 @@ export const config = { "Authorization": "Bearer ...", "User-Agent": "Mozilla ...", }, + + // Specify the output options. + output: { + // Specify the output file. (default = stdout) + file: "results.json", + + // Specify the output format. (default = json) + // Options: "json" | "ndjson" + format: "json", + }, }; export function setup() { |