[go: up one dir, main page]

CN104036011B - Webpage element display method and browser device - Google Patents

Webpage element display method and browser device Download PDF

Info

Publication number
CN104036011B
CN104036011B CN201410287483.8A CN201410287483A CN104036011B CN 104036011 B CN104036011 B CN 104036011B CN 201410287483 A CN201410287483 A CN 201410287483A CN 104036011 B CN104036011 B CN 104036011B
Authority
CN
China
Prior art keywords
webpage
file
web page
information
address information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410287483.8A
Other languages
Chinese (zh)
Other versions
CN104036011A (en
Inventor
杭程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
360 Technology Group Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410287483.8A priority Critical patent/CN104036011B/en
Publication of CN104036011A publication Critical patent/CN104036011A/en
Priority to PCT/CN2015/082006 priority patent/WO2015196954A1/en
Application granted granted Critical
Publication of CN104036011B publication Critical patent/CN104036011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种网页元素的显示方法以及浏览器装置。其中方法包括:接收当前网页中网页元素的查找命令;根据所述网页元素的查找命令,获取所述当前网页的源代码信息;从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。利用本发明提供的方案,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源。

Figure 201410287483

The invention discloses a method for displaying webpage elements and a browser device. The method includes: receiving a search command for web page elements in the current web page; obtaining source code information of the current web page according to the search command for the web page element; extracting a specified tag and a specified tag from the source code information of the current web page The download address information recorded in the source information field of the web page element; according to the type of the specified label, the web page elements corresponding to different types of specified labels and their download address information are displayed. With the solution provided by the present invention, the user can view all the webpage elements of the webpage at a glance by triggering a search command, which is convenient to operate, and facilitates the user to search for the required resources in batches in numerous and complicated webpage resources.

Figure 201410287483

Description

网页元素的显示方法以及浏览器装置Web page element display method and browser device

技术领域technical field

本发明涉及互联网技术领域,具体涉及一种网页元素的显示方法以及浏览器装置。The present invention relates to the field of Internet technologies, in particular to a method for displaying webpage elements and a browser device.

背景技术Background technique

随着互联网技术的发展,各种网站提供的网页内容越来越丰富。以各类微博或视频网站为例,在这类网站的一个网页中可能提供了多种网络资源以供在线观看,包括音视频文件、图片文件以及其它提供下载的文件等各类网页元素。用户在访问含有这些网页元素的网页时,网页不能批量或分类批量显示所有的网页元素,使得用户不能一目了然的查看所有的网页资源;当用户对这些网络资源具有下载需求时,现有技术也没能给用户提供便捷的下载方式。With the development of Internet technology, the web content provided by various websites has become more and more abundant. Taking various microblog or video websites as an example, a webpage of such a website may provide various network resources for online viewing, including various webpage elements such as audio and video files, picture files, and other files provided for download. When a user visits a web page containing these web page elements, the web page cannot display all web page elements in batches or in batches, so that the user cannot view all web page resources at a glance; when the user has download requirements for these network resources, the existing technology does not. It can provide users with a convenient way to download.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的网页元素的显示方法以及浏览器装置。In view of the above problems, the present invention is proposed in order to provide a method for displaying web page elements and a browser device that overcome the above problems or at least partially solve the above problems.

根据本发明的一个方面,提供了一种网页元素的显示方法,包括:According to an aspect of the present invention, a method for displaying webpage elements is provided, including:

接收当前网页中网页元素的查找命令;Receive a search command for web page elements in the current web page;

根据所述网页元素的查找命令,获取所述当前网页的源代码信息;Obtain the source code information of the current webpage according to the search command of the webpage element;

从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;Extract the specified tag and the download address information recorded in the source information field of the web page element in the specified tag from the source code information of the current web page;

依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。According to the type of the specified tag, the webpage elements corresponding to the specified tags of different types and their download address information are displayed.

根据本发明的另一方面,提供了一种浏览器装置,包括:According to another aspect of the present invention, a browser device is provided, comprising:

命令接收模块,适于接收当前网页中网页元素的查找命令;The command receiving module is adapted to receive the search command of the webpage element in the current webpage;

源代码信息获取模块,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息;a source code information acquisition module, adapted to acquire the source code information of the current web page according to the search command of the web page element;

信息提取模块,适于从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;an information extraction module, adapted to extract a specified tag and the download address information recorded in the source information field of the web page element in the specified tag from the source code information of the current web page;

显示模块,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。The display module is adapted to display webpage elements corresponding to different types of designated tags and their download address information according to the type of designated tags.

根据本发明提供的上述方案,浏览器在接收到用户触发的网页元素的查找命令之后,获取网页的源代码信息,从源代码信息中提取指定标签以及指定标签内的源信息字段中记录的下载地址信息,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。利用本发明提供的方案,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源。According to the above solution provided by the present invention, after receiving the search command of the webpage element triggered by the user, the browser obtains the source code information of the webpage, extracts the specified tag and the download recorded in the source information field in the specified tag from the source code information. Address information, according to the type of the specified label, the webpage elements corresponding to different types of specified labels and their download address information are displayed. With the solution provided by the present invention, the user can view all the webpage elements of the webpage at a glance by triggering a search command, which is convenient to operate, and facilitates the user to search for the required resources in batches in numerous and complicated webpage resources.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1示出了根据本发明一个实施例的网页元素的显示方法的流程图;FIG. 1 shows a flowchart of a method for displaying webpage elements according to an embodiment of the present invention;

图2a示出了根据本发明另一个实施例的网页元素的显示方法的流程图;Fig. 2a shows a flowchart of a method for displaying webpage elements according to another embodiment of the present invention;

图2b示出了根据本发明另一个实施例的网页元素的显示方法的显示界面示意图;Fig. 2b shows a schematic diagram of a display interface of a method for displaying webpage elements according to another embodiment of the present invention;

图3示出了根据本发明又一个实施例的网页元素的显示方法的流程图;3 shows a flowchart of a method for displaying webpage elements according to yet another embodiment of the present invention;

图4示出了根据本发明一个实施例的浏览器装置的功能结构框图;FIG. 4 shows a functional structural block diagram of a browser device according to an embodiment of the present invention;

图5示出了根据本发明另一个实施例的浏览器装置的功能结构框图;FIG. 5 shows a functional structural block diagram of a browser device according to another embodiment of the present invention;

图6示出了根据本发明另一个实施例的浏览器装置的功能结构框图。FIG. 6 shows a functional structural block diagram of a browser device according to another embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

图1示出了根据本发明一个实施例的网页元素的显示方法的流程图。如图1所示,该方法包括如下步骤:FIG. 1 shows a flowchart of a method for displaying webpage elements according to an embodiment of the present invention. As shown in Figure 1, the method includes the following steps:

步骤S100,接收当前网页中网页元素的查找命令。Step S100, receiving a search command for a webpage element in the current webpage.

本发明实施例中,浏览器提供有查找网页中网页元素的功能选项或功能按钮。具体地,可以在浏览器的菜单选项中添加查找网页元素的功能选项或者在浏览器的网页右键属性中添加查找网页元素的功能选项,还可以在浏览器上添加查找网页元素的功能按钮。用户通过选择该功能选项或点击该功能按钮触发网页元素的查找命令。网页元素包含但不仅限于音频文件、视频文件、图片、脚本等。In the embodiment of the present invention, the browser is provided with function options or function buttons for searching webpage elements in the webpage. Specifically, a functional option for finding web page elements can be added to the menu options of the browser, or a functional option for finding web page elements can be added to the right-click property of the browser, and a functional button for finding web page elements can also be added to the browser. The user triggers the search command of the webpage element by selecting the function option or clicking the function button. Web page elements include but are not limited to audio files, video files, pictures, scripts, etc.

在浏览器同时加载了多个标签页的情况下,网页元素的查找命令的适用范围可以是当前处于焦点的标签页,即这里的当前网页指的是当前浏览器展现给用户的网页,所述的查找命令用于查找当前处于焦点的标签页中的网页元素;网页元素的查找命令的适用范围也可以是当前浏览器加载的所有标签页,即这里的当前网页包含当前浏览器加载的所有网页,所述的查找命令用于查找当前浏览器加载的所有网页中的网页元素。In the case where the browser loads multiple tab pages at the same time, the applicable scope of the search command for web page elements may be the tab page currently in focus, that is, the current web page here refers to the web page displayed to the user by the current browser. The find command is used to find the web page element in the tab page currently in focus; the application scope of the search command of the web page element can also be all the tab pages loaded by the current browser, that is, the current web page here contains all the web pages loaded by the current browser. , the search command is used to search for web page elements in all web pages loaded by the current browser.

步骤S101,根据网页元素的查找命令,获取当前网页的源代码信息。Step S101: Acquire source code information of the current web page according to the search command of the web page element.

浏览器在接收到用户触发的网页元素的查找命令之后,获取当前网页的源代码信息。这里的源代码信息是指网页的HTML(超文本标记语言)代码。After receiving the search command of the webpage element triggered by the user, the browser obtains the source code information of the current webpage. The source code information here refers to the HTML (Hypertext Markup Language) code of the web page.

步骤S102,从当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。Step S102, extracting the specified tag and the download address information recorded in the source information field of the web page element in the specified tag from the source code information of the current web page.

网页的源代码信息是由HTML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。网页的源代码信息的结构包括头部(Head)、主体(Body)两大部分,其中头部描述浏览器所需的信息,而主体则包含所要说明的具体内容。本发明实施例中,主要在源代码的主体部分提取与网页元素有关的指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。The source code information of a web page is a descriptive text composed of HTML commands, which can describe text, graphics, animations, sounds, tables, links, and so on. The structure of the source code information of a web page includes two parts: a head (Head) and a body (Body), wherein the head describes the information required by the browser, and the body contains the specific content to be explained. In the embodiment of the present invention, the designated tag related to the webpage element and the download address information recorded in the source information field of the webpage element in the designated tag are mainly extracted from the main body of the source code.

可选地,指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。Optionally, the specified tags include: at least one of <embed> tags, <img> tags, <script> tags, <audio> tags, <video> tags, and <object> tags.

步骤S103,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。Step S103 , displaying webpage elements corresponding to different types of designated tags and their download address information according to the type of designated tags.

本发明实施例对指定标签进行分类,按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。可选地,依据指定标签的类型显示当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。The embodiment of the present invention classifies the designated tags, and displays webpage elements and their download address information in batches according to the type of designated tags. Optionally, the webpage elements corresponding to different types of designated tags in all webpages currently loaded by the browser and their download address information are displayed according to the type of the designated tags.

本发明对指定标签的分类不做具体限定,举例来说,<embed>标签、<audio>标签和<video>标签作为流媒体文件的标签可以归类为同一类型:流媒体文件,但也可以分别归类为三个类型:Flash文件、音频和视频。<img>标签归类为图片;<script>标签归类为脚本;<object>标签归类为嵌入对象。具体地,<object>标签也可根据实际嵌入的文件类型进行归类,如果嵌入的文件类型为视频文件,那么<object>标签与<video>标签归为同一类型,依此类推。The present invention does not specifically limit the classification of the specified tags. For example, the <embed> tag, the <audio> tag and the <video> tag can be classified into the same type as the tags of streaming media files: streaming media files, but also They are categorized into three types: Flash files, audio and video. <img> tags are categorized as images; <script> tags are categorized as scripts; <object> tags are categorized as embedded objects. Specifically, the <object> tag can also be classified according to the actual embedded file type. If the embedded file type is a video file, the <object> tag and the <video> tag are classified into the same type, and so on.

根据本实施例提供的上述方法,浏览器在接收到用户触发的网页元素的查找命令之后,获取网页的源代码信息,从源代码信息中提取指定标签以及指定标签内的源信息字段中记录的下载地址信息,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。利用本实施例提供的方法,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源。According to the above method provided in this embodiment, after receiving the search command of the webpage element triggered by the user, the browser obtains the source code information of the webpage, and extracts the specified tag and the information recorded in the source information field in the specified tag from the source code information. Download address information, according to the type of the specified label, the webpage elements corresponding to different types of specified labels and their download address information are displayed. With the method provided in this embodiment, the user can view all the webpage elements of the webpage at a glance by triggering a search command, which is convenient to operate, and facilitates the user to search the required resources in batches among many and complicated webpage resources.

图2a示出了根据本发明另一个实施例的网页元素的显示方法的流程图。如图2a所示,该方法包括如下步骤:Fig. 2a shows a flowchart of a method for displaying webpage elements according to another embodiment of the present invention. As shown in Figure 2a, the method includes the following steps:

步骤S200,接收当前网页中网页元素的查找命令。Step S200, receiving a search command for a webpage element in the current webpage.

本发明实施例中,浏览器提供有查找网页中网页元素的功能选项或功能按钮。具体地,可以在浏览器的菜单选项中添加查找网页元素的功能选项或者在浏览器的网页右键属性中添加查找网页元素的功能选项,还可以在浏览器上添加查找网页元素的功能按钮。用户通过选择该功能选项或点击该功能按钮触发网页元素的查找命令。网页元素包含但不仅限于音频文件、视频文件、图片、脚本等。In the embodiment of the present invention, the browser is provided with function options or function buttons for searching webpage elements in the webpage. Specifically, a functional option for finding web page elements can be added to the menu options of the browser, or a functional option for finding web page elements can be added to the right-click property of the browser, and a functional button for finding web page elements can also be added to the browser. The user triggers the search command of the webpage element by selecting the function option or clicking the function button. Web page elements include but are not limited to audio files, video files, pictures, scripts, etc.

在浏览器同时加载了多个标签页的情况下,网页元素的查找命令的适用范围可以是当前处于焦点的标签页,即这里的当前网页指的是当前浏览器展现给用户的网页,所述的查找命令用于查找当前处于焦点的标签页中的网页元素;网页元素的查找命令的适用范围也可以是当前浏览器加载的所有标签页,即这里的当前网页包含当前浏览器加载的所有网页,所述的查找命令用于查找当前浏览器加载的所有网页中的网页元素。In the case where the browser loads multiple tab pages at the same time, the applicable scope of the search command for web page elements may be the tab page currently in focus, that is, the current web page here refers to the web page displayed to the user by the current browser. The find command is used to find the web page element in the tab page currently in focus; the application scope of the search command of the web page element can also be all the tab pages loaded by the current browser, that is, the current web page here contains all the web pages loaded by the current browser. , the search command is used to search for web page elements in all web pages loaded by the current browser.

步骤S201,根据网页元素的查找命令,获取当前网页的源代码信息。Step S201: Acquire source code information of the current web page according to the search command of the web page element.

浏览器在接收到用户触发的网页元素的查找命令之后,获取当前网页的源代码信息。这里的源代码信息是指网页的HTML(超文本标记语言)代码。After receiving the search command of the webpage element triggered by the user, the browser obtains the source code information of the current webpage. The source code information here refers to the HTML (Hypertext Markup Language) code of the web page.

步骤S202,从当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。Step S202, extracting the specified tag and the download address information recorded in the source information field of the web page element in the specified tag from the source code information of the current web page.

网页的源代码信息是由HTML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。网页的源代码信息的结构包括头部(Head)、主体(Body)两大部分,其中头部描述浏览器所需的信息,而主体则包含所要说明的具体内容。本发明实施例中,主要在源代码的主体部分提取与网页元素有关的指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。The source code information of a web page is a descriptive text composed of HTML commands, which can describe text, graphics, animations, sounds, tables, links, and so on. The structure of the source code information of a web page includes two parts: a head (Head) and a body (Body), wherein the head describes the information required by the browser, and the body contains the specific content to be explained. In the embodiment of the present invention, the designated tag related to the webpage element and the download address information recorded in the source information field of the webpage element in the designated tag are mainly extracted from the main body of the source code.

可选地,指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。Optionally, the specified tags include: at least one of <embed> tags, <img> tags, <script> tags, <audio> tags, <video> tags, and <object> tags.

举例来说,从源代码信息中提取某个<img>标签如下:<img src="http://img0.bdstatic.com/static/common/widget/search_box_search/logo/logo_3b6de4c.png"style="width:119px;height:40px;"alt="到图片首页">。For example, extract a certain <img> tag from the source code information as follows: <img src="http://img0.bdstatic.com/static/common/widget/search_box_search/logo/logo_3b6de4c.png"style=" width: 119px; height: 40px; "alt=" to the first page of the picture">.

通知识别“img”获知上述信息为<img>标签,接着识别<img>标签内的源信息字段,即“src”字段,该字段记录的信息就是网页元素的下载地址信息,上述“http://img0.bdstatic.com/static/common/widget/search_box_search/log o/logo_3b6de4c.png”即为图片的下载地址信息。The notification identification "img" learns that the above information is the <img> tag, and then identifies the source information field in the <img> tag, that is, the "src" field, the information recorded in this field is the download address information of the web page element, the above "http:/ /img0.bdstatic.com/static/common/widget/search_box_search/log o/logo_3b6de4c.png” is the download address information of the image.

依据上述例子的方法,能够从网页中提取出所有网页元素的指定标签及网页元素的下载地址信息。According to the method of the above example, the designated tags of all the webpage elements and the download address information of the webpage elements can be extracted from the webpage.

步骤S203,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。Step S203, displaying webpage elements corresponding to different types of designated tags and their download address information according to the type of designated tags.

本发明实施例对指定标签进行分类,按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。具体地,本实施例可以通过弹出对话框的方式显示网页元素及其下载地址信息。在该对话框中,以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网页元素。The embodiment of the present invention classifies the designated tags, and displays webpage elements and their download address information in batches according to the type of designated tags. Specifically, in this embodiment, the webpage elements and their download address information can be displayed by means of a pop-up dialog box. In this dialog, web page elements are displayed in the form of icons of different types of designated tags or in the form of web page element thumbnails.

图2b示出了根据本发明另一个实施例的网页元素的显示方法的显示界面示意图。如图2b所示,该显示界面以对话框的方式显示出查找到的网页元素及其下载地址信息。在图2b中,指定标签归为三个类型:视频、音频和图片,表明所要提取的指定标签至少包含:<video>标签、<audio>标签和<img>标签,可选地,还可以包含:<embed>标签和<object>标签。该对话框提供了“视频”、“音频”、“图片”和“全部类型”的切换选项以供用户查询属于某一类型或全部类型的网页元素。另外,对话框还提供了标签页的下拉框,以供用户查询其它标签页的网页元素。图2b当前批量显示归类为图片的网页元素及其下载地址信息,网页元素以图标的形式进行显示,当用户将鼠标焦点置于某图标之上超过某时间阈值(例如3s)时,以缩略图的形式显示网页元素,该缩略图即为原图片的缩略图。FIG. 2b shows a schematic diagram of a display interface of a method for displaying webpage elements according to another embodiment of the present invention. As shown in Figure 2b, the display interface displays the found web page elements and their download address information in the form of a dialog box. In Figure 2b, the specified tags are classified into three types: video, audio and picture, indicating that the specified tags to be extracted include at least: <video> tag, <audio> tag and <img> tag, and optionally, can also include : <embed> tag and <object> tag. The dialog box provides switching options of "Video", "Audio", "Picture" and "All Types" for users to query web page elements belonging to a certain type or all types. In addition, the dialog also provides a drop-down box of the tab page for users to query the web page elements of other tab pages. Figure 2b currently displays the webpage elements classified as pictures and their download address information in batches. The webpage elements are displayed in the form of icons. The webpage elements are displayed in the form of thumbnails, and the thumbnails are the thumbnails of the original images.

步骤S204,接收网页元素对应的文件的下载命令。Step S204, receiving a download command of the file corresponding to the webpage element.

如图2b所示,对话框还提供了“下载选中的文件”的按钮,如果用户选中某些网页元素并点击该按钮后,则触发对应文件的下载命令。As shown in Figure 2b, the dialog box also provides a "download selected file" button. If the user selects some webpage elements and clicks the button, a download command of the corresponding file is triggered.

步骤S205,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。Step S205, according to the download address information of the webpage element, download the file corresponding to the webpage element to the designated folder.

浏览器接收到网页元素对应的文件的下载命令之后,将网页元素对应的文件下载到指定文件夹。具体地,本实施例提供了如下三种下载方式:After receiving the download command of the file corresponding to the webpage element, the browser downloads the file corresponding to the webpage element to the specified folder. Specifically, this embodiment provides the following three download modes:

(1)调用用于获取文件本地缓存路径的系统接口,并将网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取网页元素对应的文件的本地缓存路径;将本地缓存路径下存储的文件复制到指定文件夹。(1) calling the system interface for obtaining the local cache path of the file, and passing the download address information of the web page element to the system interface for obtaining the local cache path of the file, thereby obtaining the local cache path of the file corresponding to the web page element; The files stored in the local cache path are copied to the specified folder.

各种类型的浏览器都具有本地缓存,本地缓存默认安装在系统区,它存储有访问网页的某些网页资源,例如图片等。也就是说,对于图片这类网页元素,一旦网页加载完成之后,这些网页元素会被存储到本地缓存中,因此可以通过查找本地缓存路径,将本地缓存路径下的文件拷贝出来实现文件的下载。Various types of browsers have a local cache. The local cache is installed in the system area by default, and it stores certain web page resources, such as pictures, etc. for accessing web pages. That is to say, for web page elements such as pictures, once the web page is loaded, these web page elements will be stored in the local cache, so you can find the local cache path and copy the files under the local cache path to achieve file download.

可选地,本实施例利用系统提供的API函数:InternetGetCache()来获取本地缓存路径。具体地,调用InternetGetCache(),并将网页元素的下载地址作为该API函数的参数,该API函数的返回值就是存储有网页元素对应的文件的本地缓存路径;而后,将本地缓存路径下存储的网页元素对应的文件复制到指定文件夹,从而实现将文件下载到指定文件夹。Optionally, in this embodiment, the API function provided by the system: InternetGetCache() is used to obtain the local cache path. Specifically, InternetGetCache() is called, and the download address of the web page element is used as the parameter of the API function, and the return value of the API function is the local cache path where the file corresponding to the web page element is stored; The file corresponding to the webpage element is copied to the specified folder, thereby realizing the downloading of the file to the specified folder.

(2)调用浏览器内建下载器或独立于浏览器的下载器去下载地址信息对应的服务器处下载网页元素对应的文件,并将网页元素对应的文件保存到指定文件夹。(2) Invoke the built-in downloader of the browser or a downloader independent of the browser to download the file corresponding to the web page element from the server corresponding to the download address information, and save the file corresponding to the web page element to a specified folder.

对于某些音频和视频文件,以及其它不允许缓存的文件来说,可直接调用下载器去对应的服务器处下载相应文件,并将文件保存到指定文件夹。For some audio and video files, as well as other files that are not allowed to be cached, you can directly call the downloader to download the corresponding file from the corresponding server, and save the file to the specified folder.

(3)根据网页的名称和/或URL和/或网页的描述性信息,提取网页元素的特征信息;根据网页元素的特征信息,去提供下载资源的服务器处查找并下载网页元素对应的文件,将网页元素对应的文件保存到指定文件夹。(3) According to the name and/or URL of the webpage and/or the descriptive information of the webpage, extract the characteristic information of the webpage element; According to the characteristic information of the webpage element, go to the server that provides the download resource to find and download the file corresponding to the webpage element, Save the file corresponding to the webpage element to the specified folder.

对于某些音频和视频文件,所获取的下载地址信息有可能仅仅是文件中某个片段的下载地址,也有可能并不是文件真实的下载地址,例如仅为音视频的播放地址。对于这种情况,本实施例可采用重新查找提供下载资源服务器的方式下载对应的文件。For some audio and video files, the obtained download address information may only be the download address of a segment in the file, or it may not be the real download address of the file, for example, only the playback address of audio and video. In this case, in this embodiment, the corresponding file may be downloaded by re-searching for a server that provides download resources.

一般来说,在线音视频的观看网页的网页名称和/或URL和/或网页的描述性信息中记录有音视频的相关信息,例如音视频的名称、剧集信息、剧情介绍、视频分辨率等信息,利用提取关键字的方法提取音视频文件的特征信息;根据这些特征信息在搜索服务器查找相应的资源,然后将提供下载资源的服务器的URL返回给客户端,以供客户端调用下载器去提供下载资源的服务器下载相应文件,并将文件保存到指定文件夹。Generally speaking, the web page name and/or URL and/or the descriptive information of the web page for watching online audio and video records the related information of audio and video, such as the name of audio and video, episode information, plot introduction, video resolution and other information, extract the feature information of audio and video files by using the method of extracting keywords; search for corresponding resources on the search server according to these feature information, and then return the URL of the server that provides the download resources to the client, so that the client can call the downloader Go to the server that provides download resources to download the corresponding file, and save the file to the specified folder.

根据本实施例提供的上述方法,浏览器在接收到用户触发的网页元素的查找命令之后,获取网页的源代码信息,从源代码信息中提取指定标签以及指定标签内的源信息字段中记录的下载地址信息,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息,在用户触发文件的下载命令之后,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。利用本实施例提供的方法,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源;进一步的,当用户对这些网络资源具有下载需求时,通过交互界面给用户提供了便捷的下载方式。According to the above method provided in this embodiment, after receiving the search command of the webpage element triggered by the user, the browser obtains the source code information of the webpage, and extracts the specified tag and the information recorded in the source information field in the specified tag from the source code information. Download address information, according to the type of the specified label, the webpage elements corresponding to different types of specified labels and their download address information are displayed. After the user triggers the download command of the file, according to the download address information of the webpage element, the file corresponding to the webpage element is downloaded to the specified location. folder. With the method provided in this embodiment, the user can view all the web page elements of the web page at a glance by triggering a search command, which is convenient to operate, and facilitates the user to search for the required resources in batches among many and complicated web resources; further, when the user searches for When these network resources have download requirements, users are provided with a convenient download method through an interactive interface.

图3示出了根据本发明又一个实施例的网页元素的显示方法的流程图。如图3所示,该方法包括如下步骤:FIG. 3 shows a flowchart of a method for displaying webpage elements according to yet another embodiment of the present invention. As shown in Figure 3, the method includes the following steps:

步骤S300,接收当前网页中网页元素的查找命令。Step S300, receiving a search command for a webpage element in the current webpage.

步骤S301,根据网页元素的查找命令,获取当前网页的源代码信息。Step S301: Obtain source code information of the current web page according to the search command of the web page element.

步骤S302,从当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。Step S302, extracting the specified tag and the download address information recorded in the source information field of the web page element in the specified tag from the source code information of the current web page.

上述步骤S300-步骤S302的具体过程可以参见上述方法实施例的步骤S200-步骤S202,在此不再赘述。For the specific process of the above steps S300 to S302, reference may be made to the steps S200 to S202 of the above method embodiments, which will not be repeated here.

步骤S303,调用用于获取文件本地缓存路径的系统接口,并将网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取网页元素对应的文件的本地缓存路径。Step S303, calling the system interface for obtaining the local cache path of the file, and passing the download address information of the webpage element to the system interface for obtaining the local cache path of the file, thereby obtaining the local cache path of the file corresponding to the webpage element.

在获取网页元素的下载地址信息之后,调用系统提供的API函数:InternetGetCache(),并将网页元素的下载地址作为该API函数的参数,该API函数的返回值就是存储有网页元素对应的文件的本地缓存路径。After obtaining the download address information of the webpage element, call the API function provided by the system: InternetGetCache(), and use the download address of the webpage element as the parameter of the API function. The return value of the API function is the file that stores the corresponding file of the webpage element. Local cache path.

步骤S304,获取本地缓存路径下存储的文件的文件头信息,文件头信息包含文件类型。Step S304: Obtain the file header information of the file stored in the local cache path, where the file header information includes the file type.

对于在本地缓存路径下存储的文件,其文件头信息都记录有文件的相关信息,包含文件类型、文件大小信息等。以图片文件为例,通过文件头信息能够识别图片的具体格式,如JPEG、PNG等。For files stored in the local cache path, the file header information records relevant information about the file, including file type, file size information, and so on. Taking a picture file as an example, the specific format of the picture, such as JPEG, PNG, etc., can be identified through the file header information.

步骤S305,按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。Step S305 , according to the type of the specified tag and the file type, classify and display webpage elements of different types of specified tags and different file types and their download address information.

在识别出文件类型的情况下,结合指定标签的类型和文件类型,分类显示网页元素及其下载地址信息。例如,对于图片文件,可以根据文件类型做细分类,以供用户更明确地查找所需要的资源。In the case of identifying the file type, combined with the type of the specified tag and the file type, the webpage elements and their download address information are classified and displayed. For example, for image files, sub-categories can be made according to file types, so that users can find the required resources more clearly.

另外,在显示网页元素及其下载地址信息的同时,还可显示网页元素对应的文件的文件大小信息。如图2b所示,显示界面中所显示的文件大小就是通过从本地缓存路径下存储的文件的文件头信息中获取的。In addition, when the webpage element and its download address information are displayed, the file size information of the file corresponding to the webpage element can also be displayed. As shown in Figure 2b, the file size displayed in the display interface is obtained from the file header information of the file stored in the local cache path.

步骤S306,接收网页元素对应的文件的下载命令。Step S306, receiving a download command of the file corresponding to the webpage element.

步骤S307,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。Step S307: Download the file corresponding to the webpage element to the specified folder according to the download address information of the webpage element.

对于图片文件或其它存储在本地缓存中的文件,由于通过步骤S303已经获取本地缓存路径,则本步骤可直接将本地缓存路径下的文件拷贝出来实现文件的下载。For picture files or other files stored in the local cache, since the local cache path has been obtained through step S303, this step can directly copy the file in the local cache path to realize the file download.

除此之外,还可采用上述方法实施例提供的第(2)种和第(3)种下载方式下载网页元素对应的文件,在此不再赘述。In addition, the files corresponding to the webpage elements can also be downloaded by the download methods (2) and (3) provided by the above method embodiments, which will not be repeated here.

根据本实施例提供的上述方法,能够按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息,以便于用户更明确地查找所需要的资源。According to the above method provided in this embodiment, webpage elements of different types of designated tags and different file types and their download address information can be classified and displayed according to the type of the specified tag and the file type, so that the user can find the required resource more clearly.

图4示出了根据本发明一个实施例的浏览器装置的功能结构框图。如图4所示,浏览器装置包括:命令接收模块401、源代码信息获取模块402、信息提取模块403以及显示模块404。FIG. 4 shows a functional structural block diagram of a browser device according to an embodiment of the present invention. As shown in FIG. 4 , the browser device includes: a command receiving module 401 , a source code information acquiring module 402 , an information extracting module 403 and a display module 404 .

命令接收模块401,适于接收当前网页中网页元素的查找命令。本发明实施例中,浏览器提供有查找网页中网页元素的功能选项或功能按钮。具体地,可以在浏览器的菜单选项中添加查找网页元素的功能选项或者在浏览器的网页右键属性中添加查找网页元素的功能选项,还可以在浏览器上添加查找网页元素的功能按钮。用户通过选择该功能选项或点击该功能按钮触发网页元素的查找命令。网页元素包含但不仅限于音频文件、视频文件、图片、脚本等。The command receiving module 401 is adapted to receive a search command for a webpage element in the current webpage. In the embodiment of the present invention, the browser is provided with function options or function buttons for searching webpage elements in the webpage. Specifically, a functional option for finding web page elements can be added to the menu options of the browser, or a functional option for finding web page elements can be added to the right-click property of the browser, and a functional button for finding web page elements can also be added to the browser. The user triggers the search command of the webpage element by selecting the function option or clicking the function button. Web page elements include but are not limited to audio files, video files, pictures, scripts, etc.

源代码信息获取模块402,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息。这里的源代码信息是指网页的HTML代码。网页的源代码信息是由HTML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。网页的源代码信息的结构包括头部(Head)、主体(Body)两大部分,其中头部描述浏览器所需的信息,而主体则包含所要说明的具体内容。The source code information obtaining module 402 is adapted to obtain the source code information of the current webpage according to the search command of the webpage element. The source code information here refers to the HTML code of the web page. The source code information of a web page is a descriptive text composed of HTML commands, which can describe text, graphics, animations, sounds, tables, links, and so on. The structure of the source code information of a web page includes two parts: a head (Head) and a body (Body), wherein the head describes the information required by the browser, and the body contains the specific content to be explained.

信息提取模块403,适于从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。具体地,信息提取模块403主要在源代码的主体部分提取与网页元素有关的指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。可选地,指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。The information extraction module 403 is adapted to extract the specified tag and the download address information recorded in the source information field of the webpage element in the specified tag from the source code information of the current web page. Specifically, the information extraction module 403 mainly extracts the specified tag related to the webpage element and the download address information recorded in the source information field of the webpage element in the specified tag from the main body of the source code. Optionally, the specified tags include: at least one of <embed> tags, <img> tags, <script> tags, <audio> tags, <video> tags, and <object> tags.

显示模块404,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。显示模块404按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。可选地,依据指定标签的类型显示当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。The display module 404 is adapted to display webpage elements corresponding to different types of designated tags and their download address information according to the type of designated tags. The display module 404 displays the webpage elements and their download address information in batches according to the type of the designated label, and batches display the webpage elements and their download address information corresponding to the designated label of the same type as a category. Optionally, the webpage elements corresponding to different types of designated tags in all webpages currently loaded by the browser and their download address information are displayed according to the type of the designated tags.

图5示出了根据本发明另一个实施例的浏览器装置的功能结构框图。如图5所示,浏览器装置包括:命令接收模块501、源代码信息获取模块502、信息提取模块503、显示模块504以及下载模块505。FIG. 5 shows a functional structural block diagram of a browser device according to another embodiment of the present invention. As shown in FIG. 5 , the browser device includes: a command receiving module 501 , a source code information acquiring module 502 , an information extracting module 503 , a displaying module 504 and a downloading module 505 .

命令接收模块501,适于接收当前网页中网页元素的查找命令以及接收所述网页元素对应的文件的下载命令。在浏览器同时加载了多个标签页的情况下,网页元素的查找命令的适用范围可以是当前处于焦点的标签页,即这里的当前网页指的是当前浏览器展现给用户的网页,所述的查找命令用于查找当前处于焦点的标签页中的网页元素;网页元素的查找命令的适用范围也可以是当前浏览器加载的所有标签页,即这里的当前网页包含当前浏览器加载的所有网页,所述的查找命令用于查找当前浏览器加载的所有网页中的网页元素。The command receiving module 501 is adapted to receive a search command for a web page element in the current web page and a download command for a file corresponding to the web page element. In the case where the browser loads multiple tab pages at the same time, the applicable scope of the search command for web page elements may be the tab page currently in focus, that is, the current web page here refers to the web page displayed to the user by the current browser. The find command is used to find the web page element in the tab page currently in focus; the application scope of the search command of the web page element can also be all the tab pages loaded by the current browser, that is, the current web page here contains all the web pages loaded by the current browser. , the search command is used to search for web page elements in all web pages loaded by the current browser.

源代码信息获取模块502,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息。The source code information obtaining module 502 is adapted to obtain the source code information of the current webpage according to the search command of the webpage element.

信息提取模块503,适于从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。The information extraction module 503 is adapted to extract the specified tag and the download address information recorded in the source information field of the webpage element in the specified tag from the source code information of the current web page.

显示模块504,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。本发明实施例对指定标签进行分类,按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。具体地,本实施例可以通过弹出对话框的方式显示网页元素及其下载地址信息。在该对话框中,以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网页元素。具体示例可参见图2b。The display module 504 is adapted to display webpage elements corresponding to different types of designated tags and their download address information according to the type of designated tags. The embodiment of the present invention classifies the designated tags, and displays webpage elements and their download address information in batches according to the type of designated tags. Specifically, in this embodiment, the webpage elements and their download address information can be displayed by means of a pop-up dialog box. In this dialog, web page elements are displayed in the form of icons of different types of designated tags or in the form of web page element thumbnails. A specific example can be found in Figure 2b.

下载模块505,适于根据所述网页元素的下载地址信息,将所述网页元素对应的文件下载到指定文件夹。The downloading module 505 is adapted to download the file corresponding to the webpage element to a specified folder according to the download address information of the webpage element.

可选地,下载模块505进一步包括:Optionally, the download module 505 further includes:

系统接口调用单元5051,适于调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;The system interface calling unit 5051 is adapted to call the system interface for obtaining the local cache path of the file, and pass the download address information of the webpage element to the system interface for obtaining the local cache path of the file, so as to obtain the webpage element The local cache path of the corresponding file;

复制单元5052,适于将所述本地缓存路径下存储的文件复制到所述指定文件夹。The copying unit 5052 is adapted to copy the files stored in the local cache path to the specified folder.

可选地,下载模块505进一步包括:Optionally, the download module 505 further includes:

下载器调用单元5053,适于调用浏览器内建下载器或独立于浏览器的下载器去所述下载地址信息对应的服务器处下载所述网页元素对应的文件,并将所述网页元素对应的文件保存到指定文件夹。The downloader calling unit 5053 is adapted to call the built-in downloader of the browser or the downloader independent of the browser to download the file corresponding to the webpage element from the server corresponding to the download address information, and transfer the corresponding file of the webpage element. The file is saved to the specified folder.

可选地,下载模块505进一步包括:Optionally, the download module 505 further includes:

特征提取单元5054,适于根据所述网页的名称和/或URL和/或所述网页的描述性信息,提取所述网页元素的特征信息;A feature extraction unit 5054, adapted to extract feature information of the webpage element according to the name and/or URL of the webpage and/or descriptive information of the webpage;

下载单元5055,适于根据所述网页元素的特征信息,去提供下载资源的服务器处查找并下载所述网页元素对应的文件,将所述网页元素对应的文件保存到指定文件夹。The downloading unit 5055 is adapted to search and download the file corresponding to the webpage element from the server that provides the download resource according to the characteristic information of the webpage element, and save the file corresponding to the webpage element to a specified folder.

图6示出了根据本发明另一个实施例的浏览器装置的功能结构框图。如图6所示,浏览器装置包括:命令接收模块601、源代码信息获取模块602、信息提取模块603、调用模块604、文件头信息获取模块605、显示模块606以及下载模块607。FIG. 6 shows a functional structural block diagram of a browser device according to another embodiment of the present invention. As shown in FIG. 6 , the browser device includes: a command receiving module 601 , a source code information obtaining module 602 , an information extraction module 603 , a calling module 604 , a file header information obtaining module 605 , a display module 606 and a downloading module 607 .

其中,命令接收模块601、源代码信息获取模块602、信息提取模块603的具体介绍可参见上述装置实施例。The specific introduction of the command receiving module 601 , the source code information obtaining module 602 , and the information extraction module 603 may refer to the foregoing apparatus embodiments.

调用模块604,适于调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径。具体地,在获取网页元素的下载地址信息之后,调用模块604调用系统提供的API函数:InternetGetCache(),并将网页元素的下载地址作为该API函数的参数,该API函数的返回值就是存储有网页元素对应的文件的本地缓存路径。The calling module 604 is adapted to call the system interface for obtaining the local cache path of the file, and pass the download address information of the webpage element to the system interface for obtaining the local cache path of the file, so as to obtain the corresponding system interface of the webpage element. The file's local cache path. Specifically, after acquiring the download address information of the webpage element, the calling module 604 calls the API function provided by the system: InternetGetCache(), and uses the download address of the webpage element as a parameter of the API function, and the return value of the API function is stored with The local cache path of the file corresponding to the webpage element.

文件头信息获取模块605,适于获取所述本地缓存路径下存储的文件的文件头信息,所述文件头信息包含文件类型。The file header information obtaining module 605 is adapted to obtain the file header information of the file stored under the local cache path, where the file header information includes the file type.

显示模块606进一步适于:按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。The display module 606 is further adapted to: according to the type of the specified tag and the file type, classify and display webpage elements of different types of specified tags and different file types and their download address information.

可选地,文件头信息还包括文件大小信息;显示模块606进一步适于:在显示网页元素及其下载地址信息的同时,还显示所述网页元素对应的文件的文件大小信息。Optionally, the file header information further includes file size information; the display module 606 is further adapted to display the file size information of the file corresponding to the webpage element while displaying the webpage element and its download address information.

本实施例的下载模块607与图5所示的实施例的下载模块505的不同之处在于,该下载模块607不包含系统接口调用单元,复制单元可以直接从调用模块604获取网页元素对应的文件的本地缓存路径。两者的其它功能单元是相同的。The difference between the download module 607 of this embodiment and the download module 505 of the embodiment shown in FIG. 5 is that the download module 607 does not include a system interface calling unit, and the copying unit can directly obtain the file corresponding to the webpage element from the calling module 604 local cache path. The other functional units of both are the same.

根据本发明上述实施例提供的装置,浏览器在接收到用户触发的网页元素的查找命令之后,获取网页的源代码信息,从源代码信息中提取指定标签以及指定标签内的源信息字段中记录的下载地址信息,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息,在用户触发文件的下载命令之后,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。利用本发明上述实施例提供的装置,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源;进一步的,当用户对这些网络资源具有下载需求时,通过交互界面给用户提供了便捷的下载方式。上述装置还能够按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息,以便于用户更明确地查找所需要的资源。According to the device provided by the above-mentioned embodiment of the present invention, after receiving the search command of the webpage element triggered by the user, the browser obtains the source code information of the webpage, extracts the specified tag from the source code information, and records in the source information field in the specified tag The download address information, according to the type of the specified label, the webpage elements corresponding to different types of specified labels and their download address information are displayed. After the user triggers the download command of the file, according to the download address information of the webpage element, the file corresponding to the webpage element is downloaded to Specify the folder. Using the device provided by the above embodiments of the present invention, the user can view all the webpage elements of the webpage at a glance by triggering a search command, which is convenient to operate, and is convenient for the user to search for the required resources in batches among the many and complicated webpage resources; further, when When the user has downloading requirements for these network resources, the user is provided with a convenient downloading method through the interactive interface. The above device can also classify and display webpage elements of different types of designated tags and different file types and their download address information according to the type of designated tags and file types, so as to facilitate the user to find the required resources more clearly.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with teaching based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not directed to any particular programming language. It is to be understood that various programming languages may be used to implement the inventions described herein, and that the descriptions of specific languages above are intended to disclose the best mode for carrying out the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it is to be understood that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or its description. This disclosure, however, should not be construed as reflecting an intention that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components in the embodiments may be combined into one module or unit or component, and further they may be divided into multiple sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings) and any method so disclosed may be employed in any combination, unless at least some of such features and/or procedures or elements are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will appreciate that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the invention within and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the browser device according to the embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-described embodiments illustrate rather than limit the invention, and that alternative embodiments may be devised by those skilled in the art without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

