Web Crawler in Grails to calculate page depth

浪尽此生 提交于 2019-12-11 06:28:26

问题


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:


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.



来源:https://stackoverflow.com/questions/24416214/web-crawler-in-grails-to-calculate-page-depth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!