Website Content Crawler avatar

Website Content Crawler

Try for free

No credit card required

View all Actors
Website Content Crawler

Website Content Crawler

apify/website-content-crawler
Try for free

No credit card required

Crawl websites and extract text content to feed AI models, LLM applications, vector databases, or RAG pipelines. The Actor supports rich formatting using Markdown, cleans the HTML, downloads files, and integrates well with 🦜🔗 LangChain, LlamaIndex, and the wider LLM ecosystem.

Do you want to learn more about this Actor?

Get a demo
TO

Crawling is taking lot of time because of some exception and credits are getting exhausted

Closed

atomicwork opened this issue
4 months ago

below is the exception that we get in the logs ReferenceError: fetch is not defined 2024-06-04T08:26:11.549Z at a. (https://www.browsealoud.com/modules/3.9.3/browsealoud.js:1:56663) 2024-06-04T08:26:11.552Z at Generator.next () 2024-06-04T08:26:11.554Z at p (https://www.browsealoud.com/modules/3.9.3/browsealoud.js:1:53571) 2024-06-04T08:26:11.555Z at n (https://www.browsealoud.com/modules/3.9.3/browsealoud.js:1:53755) 2024-06-04T08:26:11.557Z at https://www.browsealoud.com/modules/3.9.3/browsealoud.js:1:53833 2024-06-04T08:26:11.559Z at new Promise () 2024-06-04T08:26:11.561Z at a. (https://www.browsealoud.com/modules/3.9.3/browsealoud.js:1:53714) 2024-06-04T08:26:11.563Z at a. (https://www.browsealoud.com/modules/3.9.3/browsealoud.js:1:56842) 2024-06-04T08:26:11.565Z at a. (https://www.browsealoud.com/modules/3.9.3/browsealoud.js:1:58782) 2024-06-04T08:26:11.568Z at Generator.next () 2024-06-04T08:26:11.570Z

and the actor is stuck in fetching the content

jindrich.bar avatar

Hello and thank you for your interest in this Actor!

The fetch is not defined error is caused by the JSDOM crawler type - it is one of the well-known issues with the jsdom library (see the tracking GitHub issue here). If you want to scrape worry-free, I suggest switching to one of the Playwright based crawlers. Or, if performance/economy is a priority for you, you can try the Raw HTTP Client (Cheerio). This is even faster than jsdom, but it doesn't load the on-page Javascript whatsoever.

Looking at the website you're trying to scrape, it seems that it might work with Cheerio (although you'd better check the output manually for the first few pages).

I'll close this issue now, but feel free to ask additional questions if you have any. Cheers!

Developer
Maintained by Apify
Actor metrics
  • 3.8k monthly users
  • 544 stars
  • 99.9% runs succeeded
  • 3.4 days response time
  • Created in Mar 2023
  • Modified 1 day ago