Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Page element selection method and device, storage medium and equipment

A page element and element technology, applied in the field of page processing, can solve problems such as missing page content

Pending Publication Date: 2021-03-30
BEIJING GRIDSUM TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the above method, if the element selected by the user selects an element with a special style, for example, the element selected by the user is a style set only for the cell in the cell, such as a highlight style, then the When extracting page content, the element itself can only be selected according to the selected element. Elements belonging to the same type as the cell in the page will not be selected, so that the contents of other cells corresponding to the same type of element will not be extracted. Causes the extracted page content to be missing

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
  • Page element selection method and device, storage medium and equipment
  • Page element selection method and device, storage medium and equipment
  • Page element selection method and device, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0062] figure 1 As shown, it is a flowchart of a page element selection method provided according to an implementation manner of the present disclosure, as shown in figure 1 As shown, the method includes:

[0063] In S11, the style and tag name corresponding to the target element are obtained.

[0064] Wherein, the target element may be an element selected by the user on the current page, such as a text, a link, and the like. For example, when the user selects a page element on the page with the mouse, a "mouseout" event may be triggered to obtain the style corresponding to the target element. The style may be a css style sheet represented by a class. Suc...

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 relates to a page element selection method and device, a storage medium and equipment. The method comprises the steps of obtaining a style and a tag name corresponding to a target element; obtaining a style of a target page element with the same label name and the same hierarchy as the target element in a page, the element with the same hierarchy in the page being an element in the same hierarchy in a DOM tree corresponding to the page; determining a target style set corresponding to the target element according to the style corresponding to the element with the same style as thetarget element in the target page elements; and determining a style path according to a target style set corresponding to the target element, determining an element pointed by the style path as a similar element of the target element, and selecting the similar element. Therefore, the page elements can be accurately selected, so that the page content can be accurately extracted.

Description

technical field [0001] The present disclosure relates to the field of page processing, and in particular, to a page element selection method, device, storage medium and equipment. Background technique [0002] With the rise of webpage technology, the application of extracting part of content in the webpage to analyze the webpage is more and more extensive. In the prior art, when the user extracts part of the content in the page, the user usually needs to manually write the extraction path. In order to further facilitate user operations and reduce the complexity of page content extraction, the user can select an element in the page to extract the content of similar elements in the page according to the style of the element. In the above method, if the element selected by the user selects an element with a special style, for example, the element selected by the user is a style set only for the cell in the cell, such as a highlight style, then the When extracting page content...

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): G06F16/958
CPCG06F16/958G06F16/986
Inventor 满悦
Owner BEIJING GRIDSUM TECH CO LTD
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
Eureka Blog
Learn More
PatSnap group products