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
NY

Avoid scraping pages when redirected

Open

AnyTeam opened this issue
2 months ago

Currently, if the crawler attempts to scrape a page that ultimately redirects the user, the redirected page is scraped. Is it possible to opt-out of this behavior and avoid scraping pages that redirect the user, or any other non-200 status codes?

Oscardz avatar

Hello,

Thank you for trying the Website Content Crawler! Yes, you can control which URLs are included in the crawl using the ‘includeUrlGlob’ input variable. For more details, please refer to our input definitions page: https://apify.com/apify/website-content-crawler/input-schema

Let me know if you need any further adjustments!

NY

AnyTeam

a month ago

Hi Oscar-- sorry, what we're looking to do is avoid scraping URLs with specific response codes. Currently, if a page 404s, 500s, etc, the content is still scraped and returned by the crawler. Can those situations be avoided without knowing ahead of time which URLs to exclude from the run?

Oscardz avatar

Hello, unfortunately, that's not possible. As a workaround, after the run is finished, you can filter the content of the pages and remove all the pages that have error codes in the 'httpStatusCode' attribute.

Developer
Maintained by Apify
Actor metrics
  • 3.8k monthly users
  • 635 stars
  • 100.0% runs succeeded
  • 2.7 days response time
  • Created in Mar 2023
  • Modified 7 days ago