From 368cc96cf463629f7856a7b631d3825182c35b48 Mon Sep 17 00:00:00 2001 From: FTAndy Date: Thu, 30 Nov 2023 17:57:10 +0800 Subject: [PATCH] fix: readme --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 53d07eef..f089c4aa 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,11 @@ type Config = { /** URL to start the crawl, if sitemap is provided then it will be used instead and download all pages in the sitemap */ url: string; /** Pattern to match against for links on a page to subsequently crawl */ - match: string; + match: string | string[] | { + pattern: string; + selector?: string | undefined; // Selector to grab the inner text from + skip?: boolean | undefined; // Whether skip to not grab any content from this pattern + }[]; /** Selector to grab the inner text from */ selector: string; /** Don't crawl more than this many pages */