本发明公开了:A1、一种网页元素的显示方法,包括:The invention discloses: A1, a method for displaying webpage elements, comprising:

接收当前网页中网页元素的查找命令;Receive a search command for web page elements in the current web page;

根据所述网页元素的查找命令,获取所述当前网页的源代码信息;Obtain the source code information of the current webpage according to the search command of the webpage element;

从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;Extract the specified tag and the download address information recorded in the source information field of the web page element in the specified tag from the source code information of the current web page;

依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。According to the type of the specified tag, the webpage elements corresponding to the specified tags of different types and their download address information are displayed.

A2、根据A1所述的方法,所述当前网页包含当前浏览器加载的所有网页;所述依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息具体为:依据指定标签的类型显示当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。A2. According to the method described in A1, the current web page includes all web pages loaded by the current browser; the display of web page elements corresponding to different types of specified tags and their download address information according to the type of the specified tags is specifically: according to the specified tags Type displays the webpage elements corresponding to different types of specified tags in all webpages currently loaded by the browser and their download address information.

A3、根据A1或A2所述的方法,在所述显示网页元素及其下载地址信息之后进一步包括:A3. The method according to A1 or A2, further comprising after the displaying the webpage element and its download address information:

接收所述网页元素对应的文件的下载命令;receiving a download command of the file corresponding to the webpage element;

