0

[Feat] Added allowed urls

FireCrawl should be able to scrape LinkedIn Articles (/pulse/*)
This commit is contained in:
rafaelsideguide 2024-04-25 08:39:45 -03:00
parent 75e82869ed
commit 75597f72a1

View File

@ -14,6 +14,14 @@ const socialMediaBlocklist = [
'telegram.org',
];
const allowedUrls = [
'linkedin.com/pulse'
];
export function isUrlBlocked(url: string): boolean {
if (allowedUrls.some(allowedUrl => url.includes(allowedUrl))) {
return false;
}
return socialMediaBlocklist.some(domain => url.includes(domain));
}