Website Content Crawler avatar

Website Content Crawler

Try for free

No credit card required

Go to Store
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
CK

Decode non-UTF-8 text in crawlerType cheerio

Open

consoling_knock opened this issue
10 months ago

When using 'cheerio' mode to crawl a non-UTF-8 encoded page, the page content is not decoded correctly (the encoding can be obtained from the html header charset part). However, the decoding is correct in playwright:* mode. For example: http://finance.ce.cn/stock/gsgdbd/202207/01/t20220701_37824007.shtml

jindrich.bar avatar

Hello and thank you for your interest in this Actor!

This seems to be an issue with our underlying open-source library Crawlee and the way it determines document encoding in case the server doesn't send a Content-Encoding HTTP header. I already submitted an issue in Crawlee's GitHub repo here. While we exactly know where the issue is (and how to fix it), the "correct" way of fixing it is quite hard.

I'll take a look at it soon and will let you know once there are any changes.

Thank you again (and sorry for the inconvenience)!

Developer
Maintained by Apify

Actor Metrics

  • 3.8k monthly users

  • 721 stars

  • >99% runs succeeded

  • 2.2 days response time

  • Created in Mar 2023

  • Modified 2 days ago