根据所述网页元素的下载地址信息,将所述网页元素对应的文件下载到指定文件夹。Download the file corresponding to the webpage element to the specified folder according to the download address information of the webpage element.

A4、根据A3所述的方法,所述将网页元素对应的文件下载到指定文件夹进一步包括:A4. According to the method described in A3, the downloading of the file corresponding to the webpage element to the specified folder further includes:

调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;calling the system interface for obtaining the local cache path of the file, and passing the download address information of the webpage element to the system interface for obtaining the local cache path of the file, thereby obtaining the local cache path of the file corresponding to the webpage element;

将所述本地缓存路径下存储的文件复制到所述指定文件夹。Copy the files stored in the local cache path to the specified folder.

A5、根据A3所述的方法,所述将网页元素对应的文件下载到指定文件夹进一步包括:A5. According to the method described in A3, the downloading of the file corresponding to the webpage element to the specified folder further includes:

调用浏览器内建下载器或独立于浏览器的下载器去所述下载地址信息对应的服务器处下载所述网页元素对应的文件,并将所述网页元素对应的文件保存到指定文件夹。Invoke a browser built-in downloader or a browser-independent downloader to download the file corresponding to the webpage element from the server corresponding to the download address information, and save the file corresponding to the webpage element to a specified folder.

A6、根据A3所述的方法,所述将网页元素对应的文件下载到指定文件夹进一步包括:A6. According to the method described in A3, the downloading of the file corresponding to the webpage element to the specified folder further includes:

