Method for extracting content of web page

A webpage and text technology, applied in the field of webpage text extraction, can solve the problems of inability to extract precision, adaptability of extraction speed, flexibility and meet actual needs at the same time, achieve the effect of simple and intuitive features, low maintenance cost, and fast implementation speed

Active Publication Date: 2010-06-09
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF3 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the lack of full use of the essential characteristics of web pages, these methods cannot meet the actual needs in terms of extraction accuracy, extraction speed, method adaptability, and flexibility when extracting large-scale data from a large number of different information sources.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for extracting content of web page
  • Method for extracting content of web page
  • Method for extracting content of web page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, a web page text extraction method of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0044] The webpage to be extracted carries a lot of information, including text title, text source, text release time, text, author and other information, as well as other noise information, such as navigation information, advertisement information, copyright information and related links. Preferably, there are few or no punctuation marks (especially commas and periods) in the noise information such as navigation information in the webpage, while there are more punctuation marks (especially commas and periods) in the text information. For example, a news web pag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for extracting content of a web page, which comprises the following steps: 1) performing a paragraph merger operation on all characterization nodes in a DOM tree constructed by the web page; 2) optionally selecting a node from a node set bearing the longest paragraph, backtracking from the selected node to a root node of the DOM tree, calculating the difference of punctuation amounts of contexts, which are born between a father node of each node and a subtree thereof and between the node and a subtree thereof, and forming an increment sequence in turn; 3) searching the increment of a first 0 value or a first increment smaller than a former adjacent increment and smaller than or equal to a latter adjacent increment in the increment sequence; 4) if the increment is found, determining that the context born by the corresponding node of the increment and the subtree thereof is the content of the web page; 5), if the increment is not found, determining that the context born by the root node of the increment and the subtree thereof is the content of the web page. The method for extracting the content of the web page has the advantages of high extraction precision, high implement speed, low maintenance cost and excellent adaptability.

Description

technical field [0001] The invention relates to the technical field of network information extraction, in particular to a web page text extraction method. Background technique [0002] The rapid development of the network has brought massive network information, how to extract the required network information has attracted more and more attention. Network information extraction refers to the extraction of structured information from semi-structured documents such as web pages. These pages are often automatically generated by server-side applications. The structured information generated by network information extraction provides the most basic analysis data for important network applications such as network mining and network retrieval. Therefore, the research on network information extraction methods has very important practical significance. [0003] The objects of network information extraction can be divided into two categories: one is to extract specific knowledge in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
Inventor 郭岩丁国栋张刚
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products