Website Content Crawler avatar
Website Content Crawler

Pricing

Pay per usage

Go to Store
Website Content Crawler

Website Content Crawler

Developed by

Apify

Apify

Maintained by Apify

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.

3.9 (41)

Pricing

Pay per usage

1552

Total users

60K

Monthly users

7.7K

Runs succeeded

>99%

Issues response

7.8 days

Last modified

4 days ago

TO

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

Closed

atomicwork opened this issue
a year 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!