根据所述网页的名称和/或URL和/或所述网页的描述性信息,提取所述网页元素的特征信息;According to the name and/or URL of the webpage and/or descriptive information of the webpage, extract the characteristic information of the webpage element;

根据所述网页元素的特征信息,去提供下载资源的服务器处查找并下载所述网页元素对应的文件,将所述网页元素对应的文件保存到指定文件夹。According to the characteristic information of the webpage element, search and download the file corresponding to the webpage element from the server that provides the download resource, and save the file corresponding to the webpage element to a specified folder.

A7、根据A1-A6任一项所述的方法,所述指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。A7. The method according to any one of A1-A6, wherein the specified tags include: <embed> tag, <img> tag, <script> tag, <audio> tag, <video> tag, <object> tag at least one of.

A8、根据A1-A7任一项所述的方法,所述显示不同类型指定标签对应的网页元素具体为:以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网页元素。A8. The method according to any one of A1-A7, wherein the displaying webpage elements corresponding to different types of designated tags is specifically: displaying webpage elements in the form of icons of different types of designated tags or in the form of webpage element thumbnails.

A9、根据A1所述的方法,在所述依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息之前还包括:A9. The method according to A1, before displaying the webpage elements corresponding to different types of designated tags and their download address information according to the type of the designated tags, further comprising:

