Web page segmentation method and web page segmentation device
暂无分享,去创建一个
The invention relates to an internet technology and provides a web page segmentation method and a web page segmentation device aiming at the defects that the prior page segmentation technology damagesa web page structure and has low segmentation efficiency. The web page segmentation method comprises the steps of DOM tree construction, venation aggregation construction and combination, wherein thestep of DOM tree construction comprises constructing a DOM tree corresponding to an original web page; and the step of venation aggregation construction comprises respectively constructing venation aggregations corresponding to each leaf node of the DOM tree, and the venation aggregation contains a root node, the leaf node and all middle nodes between the root node and the leaf node of the DOM tree. The invention also provides the web page segmentation device which carries out web page segmentation by constructing the DOM tree and according to the DOM tree. The web page segmentation method and the web page segmentation device can greatly reduce the damage of a web page structure caused by segmentation operation. In addition, the technical scheme provided by the invention is simple to realize, thereby having higher efficiency.