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

Max crawl depth not working #475

Open
sasa-andjelic-nqode opened this issue Sep 18, 2024 · 0 comments
Open

Max crawl depth not working #475

sasa-andjelic-nqode opened this issue Sep 18, 2024 · 0 comments

Comments

@sasa-andjelic-nqode
Copy link

When I start a crawl without setting the max crawl depth, the crawler scans for links on all pages.
But when I set the max crawl depth to some int value (for example 100), the crawler only scans the first layer of links and crawls those.

I took a peek into Crawler->addToDepthTree() implementation and I see that if the max depth is null any url is instanciated as node. The rest of the conditions inside the method implementation do not cover a case for child links.
I also didn't notice any increment for current depth of the link.

It looks like max depth was never implemented completely. Is it that or am I perhaps missing something obvious which I should pay attention to?

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

No branches or pull requests

1 participant