调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;calling the system interface for obtaining the local cache path of the file, and passing the download address information of the webpage element to the system interface for obtaining the local cache path of the file, thereby obtaining the local cache path of the file corresponding to the webpage element;

获取所述本地缓存路径下存储的文件的文件头信息,所述文件头信息包含文件类型;Obtain the file header information of the file stored under the local cache path, and the file header information includes the file type;

所述依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息具体为:按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。The displaying of webpage elements corresponding to different types of designated tags and their download address information according to the type of designated tags is specifically: according to the types of designated tags and file types, classified and displayed webpage elements of different types of designated tags and different file types and their download addresses. information.

A10、根据A9所述的方法,所述文件头信息还包括文件大小信息;A10. The method according to A9, wherein the file header information further includes file size information;

在显示网页元素及其下载地址信息的同时,还显示所述网页元素对应的文件的文件大小信息。While displaying the webpage element and its download address information, the file size information of the file corresponding to the webpage element is also displayed.

本发明还公开了:B11、一种浏览器装置,包括:The invention also discloses: B11, a browser device, comprising:

命令接收模块,适于接收当前网页中网页元素的查找命令;The command receiving module is adapted to receive the search command of the webpage element in the current webpage;

源代码信息获取模块,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息;a source code information acquisition module, adapted to acquire the source code information of the current web page according to the search command of the web page element;

