This invention belongs to the field of
computer technology and discloses a method, apparatus, device, and storage medium for generating webpage structural fingerprints. The method includes:
parsing the current webpage into a DOM tree and obtaining the attribute features of each node in the DOM tree and the node relationship chain formed by each node; calculating the hash weight of each node based on the node relationship chain; generating the hash value of each node according to its attribute features; and generating the webpage structural
fingerprint of the current webpage based on its hash weight and hash value. By
parsing the webpage structure and generating fingerprints through the above method, differentiated webpage structures can be achieved, facilitating the aggregation of pages with similar structures and a high risk of
cheating, improving the clustering efficiency of webpage structures, shortening the
perception time of webpage generation groups, and providing data support for subsequent
rapid detection of
cheating website groups and prevention of
mass piracy.