Web Crawler in Grails to calculate page depth

2019-07-27 05:42发布

I am making a crawler application. I wish to crawl websites and find the depth of the webpages retrieved. I read about different crawling and parsing tools but to no avail. None of them seem to provide support to calculate the depth. I am also unsure about which crawler tool to use which can get closest to desired functionality. Any help is appreciated.

1条回答
趁早两清
2楼-- · 2019-07-27 06:02

The most important thing is probably the mapping of your Domain (and not the parser).

Because, if you are using a tree (More information on wikipedia), it is easy to calculate the depth (the min depth) of your URL.

Hope this helps.

查看更多
登录 后发表回答