mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 18:10:46 +08:00
Merge pull request #762 from mendableai/feat/developer-notion-special-case
fixed developer.notion special case
This commit is contained in:
commit
5c42dbc0a8
@ -5,7 +5,7 @@ export async function handleCustomScraping(
|
|||||||
url: string
|
url: string
|
||||||
): Promise<{ scraper: string; url: string; waitAfterLoad?: number, pageOptions?: { scrollXPaths?: string[] } } | null> {
|
): Promise<{ scraper: string; url: string; waitAfterLoad?: number, pageOptions?: { scrollXPaths?: string[] } } | null> {
|
||||||
// Check for Readme Docs special case
|
// 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(
|
Logger.debug(
|
||||||
`Special use case detected for ${url}, using Fire Engine with wait time 1000ms`
|
`Special use case detected for ${url}, using Fire Engine with wait time 1000ms`
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user