Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop crawling #42

Open
Muneem opened this issue Feb 20, 2017 · 5 comments
Open

stop crawling #42

Muneem opened this issue Feb 20, 2017 · 5 comments

Comments

@Muneem
Copy link

Muneem commented Feb 20, 2017

Is it possible to force crawler to stop its crawling. I have condition that only 500 pages should be crawled when that condition is met ti want to stop this crawler

@amoilanen
Copy link
Owner

This is not possible at the moment, but should be quite easy to implement. I will try to add this feature in the near future.

@Muneem
Copy link
Author

Muneem commented Feb 21, 2017

yes this feature is very good and it should be added

@Cool-Programmer
Copy link

Any news on this?

@fnmendez
Copy link

Has been couple years so... bump. Must have!

thank you

@fnmendez
Copy link

I found a workaround to stop the crawler.

Once your condition to stop is met, just set the shouldCrawl function to return false always.

crawler.shouldCrawl = () => false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants