开发者

Is there some algorithm to compare the DOM similarity of different pages?

开发者 https://www.devze.com 2022-12-24 14:48 出处:网络
Has anyone som开发者_开发问答e experience about this?You could first get all DOM elements and then remove their content and attributes. After the content has been removed you could convert all tags to

Has anyone som开发者_开发问答e experience about this?


You could first get all DOM elements and then remove their content and attributes. After the content has been removed you could convert all tags to lower or uppercase, then you can use any of the well known string matching algorithms like Knuth-Morris-Pratt string matching

0

精彩评论

暂无评论...
验证码 换一张
取 消