diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-31 22:02:23 +0200 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-31 22:02:23 +0200 |
| commit | c0ef0e7b99382164964be5404e76c759229c1268 (patch) | |
| tree | 91f09a7a2e2f562bb90cd89a249a389f875d8183 | |
| parent | f97433948e0b136dac466661d5c897927a247355 (diff) | |
set default depth to 0
| -rw-r--r-- | js/template.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |