Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Update single_url.ts
rafaelsideguide5ae4d1caf5f5
diff --git a/apps/api/src/scraper/WebScraper/single_url.ts b/apps/api/src/scraper/WebScraper/single_url.tsindex 490d74e98..d396fad4b 100644--- a/apps/api/src/scraper/WebScraper/single_url.ts+++ b/apps/api/src/scraper/WebScraper/single_url.ts@@ -257,12 +257,22 @@ async function handleCustomScraping(text: string,url: string): Promise<FireEngineResponse | null> {+ // Check for Readme Docs special caseif (text.includes('<meta name="readme-deploy"')) {console.log(`Special use case detected for ${url}, using Fire Engine with wait time 1000ms`);return await scrapWithFireEngine(url, 1000);}++ // Check for Google Drive PDF links in the raw HTML+ const googleDrivePdfPattern = /https:\/\/drive\.google\.com\/file\/d\/[^\/]+\/view/;+ const googleDrivePdfLink = text.match(googleDrivePdfPattern);+ if (googleDrivePdfLink) {+ console.log(`Google Drive PDF link detected for ${url}: ${googleDrivePdfLink[0]}`);+ return await scrapWithFireEngine(url, 1000);+ }+return null;}