Merge pull request #762 from mendableai/feat/developer-notion-special-case

fixed developer.notion special case
This commit is contained in:
Rafael Miller 2024-10-11 11:08:48 -03:00 committed by GitHub
commit 5c42dbc0a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ export async function handleCustomScraping(
url: string
): Promise<{ scraper: string; url: string; waitAfterLoad?: number, pageOptions?: { scrollXPaths?: string[] } } | null> {
// Check for Readme Docs special case
if (text.includes('<meta name="readme-deploy"')) {
if (text.includes('<meta name="readme-deploy"') && !url.includes('developers.notion.com')) {
Logger.debug(
`Special use case detected for ${url}, using Fire Engine with wait time 1000ms`
);