# US 2013/0155463 A1 · Method for selecting user desirable content from web pages

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0155463 A1
- Document ID: US20130155463A1
- Status: Published application
- Kind: A1
- Application number: 13/812,104
- Filed: 2009-07-30
- Published: 2013-06-20
- Earliest claimed: 2009-07-30
- Inventors: Jian-Ming Jin; Liwei Zheng; Xi Wang Zhuang; Suk Hvan Lim; Hui-Man Hou
- Web page: https://patentgrep.com/patent/US20130155463A1

## CPC

- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G06F 3/12: Digital output to print unit {, e.g. line printer, chain printer}
- G06F 40/221: Parsing markup language streams (streaming G06F40/149)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for selecting user desirable content from web pages includes receiving a web page, representing the web page as a Document Object Module (DOM) tree, computing visual and coordinate information of each Document Object Module (DOM) node within the Document Object Module (DOM) tree, determining the desirable Document Object Module (DOM) path, determining the desirable Document Object Module (DOM) node from the desirable Document Object Module (DOM) path, and selecting a single Document Object Module (DOM) node with the highest final score. The single Document Object Module (DOM) node with the highest final score is selected as the user desirable content of the webpage.

## Claims

### Claim 1

A method for selecting user desirable content from web pages comprising:
receiving a web page;
representing the web page as a Document Object Module (DOM) tree;
computing visual and coordinate information of each Document Object Module (DOM) node within the Document Object Module (DOM) tree;
determining the desirable Document Object Module (DOM) path;
determining the desirable Document Object Module (DOM) node from the desirable Document Object Module (DOM) path; and
selecting a single Document Object Module (DOM) node with the highest final score.

### Claim 2 (depends on 1)

The method according to claim 1 in which computing visual and coordinate information of each Document Object Module (DOM) node within the Document Object Module (DOM) tree further comprises disregarding invisible Document Object Module (DOM) nodes.

### Claim 3 (depends on 1)

The method according to claim 1, in which determining the desirable Document Object Module (DOM) path is performed by scoring nodes within the web page.

### Claim 4 (depends on 3)

The method according to claim 3, in which scoring nodes within the web page is performed by assigning a score to a node within the Document Object Module (DOM) tree based on user configured rules.

### Claim 5 (depends on 4)

The method according to claim 4, in which the user configured rules are based on considerations which may comprise at least one of a text length within a node, a link to text ratio of a node, a highlighted text to un-highlighted text ratio of a node; a bounding box area of a node, a horizontal position of a bounding box within a node, a vertical position of a bounding box within a node, the number of child nodes associated with a node, and combinations thereof.

### Claim 6 (depends on 1)

The method according to claim 1, in which determining the desirable Document Object Module (DOM) path further comprises the steps of:
setting the root node of the web page as a current Document Object Module (DOM) node;
adding the current Document Object Module (DOM) nodes into the desirable Document Object Module (DOM) path; and
determining whether the current Document Object Module (DOM) node is a leaf node.

### Claim 7 (depends on 6)

The method according to claim 6, in which, if the Document Object Module (DOM) node is not a leaf node, a score is computed and assigned to each Document Object Module (DOM) node within the Document Object Module (DOM) tree and the child Document Object Module (DOM) node with the maximum score is set as the current Document Object Module (DOM) node.

### Claim 8 (depends on 6)

The method according to claim 6, in which, if the Document Object Module (DOM) node is a leaf node, that Document Object Module (DOM) node is used as the root Document Object Module (DOM) node for purposes of determining the desirable Document Object Module (DOM) node from the desirable Document Object Module (DOM) path.

### Claim 9 (depends on 1)

The method according to claim 1, in which determining the desirable Document Object Module (DOM) node further comprises the steps of:
setting the first node in the desirable Document Object Module (DOM) path as a first node;
setting the second node in the desirable Document Object Module (DOM) path as a second node; and
determining whether rules for determining the desirable Document Object Module (DOM) node have been satisfied.

### Claim 10 (depends on 9)

The method according to claim 9, in which, if the rules for determining the desirable Document Object Module (DOM) node have been satisfied, the first node is set as the desirable Document Object Module (DOM) node.

### Claim 11 (depends on 9)

The method according to claim 9, in which, if the rules for determining the desirable Document Object Module (DOM) node have not been satisfied, the second node in the desirable Document Object Module (DOM) path is set as the first node, and the next node following the second node on the Document Object Module (DOM) path is set as the second node.

### Claim 12 (depends on 1)

The method according to claim 1, further comprising outputting the desirable Document Object Module (DOM) node.

### Claim 13

A method of selecting user desirable content from a web page for printing comprising:
receiving a web page;
representing the web page as a Document Object Module (DOM) tree;
computing visual and coordinate information of each Document Object Module (DOM) node within the Document Object Module (DOM) tree;
determining the desirable Document Object Module (DOM) path;
determining the desirable Document Object Module (DOM) node from the desirable Document Object Module (DOM) path; and
selecting a single Document Object Module (DOM) node with the highest final score; and
outputting the user desirable content to a printer for printing.

### Claim 14 (depends on 13)

The method according to claim 13, in which determining the desirable Document Object Module (DOM) path is performed by scoring nodes within the web page.

### Claim 15

A web page analysis device for selection of the user desirable content of a web page comprising:
a memory for storing a user desirable content selection algorithm for selection of user desirable content from a web page;
a processing unit for accepting the user desirable content selection algorithm from the memory and executing the user desirable content selection algorithm; and
a network adapter for receiving a web page from a web page server.
