verbal-limeV
Apify & Crawleeβ€’3y agoβ€’
12 replies
verbal-lime

How to close the crawler from a RequestHandler?

Hey folks, I want to stop the scraper/crawler if I hit some arbritrary condition. Is there a way that I can do so from inside the RequestHandler? the closest function that I found is crawler.teardown() but it cant be executed inside a handler,
Was this page helpful?