信息提取模块,适于从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;an information extraction module, adapted to extract a specified tag and the download address information recorded in the source information field of the web page element in the specified tag from the source code information of the current web page;

显示模块,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。The display module is adapted to display webpage elements corresponding to different types of designated tags and their download address information according to the type of designated tags.

B12、根据B11所述的浏览器装置,所述当前网页包含当前浏览器加载的所有网页;所述显示模块具体适于:依据指定标签的类型显示当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。B12. The browser device according to B11, wherein the current web page includes all web pages loaded by the current browser; the display module is specifically adapted to: display different types of specified tags in all web pages loaded by the current browser according to the type of the specified tags The corresponding webpage element and its download address information.

B13、根据B11或B12所述的浏览器装置,所述命令接收模块还适于:接收所述网页元素对应的文件的下载命令;B13. The browser device according to B11 or B12, wherein the command receiving module is further adapted to: receive a download command of the file corresponding to the webpage element;

所述装置还包括:下载模块,适于根据所述网页元素的下载地址信息,将所述网页元素对应的文件下载到指定文件夹。The apparatus further includes: a download module adapted to download the file corresponding to the webpage element to a specified folder according to the download address information of the webpage element.

B14、根据B13所述的浏览器装置,所述下载模块进一步包括:B14. The browser device according to B13, wherein the downloading module further comprises:

系统接口调用单元,适于调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;A system interface calling unit, adapted to call the system interface for obtaining the local cache path of the file, and pass the download address information of the web page element to the system interface for obtaining the local cache path of the file, so as to obtain the corresponding The local cache path of the file;

