From c0ef0e7b99382164964be5404e76c759229c1268 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Thu, 31 Aug 2023 22:02:23 +0200 Subject: set default depth to 0 --- js/template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/template.js') diff --git a/js/template.js b/js/template.js index 2079c5f..82196f0 100644 --- a/js/template.js +++ b/js/template.js @@ -2,7 +2,7 @@ import { parse } from 'flyscrape'; export const options = { url: 'https://news.ycombinator.com/', // Specify the URL to start scraping from. - depth: 1, // Specify how deep links should be followed. (default = 0, no follow) + depth: 0, // Specify how deep links should be followed. (default = 0, no follow) allowedDomains: [], // Specify the allowed domains. ['*'] for all. (default = domain from url) blockedDomains: [], // Specify the blocked domains. (default = none) allowedURLs: [], // Specify the allowed URLs as regex. (default = all allowed) -- cgit v1.2.3