简体   繁体   中英

Crawler4j calculate depth of a page

I am developing a web crawler using groovy & grails and mongodb Is there any way to calculate depth of a page using crawler4j? I know I can limit upto what depth I want to crawl but haven't come across anything that suggests how to calculate depth of the page. Thanks.

Crawler4j计算页面深度。

webUrl.getDepth();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM