Skip to content

Commit 8df6867

Browse files
committed
feat(filtering more URLs): add more filter outs to v0.0.55
1 parent 93e4389 commit 8df6867

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

apps/api/src/scraper/WebScraper/crawler.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export class WebCrawler {
240240
return fullUrl;
241241
}
242242

243-
Logger.trace(
243+
Logger.info(
244244
`Link filtered out: ${fullUrl} with tests: isInternalLink: ${this.isInternalLink(
245245
fullUrl
246246
)}, allowExternalLinks: ${
@@ -461,6 +461,16 @@ export class WebCrawler {
461461
"https?://(?:[a-z0-9.]*\\.)?google.com",
462462
"https?://(?:[a-z0-9.]*\\.)?forbes.com",
463463
"https?://(?:[a-z0-9.]*\\.)?nytimes.com",
464+
"https?://(?:[a-z0-9.]*\\.)?theguardian.com",
465+
"https?://(?:[a-z0-9.]*\\.)?theatlantic.com",
466+
"https?://(?:[a-z0-9.]*\\.)?vox.com",
467+
"https?://(?:[a-z0-9.]*\\.)?buzzfeednews.com",
468+
"https?://(?:[a-z0-9.]*\\.)?vice.com",
469+
"https?://(?:[a-z0-9.]*\\.)?businessinsider.com",
470+
"https?://(?:[a-z0-9.]*\\.)?inc.com",
471+
"https?://(?:[a-z0-9.]*\\.)?washingtonpost.com",
472+
"https?://(?:[a-z0-9.]*\\.)?newsweek.com",
473+
"https?://(?:[a-z0-9.]*\\.)?aljazeera.com",
464474
"https?://(?:[a-z0-9.]*\\.)?cnn.com",
465475
"https?://(?:[a-z0-9.]*\\.)?bbc.com",
466476
"https?://(?:[a-z0-9.]*\\.)?foxnews.com",

0 commit comments

Comments
 (0)