复制单元,适于将所述本地缓存路径下存储的文件复制到所述指定文件夹。A copying unit, adapted to copy the files stored in the local cache path to the specified folder.

B15、根据B13所述的浏览器装置,所述下载模块进一步包括:B15. The browser device according to B13, wherein the downloading module further comprises:

下载器调用单元,适于调用浏览器内建下载器或独立于浏览器的下载器去所述下载地址信息对应的服务器处下载所述网页元素对应的文件,并将所述网页元素对应的文件保存到指定文件夹。The downloader calling unit is adapted to call the built-in downloader of the browser or the downloader independent of the browser to download the file corresponding to the webpage element from the server corresponding to the download address information, and transfer the file corresponding to the webpage element Save to the specified folder.

B16、根据B13所述的浏览器装置,所述下载模块进一步包括:B16. The browser device according to B13, wherein the downloading module further comprises:

特征提取单元,适于根据所述网页的名称和/或URL和/或所述网页的描述性信息,提取所述网页元素的特征信息;a feature extraction unit, adapted to extract feature information of the webpage element according to the name and/or URL of the webpage and/or descriptive information of the webpage;

下载单元,适于根据所述网页元素的特征信息,去提供下载资源的服务器处查找并下载所述网页元素对应的文件,将所述网页元素对应的文件保存到指定文件夹。The downloading unit is adapted to search and download the file corresponding to the webpage element from the server that provides the download resource according to the characteristic information of the webpage element, and save the file corresponding to the webpage element to a specified folder.

B17、根据B11-B16任一项所述的浏览器装置,所述指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。B17. The browser device according to any one of B11-B16, wherein the specified tags include: <embed> tags, <img> tags, <script> tags, <audio> tags, <video> tags, <object> tags at least one of the tags.

B18、根据B11-B17任一项所述的浏览器装置,所述显示模块具体适于:以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网页元素。B18. The browser device according to any one of B11-B17, wherein the display module is specifically adapted to: display webpage elements in the form of icons of different types of designated tags or in the form of webpage element thumbnails.

B19、根据B11所述的浏览器装置,还包括:B19. The browser device according to B11, further comprising:

调用模块,适于调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;The calling module is adapted to call the system interface for obtaining the local cache path of the file, and pass the download address information of the webpage element to the system interface for obtaining the local cache path of the file, so as to obtain the file corresponding to the webpage element the local cache path;

文件头信息获取模块,适于获取所述本地缓存路径下存储的文件的文件头信息,所述文件头信息包含文件类型;a file header information obtaining module, adapted to obtain the file header information of the file stored under the local cache path, the file header information including the file type;

所述显示模块进一步适于:按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。The display module is further adapted to: according to the type of the specified label and the file type, classify and display webpage elements of different types of specified labels and different file types and their download address information.

B20、根据B19所述的浏览器装置,所述文件头信息还包括文件大小信息;所述显示模块进一步适于:在显示网页元素及其下载地址信息的同时,还显示所述网页元素对应的文件的文件大小信息。B20. The browser device according to B19, wherein the file header information further includes file size information; the display module is further adapted to: when displaying webpage elements and their download address information, also display the corresponding webpage elements File size information for the file.

Claims (20)

1. A method for displaying web page elements comprises the following steps:
receiving a searching command of a webpage element in a current webpage;
acquiring source code information of the current webpage according to the search command of the webpage element;
extracting a specified label and downloading address information recorded in a source information field of a webpage element in the specified label from the source code information of the current webpage;
displaying webpage elements corresponding to different types of designated labels and download address information thereof according to the types of the designated labels, and providing switching options for a user to inquire the webpage elements belonging to the designated types or all the types; and the webpage elements corresponding to the appointed tags of the same type and the download address information thereof are displayed in batch as a category.
2. The method of claim 1, the current web page including all web pages currently loaded by a browser; the specific steps of displaying the webpage elements corresponding to the different types of designated tags and the download address information thereof according to the types of the designated tags are as follows: and displaying the webpage elements corresponding to the different types of specified tags in all the webpages loaded by the current browser and the downloading address information thereof according to the types of the specified tags.
3. The method of claim 1, further comprising, after said displaying web page elements and their download address information:
receiving a downloading command of a file corresponding to the webpage element;
and downloading the file corresponding to the webpage element to a specified folder according to the downloading address information of the webpage element.
4. The method of claim 3, wherein the downloading the file corresponding to the web page element to the designated folder according to the download address information of the web page element further comprises:
calling a system interface for acquiring a local cache path of a file, and transmitting the download address information of the webpage element to the system interface for acquiring the local cache path of the file, so as to acquire the local cache path of the file corresponding to the webpage element;
and copying the files stored under the local cache path to the specified folder.
5. The method of claim 3, wherein the downloading the file corresponding to the web page element to the designated folder according to the download address information of the web page element further comprises:
and calling a downloader built in the browser or a downloader independent of the browser to download the files corresponding to the webpage elements at the server corresponding to the download address information, and storing the files corresponding to the webpage elements in a specified folder.
6. The method of claim 3, wherein the downloading the file corresponding to the web page element to the designated folder according to the download address information of the web page element further comprises:
extracting characteristic information of the webpage elements according to the name and/or URL of the webpage and/or the descriptive information of the webpage;
and searching and downloading the file corresponding to the webpage element at a server providing downloading resources according to the characteristic information of the webpage element, and storing the file corresponding to the webpage element into an appointed folder.
7. The method of any of claims 1-6, the designating the tag comprising: at least one of an < embed > tag, < img > tag, < script > tag, < audio > tag, < video > tag, < object > tag.
8. The method according to any one of claims 1 to 6, wherein the displaying of the web page elements corresponding to the different types of designated tags is specifically: the web page elements are displayed in the form of icons of different types of designated tags or in the form of web page element thumbnails.
9. The method according to claim 1, further comprising, before displaying the web page elements corresponding to the different types of designated tags and the download address information thereof according to the types of the designated tags:
calling a system interface for acquiring a local cache path of a file, and transmitting the download address information of the webpage element to the system interface for acquiring the local cache path of the file, so as to acquire the local cache path of the file corresponding to the webpage element;
acquiring file header information of a file stored in the local cache path, wherein the file header information comprises a file type;
the specific steps of displaying the webpage elements corresponding to the different types of designated tags and the download address information thereof according to the types of the designated tags are as follows: and according to the type of the specified label and the file type, displaying the webpage elements of different types of specified labels and different file types and the download address information thereof in a classified manner.
10. The method of claim 9, the header information further comprising file size information;
and displaying the webpage elements and the download address information thereof, and simultaneously displaying the file size information of the file corresponding to the webpage elements.
11. A browser device, comprising:
the command receiving module is suitable for receiving a searching command of webpage elements in the current webpage;
the source code information acquisition module is suitable for acquiring the source code information of the current webpage according to the search command of the webpage element;
the information extraction module is suitable for extracting the appointed label and the downloading address information recorded in the source information field of the webpage element in the appointed label from the source code information of the current webpage;
the display module is suitable for displaying the webpage elements corresponding to the different types of designated labels and the download address information thereof according to the types of the designated labels, and providing switching options for a user to inquire the webpage elements belonging to the designated types or all the types; and the webpage elements corresponding to the appointed tags of the same type and the download address information thereof are displayed in batch as a category.
12. The browser device of claim 11, the current web page including all web pages currently loaded by a browser; the display module is specifically adapted to: and displaying the webpage elements corresponding to the different types of specified tags in all the webpages loaded by the current browser and the downloading address information thereof according to the types of the specified tags.
13. The browser device of claim 11, said command receiving module further adapted to: receiving a downloading command of a file corresponding to the webpage element;
the device further comprises: and the downloading module is suitable for downloading the file corresponding to the webpage element to a specified folder according to the downloading address information of the webpage element.
14. The browser device of claim 13, the download module further comprising:
the system interface calling unit is suitable for calling a system interface for acquiring a local cache path of a file, and transmitting the download address information of the webpage element to the system interface for acquiring the local cache path of the file, so as to acquire the local cache path of the file corresponding to the webpage element;
and the copying unit is suitable for copying the files stored under the local cache path to the specified folder.
15. The browser device of claim 13, the download module further comprising:
and the downloader calling unit is suitable for calling a downloader built in the browser or a downloader independent of the browser to download the files corresponding to the webpage elements at the server corresponding to the download address information and store the files corresponding to the webpage elements in a specified folder.
16. The browser device of claim 13, the download module further comprising:
the characteristic extraction unit is suitable for extracting the characteristic information of the webpage elements according to the name and/or URL of the webpage and/or the descriptive information of the webpage;
and the downloading unit is suitable for searching and downloading the file corresponding to the webpage element at a server providing downloading resources according to the characteristic information of the webpage element and storing the file corresponding to the webpage element into an appointed folder.
17. The browser device of any one of claims 11-16, the specified tab comprising: at least one of an < embed > tag, < img > tag, < script > tag, < audio > tag, < video > tag, < object > tag.
18. The browser means of any one of claims 11 to 16, said display module being specifically adapted to: the web page elements are displayed in the form of icons of different types of designated tags or in the form of web page element thumbnails.
19. The browser device of claim 11, further comprising:
the calling module is suitable for calling a system interface for acquiring a local cache path of a file and transmitting the download address information of the webpage element to the system interface for acquiring the local cache path of the file so as to acquire the local cache path of the file corresponding to the webpage element;
the file header information acquisition module is suitable for acquiring file header information of the file stored in the local cache path, and the file header information comprises a file type;
the display module is further adapted to: and according to the type of the specified label and the file type, displaying the webpage elements of different types of specified labels and different file types and the download address information thereof in a classified manner.
20. The browser device of claim 19, said header information further comprising file size information; the display module is further adapted to: and displaying the webpage elements and the download address information thereof, and simultaneously displaying the file size information of the file corresponding to the webpage elements.
CN201410287483.8A 2014-06-24 2014-06-24 Webpage element display method and browser device Active CN104036011B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410287483.8A CN104036011B (en) 2014-06-24 2014-06-24 Webpage element display method and browser device
PCT/CN2015/082006 WO2015196954A1 (en) 2014-06-24 2015-06-23 Webpage element display method and browser device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410287483.8A CN104036011B (en) 2014-06-24 2014-06-24 Webpage element display method and browser device

