Method and device for extracting web page text
A web page and text technology, applied in the network field, can solve the problems such as the inability to timely and accurately extract the web page text, and the inability of users to maintain the template rules in a timely and accurate manner. Effect
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2009-04-15
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The invention relates to the field of network technology, in particular to a method and device for extracting webpage text. Background technique
[0002] With the increasingly fierce competition in the market, if the content of the web pages of major websites only depends on the content of the web pages of this site, the content will appear monotonous, which will not increase the click-through rate, nor can it increase the popularity of the site. In order to increase the click-through rate, it is necessary to diversify the content of the webpage, add more hot topics, etc., and the content of the webpage is reproduced from this. Manual reprinting has slow update speed, low efficiency, and consumes a lot of manpower and financial resources. Therefore, crawler software has become the leading software for reprinting webpage content to quickly and accurately extract the text of webpages.
[0003] At present, the methods for crawling software to extract web...
Examples
Embodiment Construction
[0021] The invention provides a method for extracting the text of a web page: divide the web page into several page segments, calculate the weight of each page segment according to the contents of the page segments such as non-link characters, link characters, pictures, attachments, advertisements, etc., the content of the page segment The higher the popularity, the greater the weight; then, the page segment with the largest weight is extracted as the webpage text; thus, after reprinting the content of the webpage, the user's click rate is higher, which is conducive to improving the popularity of this website. By adopting the method for extracting the text of the webpage provided by the invention, even if the template of the webpage changes, it can quickly and accurately extract the text of the popular webpage and maintain the diversity of the content of the webpage.
[0022] The technical solution in the present invention will be clearly and completely described below in conju...