diff options
| author | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-27 19:25:04 +0200 |
|---|---|---|
| committer | Philipp Tanlak <philipp.tanlak@gmail.com> | 2023-08-27 19:25:04 +0200 |
| commit | b2881a3bc04063ba520fa9795fd459d32a1b8874 (patch) | |
| tree | c49a55a869de978f0702c07ff7df9ae3bc080026 /js/template.js | |
| parent | 5c16435e2218344a6e232ebb48cf022a32ba85d5 (diff) | |
rename allow and block fields
Diffstat (limited to 'js/template.js')
| -rw-r--r-- | js/template.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/template.js b/js/template.js index ac78b47..75a60c7 100644 --- a/js/template.js +++ b/js/template.js @@ -3,8 +3,10 @@ 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) - allowDomains: [], // Specify the allowed domains. * for all. (default = domain from url) - denyDomains: [], // Specify the denied domains. (default = none) + 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) + blockedURLs: [], // Specify the blocked URLs as regex. (default = non blocked) rate: 100, // Specify the rate in requests per second. (default = 100) } |