Publications (2)

Publication Number Publication Date
CN104036011A CN104036011A (en) 2014-09-10
CN104036011B true CN104036011B (en) 2020-06-12

Family

ID=51466781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410287483.8A Active CN104036011B (en) 2014-06-24 2014-06-24 Webpage element display method and browser device

Country Status (2)

Country Link
CN (1) CN104036011B (en)
WO (1) WO2015196954A1 (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036011B (en) * 2014-06-24 2020-06-12 北京奇虎科技有限公司 Webpage element display method and browser device
CN104346464B (en) * 2014-11-07 2018-05-15 北京奇虎科技有限公司 Processing method, device and the browser client of web page element information
CN105893426A (en) * 2015-12-04 2016-08-24 乐视移动智能信息技术(北京)有限公司 Webpage browsing method for mobile terminal and mobile terminal
CN105763893A (en) * 2016-01-15 2016-07-13 北京傲游天下科技有限公司 Method of downloading video played in page player
CN107122227A (en) * 2017-04-12 2017-09-01 福建星海通信科技有限公司 A kind of picture method for down loading based on JavaScript front ends script
CN107239553A (en) * 2017-06-08 2017-10-10 北京匡恩网络科技有限责任公司 The data processing method and device of industrial control equipment
CN107239580A (en) * 2017-07-05 2017-10-10 北京奇安信科技有限公司 A kind of Web page image storage processing method and device
CN107729475B (en) * 2017-10-16 2021-07-02 深圳视界信息技术有限公司 Webpage element acquisition method, device, terminal and computer-readable storage medium
CN108416053A (en) * 2018-03-19 2018-08-17 深圳创维-Rgb电子有限公司 Display processing method, TV and the readable storage medium storing program for executing of historical viewings record
CN110020324A (en) * 2018-08-01 2019-07-16 北京京东尚科信息技术有限公司 A kind of method and apparatus for extracting picture
CN109522492B (en) * 2018-10-12 2024-11-26 北京奇虎科技有限公司 A web page content display control method, device, equipment and storage medium
CN110532458B (en) * 2019-08-29 2022-04-19 深圳前海达闼云端智能科技有限公司 Method and device for determining search mode, server and storage medium
CN110727891A (en) * 2019-09-09 2020-01-24 中国平安财产保险股份有限公司 Browser cache management method and device and computer readable storage medium
CN112632417A (en) * 2019-09-24 2021-04-09 北京国双科技有限公司 Data processing method, data processing device, storage medium and electronic equipment
CN112989233B (en) * 2019-12-02 2024-12-03 北京小米移动软件有限公司 File downloading method, device and storage medium
CN111651418B (en) * 2020-05-29 2022-03-08 腾讯科技(深圳)有限公司 Document content downloading method and device, computer equipment and storage medium
CN112364270B (en) * 2020-11-24 2024-04-19 北京锐安科技有限公司 Webpage element storage method, electronic equipment and storage medium
CN113343152B (en) * 2021-06-25 2023-08-15 咪咕数字传媒有限公司 Method and device for acquiring network resources
CN113536180B (en) * 2021-06-28 2025-03-21 北京达佳互联信息技术有限公司 Project processing methods, devices, electronic devices, storage media and program products
CN115757996A (en) * 2021-09-03 2023-03-07 腾讯科技(深圳)有限公司 Browser page update method and device
CN114036426A (en) * 2021-11-25 2022-02-11 深圳视界信息技术有限公司 Webpage data acquisition method, device, equipment and medium
CN114138372B (en) * 2021-12-06 2024-06-14 中国工商银行股份有限公司 Front-end component loading method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997015A (en) * 2006-11-24 2007-07-11 华为技术有限公司 Cache application method and device, and file transfer system
CN103455602A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) capturing method and device and terminal equipment
CN103838880A (en) * 2014-03-28 2014-06-04 北京金山网络科技有限公司 Webpage advertisement filter method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519621B2 (en) * 2004-05-04 2009-04-14 Pagebites, Inc. Extracting information from Web pages
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN102780682B (en) * 2011-05-12 2015-02-18 同济大学 Website behavior model modeling method based on HTML (Hyper Text Markup Language)
CN103425388B (en) * 2012-05-24 2017-03-15 腾讯科技(深圳)有限公司 A kind of method and apparatus of operation host window in HTML page
CN104036011B (en) * 2014-06-24 2020-06-12 北京奇虎科技有限公司 Webpage element display method and browser device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997015A (en) * 2006-11-24 2007-07-11 华为技术有限公司 Cache application method and device, and file transfer system
CN103455602A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) capturing method and device and terminal equipment
CN103838880A (en) * 2014-03-28 2014-06-04 北京金山网络科技有限公司 Webpage advertisement filter method and device

Also Published As

Publication number Publication date
WO2015196954A1 (en) 2015-12-30
CN104036011A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN104036011B (en) Webpage element display method and browser device
CN104077387B (en) A kind of web page contents display methods and browser device
KR101748196B1 (en) Determining message data to present
CN103488781B (en) Method, the search engine server of information search are provided
CN104360882B (en) Display methods and device are carried out to picture in webpage in a kind of browser
CN102768683B (en) A kind of searching method of pictorial information and searcher
CN104536973B (en) The method and browser client of picture recognition
CN104065896B (en) The method and apparatus that audio/video information is shown are carried out in a kind of browser
CN104346464B (en) Processing method, device and the browser client of web page element information
CN104135685A (en) Display method and display device for play information of webpage video
CN103678639B (en) The method and apparatus of information updating prompting is carried out in browser
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
CN104462074A (en) Method and device for conducting webpage data translation and browser client side
CN103631905A (en) Webpage loading method and browser
CN103559097B (en) The method of interprocess communication, device and browser in a kind of browser
CN103488786A (en) Method and client terminal for providing information search
CN104077389A (en) Display method of webpage element information and browser device
CN104346461B (en) The method, apparatus and browser client of search and webpage element
CN104484386A (en) Information sharing method and browser client
CN103631630A (en) Dynamic skin loading method for browser and browser device
CN103020191A (en) Device and method for displaying file
CN103024010B (en) document display apparatus and method
CN104199865B (en) Searching method, client and the system of the customization result of content providers are provided
WO2015101074A1 (en) Image-based image identification method, system, equipment and device
CN104080016B (en) The method and apparatus that audio/video information is shown are carried out in a kind of browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220823

Address after: No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science and Technology Park, High-tech Zone, Binhai New District, Tianjin 300000

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.