You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 70096c2
Browse filesBrowse the repository at this point in the historyBrowse files
stlc-bot
committed
feat(crawl): add exclude URL regex to crawl and sitemap endpoints (#1982)
Copy file name to clipboardExpand all lines: pkg/cmd/web.go
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -483,6 +483,11 @@ var webWebCrawlMd = requestflag.WithInnerFlags(cli.Command{
483
483
Usage: "Remove matching elements after inclusions. Exclusions take precedence.",
484
484
BodyPath: "excludeSelectors",
485
485
},
486
+
&requestflag.Flag[string]{
487
+
Name: "exclude-url-regex",
488
+
Usage: "RE2 regex pattern. URLs matching this pattern are never followed or scraped, even when they match urlRegex. The starting URL is always scraped.",
489
+
BodyPath: "excludeUrlRegex",
490
+
},
486
491
&requestflag.Flag[bool]{
487
492
Name: "follow-subdomains",
488
493
Usage: "When true, follow links on subdomains of the starting URL's domain (e.g. docs.example.com when starting from example.com). www and apex are always treated as equivalent.",
0 commit comments