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

Webpage element display method and browser device Download PDF

Info

Publication number
WO2015196954A1
WO2015196954A1 PCT/CN2015/082006 CN2015082006W WO2015196954A1 WO 2015196954 A1 WO2015196954 A1 WO 2015196954A1 CN 2015082006 W CN2015082006 W CN 2015082006W WO 2015196954 A1 WO2015196954 A1 WO 2015196954A1
Authority
WO
WIPO (PCT)
Prior art keywords
webpage
file
webpage element
information
specified
Prior art date
Application number
PCT/CN2015/082006
Other languages
French (fr)
Chinese (zh)
Inventor
杭程
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2015196954A1 publication Critical patent/WO2015196954A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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]

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a method for displaying a webpage element and a browser device.
  • the present invention has been made in order to provide a display method of a web page element and a browser device that overcome the above problems or at least partially solve the above problems.
  • a method for displaying a webpage element including:
  • a browser apparatus comprising:
  • a command receiving module configured to receive a search command of a webpage element in a current webpage
  • the source code information obtaining module is configured to obtain source code information of the current webpage according to the searching command of the webpage element;
  • An information extraction module configured to extract, from the source code information of the current webpage, the specified address and the download address information recorded in the source information field of the webpage element in the specified label;
  • the display module is configured to display webpage elements corresponding to different types of designated tags and download address information according to the type of the specified tag.
  • a computer program including a computer Reading the code, when the computer readable code is run on a computing device, causes the computing device to perform a display method of web page elements in accordance with the above.
  • a computer readable medium storing the above computer program is provided.
  • the browser after receiving the search command of the webpage element triggered by the user, acquires the source code information of the webpage, extracts the specified label from the source code information, and downloads the record recorded in the source information field in the specified label.
  • the address information displays webpage elements corresponding to different types of specified tags and download address information according to the type of the specified tag.
  • FIG. 1 shows a flow chart of a method of displaying web page elements in accordance with one embodiment of the present invention
  • FIG. 2a is a flow chart showing a method of displaying a webpage element according to another embodiment of the present invention.
  • 2b is a schematic diagram showing a display interface of a method for displaying a webpage element according to another embodiment of the present invention.
  • FIG. 3 is a flow chart showing a method of displaying a webpage element according to still another embodiment of the present invention.
  • FIG. 4 is a block diagram showing the functional structure of a browser device according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the functional structure of a browser device according to another embodiment of the present invention.
  • FIG. 6 is a block diagram showing the functional structure of a browser device according to still another embodiment of the present invention.
  • Figure 7 is a schematic block diagram of a computing device for performing a display method of a web page element in accordance with the present invention.
  • Figure 8 is a schematic illustration of a web page element for maintaining or carrying in accordance with the present invention.
  • the storage unit of the program code of the display method is a schematic illustration of a web page element for maintaining or carrying in accordance with the present invention.
  • FIG. 1 shows a flow chart of a method of displaying web page elements in accordance with one embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S100 Receive a search command of a webpage element in a current webpage.
  • the browser provides a function option or a function button for finding a webpage element in the webpage.
  • a function option for finding a webpage element may be added in a menu option of the browser or a function of finding a webpage element may be added in a right-click property of a webpage of the browser, and a function button for finding a webpage element may be added to the browser.
  • the user triggers a lookup command for a web page element by selecting the function option or clicking the function button.
  • Web page elements include, but are not limited to, audio files, video files, images, scripts, and the like.
  • the scope of the search command of the webpage element may be the tab page currently in focus, that is, the current webpage here refers to the webpage displayed by the current browser to the user,
  • the search command is used to find the webpage element in the tab that is currently in focus;
  • the search command of the webpage element may also be all the tabs loaded by the current browser, that is, the current webpage here contains all the webpages loaded by the current browser.
  • the search command is used to find webpage elements in all webpages loaded by the current browser.
  • Step S101 Acquire source code information of the current webpage according to the search command of the webpage element.
  • the browser 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.
  • Step S102 Extract the specified address and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
  • the source code information of a web page is descriptive text composed of HTML commands, which can describe text, graphics, animation, sound, tables, links, and the like.
  • the structure of the source code information of the webpage includes two parts: a header and a body, wherein the header describes the information required by the browser, and the subject contains the specific content to be described.
  • the specified label related to the webpage element and the download address information recorded in the source information field of the webpage element in the specified label are extracted mainly in the main body part of the source code.
  • the specified label includes: at least one of an ⁇ embed> tag, an ⁇ img> tag, a ⁇ script> tag, an ⁇ audio> tag, a ⁇ video> tag, and an ⁇ object> tag.
  • Step S103 Display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag.
  • the embodiment of the present invention classifies the specified tags, and displays the webpage elements and the download address information in batches according to the type of the specified tags, and the webpage elements corresponding to the specified tags of the same type and the download address information thereof are displayed in batches as one category.
  • the webpage element corresponding to the different type of the specified label in all the webpages loaded by the current browser and the download address information thereof are displayed according to the type of the specified label.
  • the present invention does not specifically limit the classification of a specified label.
  • ⁇ embed> tags, ⁇ audio> tags, and ⁇ video> tags can be classified as the same type as streaming media files: streaming media files, but also Classified into three types: Flash files, audio, and video.
  • the ⁇ img> tag is classified as an image; the ⁇ script> tag is classified as a script; the ⁇ object> tag is classified as an embedded object.
  • 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.
  • the browser after receiving the search command of the webpage element triggered by the user, acquires the source code information of the webpage, extracts the specified label from the source code information, and records the record in the source information field in the specified label.
  • the download address information is displayed according to the type of the specified label, and the webpage element corresponding to the specified type of the label and the download address information thereof are displayed.
  • FIG. 2a shows a flow chart of a method of displaying web page elements in accordance with another embodiment of the present invention. As shown in FIG. 2a, the method includes the following steps:
  • Step S200 Receive a search command of a webpage element in a current webpage.
  • the browser provides a function option or a function button for finding a webpage element in the webpage.
  • a function option for finding a webpage element may be added in a menu option of the browser or a function of finding a webpage element may be added in a right-click property of a webpage of the browser, and a function button for finding a webpage element may be added to the browser.
  • the user triggers a lookup command for a web page element by selecting the function option or clicking the function button.
  • Web page elements include, but are not limited to, audio files, video files, images, scripts, and the like.
  • the scope of the search command of the webpage element may be the tab page currently in focus, that is, the current webpage here refers to the webpage displayed by the current browser to the user,
  • the find command is used to find the target that is currently in focus.
  • the webpage element in the page; the scope of the search command of the webpage element may also be all the tabs loaded by the current browser, that is, the current webpage here contains all the webpages loaded by the current browser, and the search command is used to find the current webpage.
  • Step S201 Acquire source code information of the current webpage according to the search command of the webpage element.
  • the browser 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.
  • Step S202 Extract the specified address and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
  • the source code information of a web page is descriptive text composed of HTML commands, which can describe text, graphics, animation, sound, tables, links, and the like.
  • the structure of the source code information of the webpage includes two parts: a header and a body, wherein the header describes the information required by the browser, and the subject contains the specific content to be described.
  • the specified label related to the webpage element and the download address information recorded in the source information field of the webpage element in the specified label are extracted mainly in the main body part of the source code.
  • the specified label includes: at least one of an ⁇ embed> tag, an ⁇ img> tag, a ⁇ script> tag, an ⁇ audio> tag, a ⁇ video> tag, and an ⁇ object> tag.
  • the notification identifies "img” to know that the above information is an ⁇ img> tag, and then identifies a source information field in the ⁇ img> tag, that is, a "src" field, and the information recorded in the field is the download address information of the webpage element, the above "http:/ /img0.bdstatic.com/static/common/widget/search_box_search/logo/logo_3b6de4c.png" is the download address information of the image.
  • the specified tag of all webpage elements and the download address information of the webpage element can be extracted from the webpage.
  • Step S203 Display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag.
  • the embodiment of the present invention classifies the specified tags, and displays the webpage elements and the download address information in batches according to the type of the specified tags, and the webpage elements corresponding to the specified tags of the same type and the download address information thereof are displayed in batches as one category.
  • the webpage element and the download address information thereof can be displayed by popping up a dialog box.
  • the icon is displayed in the form of an icon of a different type or in the form of a thumbnail of a web page element. Page element.
  • FIG. 2b is a schematic diagram showing a display interface of a method for displaying a webpage element according to another embodiment of the present invention.
  • the display interface displays the found webpage elements and their download address information in a dialog box manner.
  • the specified tags are grouped into three types: video, audio, and picture, indicating that the specified tag to be extracted contains at least: ⁇ video> tag, ⁇ audio> tag, and ⁇ img> tag, optionally, can also contain : ⁇ embed> tag and ⁇ object> tag.
  • This dialog provides switching options for Video, Audio, Picture, and All Types for users to query for webpage elements that belong to a type or all types.
  • the dialog box provides a drop-down box for the tab page for the user to query the page elements of other tabs.
  • 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.
  • a certain time threshold for example, 3s
  • the form of the thumbnail displays the web page element, which is the thumbnail of the original image.
  • Step S204 receiving a download command of a file corresponding to the webpage element.
  • the dialog box also provides a button for downloading the selected file. If the user selects certain webpage elements and clicks the button, the download command of the corresponding file is triggered.
  • Step S205 Download the file corresponding to the webpage element to the designated folder according to the download address information of the webpage element.
  • this embodiment 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:
  • Various types of browsers have a local cache, which is installed by default in the system area, which stores certain web resources such as images that access web pages. That is to say, for webpage elements such as images, once the webpage is loaded, the webpage elements are stored in the local cache, so the file can be downloaded by copying the file under the local cache path by searching the local cache path.
  • the embodiment uses an API (Application Programming Interface) function provided by the system: InternetGetCache() to obtain a local cache path.
  • API Application Programming Interface
  • call InternetGetCache() and use the download address of the web page element as The parameter of the API function, the return value of the API function is a local cache path for storing a file corresponding to the webpage element; and then, copying the file corresponding to the webpage element stored in the local cache path to the specified folder, thereby downloading the file Go to the specified folder.
  • the downloaded download address information may be only the download address of a certain clip in the file, or it may not be the actual download address of the file, for example, only the play address of the audio and video.
  • the embodiment may download the corresponding file in a manner of re-finding the download resource server.
  • the information such as the name of the audio and video, the episode information, the story introduction, and the video resolution are recorded in the webpage name and/or the URL and/or the descriptive information of the webpage of the online audio and video viewing webpage.
  • extracting the feature information of the audio and video file by using the method of extracting keywords; searching for the corresponding resource in the search server according to the feature information, and then returning the URL of the server providing the downloaded resource to the client, so that the client calls the downloader Go to the server that provides the download resource to download the corresponding file and save the file to the specified folder.
  • the browser after receiving the search command of the webpage element triggered by the user, acquires the source code information of the webpage, extracts the specified label from the source code information, and records the record in the source information field in the specified label. Downloading the address information, displaying the webpage element corresponding to the specified type of the label and the downloading address information according to the type of the specified label, and downloading the file corresponding to the webpage element to the specified webpage element according to the downloading address information of the webpage element after the downloading command of the user triggering the file folder.
  • the user can view all the webpage elements of the webpage at a glance by triggering a search command, and the operation is convenient, and the user can conveniently search for the required resources in a large number of complicated webpage resources; further, when the user pairs When these network resources have download requirements, the user interface provides a convenient download method through the interactive interface.
  • FIG. 3 shows a flow chart of a method of displaying web page elements in accordance with still another embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step S300 Receive a search command of a webpage element in the current webpage.
  • Step S301 Acquire source code information of the current webpage according to the search command of the webpage element.
  • Step S302 Extract the specified address and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
  • step S300-S302 For the specific process of the foregoing steps S300-S302, refer to step S200-step S202 of the foregoing method embodiment, and details are not described herein again.
  • Step S303 the system interface for obtaining the local cache path of the file is invoked, and the download address information of the webpage element is transmitted to the system interface for obtaining the local cache path of the file, so as to obtain the local cache path of the file corresponding to the webpage element.
  • the API function provided by the system is called: InternetGetCache(), and the download address of the webpage element is used as a parameter of the API function, and the return value of the API function is the file corresponding to the webpage element. Local cache path.
  • Step S304 Obtain file header information of a file stored in a local cache path, where the file header information includes a file type.
  • the file header information records information about the file, including file type, file size information, and the like. Taking a picture file as an example, the specific format of the picture, such as JPEG, PNG, etc., can be identified by the file header information.
  • Step S305 classifying the webpage elements of different types of designated tags and different file types and their download address information according to the type of the specified tag and the file type.
  • the webpage element and its download address information are classified and displayed in combination with the type and file type of the specified tag. For example, for image files, you can make a fine classification based on the file type, so that users can find the required resources more clearly.
  • the file size information of the file corresponding to the webpage element may also be displayed. As shown in FIG. 2b, the file size displayed in the display interface is obtained by the file header information of the file stored from the local cache path.
  • Step S306 receiving a download command of a file corresponding to the webpage element.
  • Step S307 Download the file corresponding to the webpage element to the designated folder according to the download address information of the webpage element.
  • this step can directly copy the file under the local cache path to implement file downloading.
  • the webpage elements of different types of designated tags and different file types and their download address information can be classified according to the type of the specified tag and the file type, so that the user can more clearly find the required resources.
  • FIG. 4 is a block diagram showing the functional structure of a browser device according to an embodiment of the present invention.
  • 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.
  • the command receiving module 401 is adapted to receive a search command of a webpage element in the current webpage.
  • the browser provides a function option or a function button for finding a webpage element in the webpage.
  • a function option for finding a webpage element may be added in a menu option of the browser or a function of finding a webpage element may be added in a right-click property of a webpage of the browser, and a function button for finding a webpage element may be added to the browser.
  • the user triggers a lookup command for a web page element by selecting the function option or clicking the function button.
  • Web page elements include, but are not limited to, audio files, video files, images, scripts, and the like.
  • the source code information obtaining module 402 is adapted to obtain 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 descriptive text composed of HTML commands, which can describe text, graphics, animation, sound, tables, links, and the like.
  • the structure of the source code information of the webpage includes two parts: a header and a body, wherein the header describes the information required by the browser, and the subject contains the specific content to be described.
  • the information extraction module 403 is adapted to extract the specified label and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage. Specifically, the information extraction module 403 extracts the specified tag related to the webpage element and the download address information recorded in the source information field of the webpage element within the specified tag mainly in the main body portion of the source code.
  • the specified label includes: at least one of an ⁇ embed> tag, an ⁇ img> tag, a ⁇ script> tag, an ⁇ audio> tag, a ⁇ video> tag, and an ⁇ object> tag.
  • the display module 404 is adapted to display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag.
  • the display module 404 displays the webpage elements and the download address information in batches according to the type of the specified label, and the webpage elements corresponding to the designated tags of the same type and the download address information thereof are displayed in batches as one category.
  • the webpage element corresponding to the different type of the specified label in all the webpages loaded by the current browser and the download address information thereof are displayed according to the type of the specified label.
  • FIG. 5 is a block diagram showing the functional structure of a browser device according to another embodiment of the present invention.
  • the browser device includes a command receiving module 501, a source code information acquiring module 502, an information extracting module 503, a display module 504, and a downloading module 505.
  • the command receiving module 501 is adapted to receive a search command of a webpage element in the current webpage and a download command to receive the file corresponding to the webpage element.
  • the scope of the search command of the webpage element may be the tab page currently in focus, that is, the current webpage here refers to the webpage displayed by the current browser to the user,
  • the search command is used to find the webpage element in the tab that is currently in focus;
  • the search command of the webpage element may also be all the tabs loaded by the current browser, that is, the current webpage here contains all the webpages loaded by the current browser.
  • the search command is used to find webpage elements in all webpages loaded by the current browser.
  • the source code information obtaining module 502 is adapted to obtain source code information of the current webpage according to the search command of the webpage element.
  • the information extraction module 503 is adapted to extract the specified label and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
  • the display module 504 is configured to display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag.
  • the embodiment of the present invention classifies the specified tags, and displays the webpage elements and the download address information in batches according to the type of the specified tags, and the webpage elements corresponding to the specified tags of the same type and the download address information thereof are displayed in batches as one category.
  • the webpage element and the download address information thereof can be displayed by popping up a dialog box.
  • web page elements are displayed in the form of icons of different types of specified labels or as thumbnails of web page elements. See Figure 2b for a specific example.
  • the downloading module 505 is adapted to download the file corresponding to the webpage element to the specified folder according to the download address information of the webpage element.
  • the downloading module 505 further includes:
  • the system interface invoking unit 5051 is adapted to invoke a system interface for obtaining a local cache path of the file, and the download address information of the webpage element is transmitted to the system interface for obtaining a local cache path of the file, thereby acquiring the webpage element.
  • the copying unit 5052 is adapted to copy the file stored under the local cache path to the specified folder.
  • the downloading module 505 further includes:
  • the downloader calling unit 5053 is adapted to invoke the browser built-in downloader or is independent of the browser The downloader downloads the file corresponding to the webpage element to the server corresponding to the download address information, and saves the file corresponding to the webpage element to the specified folder.
  • the downloading module 505 further includes:
  • the feature extraction unit 5054 is adapted to extract feature information of the webpage element according to the name and/or the URL of the webpage and/or the descriptive information of the webpage;
  • the downloading unit 5055 is configured to: according to the feature information of the webpage element, search for and download a file corresponding to the webpage element at a server that provides the downloading resource, and save the file corresponding to the webpage element to the specified folder.
  • FIG. 6 is a block diagram showing the functional structure of a browser device according to still another embodiment of the present invention.
  • the browser device includes a command receiving module 601, a source code information acquiring module 602, an information extracting module 603, a calling module 604, a file header information acquiring module 605, a display module 606, and a downloading module 607.
  • command receiving module 601 For details of the command receiving module 601, the source code information obtaining module 602, and the information extracting module 603, refer to the foregoing device embodiments.
  • the calling module 604 is adapted to invoke a system interface for obtaining a local cache path of the file, and the download address information of the webpage element is transmitted to the system interface for obtaining a local cache path of the file, so as to obtain the corresponding information of the webpage element.
  • the local cache path of the file Specifically, after acquiring the download address information of the webpage element, the calling module 604 invokes an 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.
  • the local cache path of the file corresponding to the web page element.
  • the file header information obtaining module 605 is configured to obtain file header information of a file stored in the local cache path, where the file header information includes a file type.
  • the display module 606 is further adapted to: categorize webpage elements of different types of specified tags and different file types and their download address information according to the type of the specified tag and the file type.
  • 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 the download address information thereof.
  • the download module 607 of the embodiment is different from the download module 505 of the embodiment shown in FIG. 5 in that the download module 607 does not include the system interface invoking unit 5051, and the copying unit 5052 can directly obtain the webpage element corresponding from the calling module 604.
  • the local cache path of the file The other functional units of the two are the same.
  • the browser after receiving the search command of the webpage element triggered by the user, acquires the source code information of the webpage, extracts the specified label from the source code information, and records the source information field in the specified label. Downloading address information, displaying webpage elements corresponding to different types of specified tags and downloading address information according to the type of the specified tag, and downloading the file corresponding to the webpage element according to the downloading address information of the webpage element after the user triggers the downloading command of the file Specify a folder.
  • the user can view all the webpage elements of the webpage at a glance by triggering a search command, and the operation is convenient, and the user can conveniently search for the required resources in a large and complicated webpage resource; further, when When users have download requirements for these network resources, they provide users with convenient download methods through the interactive interface.
  • the device can also display webpage elements of different types of specified tags and different file types and their download address information according to the type of the specified tag and the file type, so that the user can more clearly find the required resources.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of a browser device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the 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 an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 7 illustrates a computing device that can implement a method of transferring data between smart terminals.
  • the computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
  • Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above.
  • storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 720 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 731', ie, code readable by a processor, such as 710, that when executed by a computing device causes the computing device to perform each of the methods described above step.

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

A webpage element display method and a browser device. The method comprises: receiving a search command for webpage elements in a current webpage (S100); according to the search command for the webpage elements, acquiring source code information about the current webpage (S101); extracting designated tags from the source code information about the current webpage and download address information recorded in source information fields of the webpage elements in the designated tags (S102); and in accordance with the types of the designated tags, displaying the webpage elements corresponding to the designated tags of different types and download address information thereabout (S103). By means of the solution, a user can view all webpage elements of a webpage clearly by triggering a search command, so that the operation is convenient and fast, and it is convenient for the user to search for required resources by batches in excessive and complex webpage resources.

Description

网页元素的显示方法以及浏览器装置Method for displaying webpage elements and browser device 技术领域Technical field
本发明涉及互联网技术领域,具体涉及一种网页元素的显示方法以及浏览器装置。The present invention relates to the field of Internet technologies, and in particular, to a method for displaying a webpage element and a browser device.
背景技术Background technique
随着互联网技术的发展,各种网站提供的网页内容越来越丰富。以各类微博或视频网站为例,在这类网站的一个网页中可能提供了多种网络资源以供在线观看,包括音视频文件、图片文件以及其它提供下载的文件等各类网页元素。用户在访问含有这些网页元素的网页时,网页不能批量或分类批量显示所有的网页元素,使得用户不能一目了然的查看所有的网页资源;当用户对这些网络资源具有下载需求时,现有技术也没能给用户提供便捷的下载方式。With the development of Internet technology, the content of web pages provided by various websites is becoming more and more abundant. Take various types of Weibo or video websites as an example. In a webpage of such a website, a variety of network resources may be provided for online viewing, including audio and video files, image files, and other webpage elements such as downloaded files. When a user visits a webpage containing these webpage elements, the webpage cannot display all the webpage elements in batches or in batches, so that the user cannot view all the webpage resources at a glance; when the user has downloading requirements for these web resources, the prior art does not have any prior art. Can provide users with a convenient way to download.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的网页元素的显示方法以及浏览器装置。In view of the above problems, the present invention has been made in order to provide a display method of a web page element 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 a webpage element is provided, including:
接收当前网页中网页元素的查找命令;Receiving a search command for a webpage element in the current webpage;
根据所述网页元素的查找命令,获取所述当前网页的源代码信息;Obtaining source code information of the current webpage according to the searching command of the webpage element;
从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;Extracting the specified label and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage;
依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。Display webpage elements corresponding to different types of specified tags and their download address information according to the type of the specified tag.
根据本发明的另一方面,提供了一种浏览器装置,包括:According to another aspect of the present invention, a browser apparatus is provided, comprising:
命令接收模块,适于接收当前网页中网页元素的查找命令;a command receiving module, configured to receive a search command of a webpage element in a current webpage;
源代码信息获取模块,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息;The source code information obtaining module is configured to obtain source code information of the current webpage according to the searching command of the webpage element;
信息提取模块,适于从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;An information extraction module, configured to extract, from the source code information of the current webpage, the specified address and the download address information recorded in the source information field of the webpage element in the specified label;
显示模块,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。The display module is configured to display webpage elements corresponding to different types of designated tags and download address information according to the type of the specified tag.
根据本发明的又一方面,提供了一种计算机程序,其包括计算机可 读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据上文所述的网页元素的显示方法。According to still another aspect of the present invention, a computer program including a computer Reading the code, when the computer readable code is run on a computing device, causes the computing device to perform a display method of web page elements in accordance with the above.
根据本发明的再一方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。According to still another aspect of the present invention, a computer readable medium storing the above computer program is provided.
本发明的有益效果为:The beneficial effects of the invention are:
根据本发明提供的上述方案,浏览器在接收到用户触发的网页元素的查找命令之后,获取网页的源代码信息,从源代码信息中提取指定标签以及指定标签内的源信息字段中记录的下载地址信息,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。利用本发明提供的方案,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源。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 acquires the source code information of the webpage, extracts the specified label from the source code information, and downloads the record recorded in the source information field in the specified label. The address information displays webpage elements corresponding to different types of specified tags and download address information according to the type of the specified tag. By using the solution provided by the invention, the user can view all the webpage elements of the webpage at a glance by triggering a search command, and the operation is convenient, and the user can conveniently search for the required resources in a large and complicated webpage resource.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示出了根据本发明一个实施例的网页元素的显示方法的流程图;1 shows a flow chart of a method of displaying web page elements in accordance with one embodiment of the present invention;
图2a示出了根据本发明另一个实施例的网页元素的显示方法的流程图;2a is a flow chart showing a method of displaying a webpage element according to another embodiment of the present invention;
图2b示出了根据本发明另一个实施例的网页元素的显示方法的显示界面示意图;2b is a schematic diagram showing a display interface of a method for displaying a webpage element according to another embodiment of the present invention;
图3示出了根据本发明又一个实施例的网页元素的显示方法的流程图;FIG. 3 is a flow chart showing a method of displaying a webpage element according to still another embodiment of the present invention; FIG.
图4示出了根据本发明一个实施例的浏览器装置的功能结构框图;FIG. 4 is a block diagram showing the functional structure of a browser device according to an embodiment of the present invention; FIG.
图5示出了根据本发明另一个实施例的浏览器装置的功能结构框图;FIG. 5 is a block diagram showing the functional structure of a browser device according to another embodiment of the present invention; FIG.
图6示出了根据本发明又一个实施例的浏览器装置的功能结构框图;FIG. 6 is a block diagram showing the functional structure of a browser device according to still another embodiment of the present invention; FIG.
图7示意性地示出了用于执行根据本发明的网页元素的显示方法的计算设备的框图;以及Figure 7 is a schematic block diagram of a computing device for performing a display method of a web page element in accordance with the present invention;
图8示意性地示出了用于保持或者携带实现根据本发明的网页元素 的显示方法的程序代码的存储单元。Figure 8 is a schematic illustration of a web page element for maintaining or carrying in accordance with the present invention. The storage unit of the program code of the display method.
具体实施方式detailed description
下面结合附图和具体的实施方式对本发明作进一步的描述。The invention is further described below in conjunction with the drawings and specific embodiments.
图1示出了根据本发明一个实施例的网页元素的显示方法的流程图。如图1所示,该方法包括如下步骤:FIG. 1 shows a flow chart of a method of displaying web page elements in accordance with one embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤S100,接收当前网页中网页元素的查找命令。Step S100: Receive a search command of a webpage element in a current webpage.
本发明实施例中,浏览器提供有查找网页中网页元素的功能选项或功能按钮。具体地,可以在浏览器的菜单选项中添加查找网页元素的功能选项或者在浏览器的网页右键属性中添加查找网页元素的功能选项,还可以在浏览器上添加查找网页元素的功能按钮。用户通过选择该功能选项或点击该功能按钮触发网页元素的查找命令。网页元素包含但不仅限于音频文件、视频文件、图片、脚本等。In the embodiment of the present invention, the browser provides a function option or a function button for finding a webpage element in the webpage. Specifically, a function option for finding a webpage element may be added in a menu option of the browser or a function of finding a webpage element may be added in a right-click property of a webpage of the browser, and a function button for finding a webpage element may be added to the browser. The user triggers a lookup command for a web page element by selecting the function option or clicking the function button. Web page elements include, but are not limited to, audio files, video files, images, scripts, and the like.
在浏览器同时加载了多个标签页的情况下,网页元素的查找命令的适用范围可以是当前处于焦点的标签页,即这里的当前网页指的是当前浏览器展现给用户的网页,所述的查找命令用于查找当前处于焦点的标签页中的网页元素;网页元素的查找命令的适用范围也可以是当前浏览器加载的所有标签页,即这里的当前网页包含当前浏览器加载的所有网页,所述的查找命令用于查找当前浏览器加载的所有网页中的网页元素。In the case that the browser loads a plurality of tabs at the same time, the scope of the search command of the webpage element may be the tab page currently in focus, that is, the current webpage here refers to the webpage displayed by the current browser to the user, The search command is used to find the webpage element in the tab that is currently in focus; the search command of the webpage element may also be all the tabs loaded by the current browser, that is, the current webpage here contains all the webpages loaded by the current browser. The search command is used to find webpage elements in all webpages loaded by the current browser.
步骤S101,根据网页元素的查找命令,获取当前网页的源代码信息。Step S101: Acquire source code information of the current webpage according to the search command of the webpage 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: Extract the specified address and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
网页的源代码信息是由HTML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。网页的源代码信息的结构包括头部(Head)、主体(Body)两大部分,其中头部描述浏览器所需的信息,而主体则包含所要说明的具体内容。本发明实施例中,主要在源代码的主体部分提取与网页元素有关的指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。The source code information of a web page is descriptive text composed of HTML commands, which can describe text, graphics, animation, sound, tables, links, and the like. The structure of the source code information of the webpage includes two parts: a header and a body, wherein the header describes the information required by the browser, and the subject contains the specific content to be described. In the embodiment of the present invention, the specified label related to the webpage element and the download address information recorded in the source information field of the webpage element in the specified label are extracted mainly in the main body part of the source code.
可选地,指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。 Optionally, the specified label includes: at least one of an <embed> tag, an <img> tag, a <script> tag, an <audio> tag, a <video> tag, and an <object> tag.
步骤S103,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。Step S103: Display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag.
本发明实施例对指定标签进行分类,按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。可选地,依据指定标签的类型显示当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。The embodiment of the present invention classifies the specified tags, and displays the webpage elements and the download address information in batches according to the type of the specified tags, and the webpage elements corresponding to the specified tags of the same type and the download address information thereof are displayed in batches as one category. Optionally, the webpage element corresponding to the different type of the specified label in all the webpages loaded by the current browser and the download address information thereof are displayed according to the type of the specified label.
本发明对指定标签的分类不做具体限定,举例来说,<embed>标签、<audio>标签和<video>标签作为流媒体文件的标签可以归类为同一类型:流媒体文件,但也可以分别归类为三个类型:Flash文件、音频和视频。<img>标签归类为图片;<script>标签归类为脚本;<object>标签归类为嵌入对象。具体地,<object>标签也可根据实际嵌入的文件类型进行归类,如果嵌入的文件类型为视频文件,那么<object>标签与<video>标签归为同一类型,依此类推。The present invention does not specifically limit the classification of a specified label. For example, <embed> tags, <audio> tags, and <video> tags can be classified as the same type as streaming media files: streaming media files, but also Classified into three types: Flash files, audio, and video. The <img> tag is classified as an image; the <script> tag is classified as a script; the <object> tag is classified as an embedded object. 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 by the embodiment, after receiving the search command of the webpage element triggered by the user, the browser acquires the source code information of the webpage, extracts the specified label from the source code information, and records the record in the source information field in the specified label. The download address information is displayed according to the type of the specified label, and the webpage element corresponding to the specified type of the label and the download address information thereof 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, and the operation is convenient, and the user can conveniently search for the required resources in a large number of complicated webpage resources.
图2a示出了根据本发明另一个实施例的网页元素的显示方法的流程图。如图2a所示,该方法包括如下步骤:2a shows a flow chart of a method of displaying web page elements in accordance with another embodiment of the present invention. As shown in FIG. 2a, the method includes the following steps:
步骤S200,接收当前网页中网页元素的查找命令。Step S200: Receive a search command of a webpage element in a current webpage.
本发明实施例中,浏览器提供有查找网页中网页元素的功能选项或功能按钮。具体地,可以在浏览器的菜单选项中添加查找网页元素的功能选项或者在浏览器的网页右键属性中添加查找网页元素的功能选项,还可以在浏览器上添加查找网页元素的功能按钮。用户通过选择该功能选项或点击该功能按钮触发网页元素的查找命令。网页元素包含但不仅限于音频文件、视频文件、图片、脚本等。In the embodiment of the present invention, the browser provides a function option or a function button for finding a webpage element in the webpage. Specifically, a function option for finding a webpage element may be added in a menu option of the browser or a function of finding a webpage element may be added in a right-click property of a webpage of the browser, and a function button for finding a webpage element may be added to the browser. The user triggers a lookup command for a web page element by selecting the function option or clicking the function button. Web page elements include, but are not limited to, audio files, video files, images, scripts, and the like.
在浏览器同时加载了多个标签页的情况下,网页元素的查找命令的适用范围可以是当前处于焦点的标签页,即这里的当前网页指的是当前浏览器展现给用户的网页,所述的查找命令用于查找当前处于焦点的标 签页中的网页元素;网页元素的查找命令的适用范围也可以是当前浏览器加载的所有标签页,即这里的当前网页包含当前浏览器加载的所有网页,所述的查找命令用于查找当前浏览器加载的所有网页中的网页元素。In the case that the browser loads a plurality of tabs at the same time, the scope of the search command of the webpage element may be the tab page currently in focus, that is, the current webpage here refers to the webpage displayed by the current browser to the user, The find command is used to find the target that is currently in focus. The webpage element in the page; the scope of the search command of the webpage element may also be all the tabs loaded by the current browser, that is, the current webpage here contains all the webpages loaded by the current browser, and the search command is used to find the current webpage. The page element in all pages loaded by the browser.
步骤S201,根据网页元素的查找命令,获取当前网页的源代码信息。Step S201: Acquire source code information of the current webpage according to the search command of the webpage 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: Extract the specified address and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
网页的源代码信息是由HTML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。网页的源代码信息的结构包括头部(Head)、主体(Body)两大部分,其中头部描述浏览器所需的信息,而主体则包含所要说明的具体内容。本发明实施例中,主要在源代码的主体部分提取与网页元素有关的指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。The source code information of a web page is descriptive text composed of HTML commands, which can describe text, graphics, animation, sound, tables, links, and the like. The structure of the source code information of the webpage includes two parts: a header and a body, wherein the header describes the information required by the browser, and the subject contains the specific content to be described. In the embodiment of the present invention, the specified label related to the webpage element and the download address information recorded in the source information field of the webpage element in the specified label are extracted mainly in the main body part of the source code.
可选地,指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。Optionally, the specified label includes: at least one of an <embed> tag, an <img> tag, a <script> tag, an <audio> tag, a <video> tag, and an <object> tag.
举例来说,从源代码信息中提取某个<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 an <img> tag from the source code 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 picture home page">.
通知识别“img”获知上述信息为<img>标签,接着识别<img>标签内的源信息字段,即“src”字段,该字段记录的信息就是网页元素的下载地址信息,上述“http://img0.bdstatic.com/static/common/widget/search_box_search/logo/logo_3b6de4c.png”即为图片的下载地址信息。The notification identifies "img" to know that the above information is an <img> tag, and then identifies a source information field in the <img> tag, that is, a "src" field, and the information recorded in the field is the download address information of the webpage element, the above "http:/ /img0.bdstatic.com/static/common/widget/search_box_search/logo/logo_3b6de4c.png" is the download address information of the image.
依据上述例子的方法,能够从网页中提取出所有网页元素的指定标签及网页元素的下载地址信息。According to the method of the above example, the specified tag of all webpage elements and the download address information of the webpage element can be extracted from the webpage.
步骤S203,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。Step S203: Display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag.
本发明实施例对指定标签进行分类,按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。具体地,本实施例可以通过弹出对话框的方式显示网页元素及其下载地址信息。在该对话框中,以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网 页元素。The embodiment of the present invention classifies the specified tags, and displays the webpage elements and the download address information in batches according to the type of the specified tags, and the webpage elements corresponding to the specified tags of the same type and the download address information thereof are displayed in batches as one category. Specifically, in this embodiment, the webpage element and the download address information thereof can be displayed by popping up a dialog box. In the dialog box, the icon is displayed in the form of an icon of a different type or in the form of a thumbnail of a web page element. Page element.
图2b示出了根据本发明另一个实施例的网页元素的显示方法的显示界面示意图。如图2b所示,该显示界面以对话框的方式显示出查找到的网页元素及其下载地址信息。在图2b中,指定标签归为三个类型:视频、音频和图片,表明所要提取的指定标签至少包含:<video>标签、<audio>标签和<img>标签,可选地,还可以包含:<embed>标签和<object>标签。该对话框提供了“视频”、“音频”、“图片”和“全部类型”的切换选项以供用户查询属于某一类型或全部类型的网页元素。另外,对话框还提供了标签页的下拉框,以供用户查询其它标签页的网页元素。图2b当前批量显示归类为图片的网页元素及其下载地址信息,网页元素以图标的形式进行显示,当用户将鼠标焦点置于某图标之上超过某时间阈值(例如3s)时,以缩略图的形式显示网页元素,该缩略图即为原图片的缩略图。FIG. 2b is a schematic diagram showing a display interface of a method for displaying a webpage element according to another embodiment of the present invention. As shown in FIG. 2b, the display interface displays the found webpage elements and their download address information in a dialog box manner. In Figure 2b, the specified tags are grouped into three types: video, audio, and picture, indicating that the specified tag to be extracted contains at least: <video> tag, <audio> tag, and <img> tag, optionally, can also contain : <embed> tag and <object> tag. This dialog provides switching options for Video, Audio, Picture, and All Types for users to query for webpage elements that belong to a type or all types. In addition, the dialog box provides a drop-down box for the tab page for the user to query the page elements of other tabs. 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. When the user places the focus of the mouse over an icon for more than a certain time threshold (for example, 3s), The form of the thumbnail displays the web page element, which is the thumbnail of the original image.
步骤S204,接收网页元素对应的文件的下载命令。Step S204, receiving a download command of a file corresponding to the webpage element.
如图2b所示,对话框还提供了“下载选中的文件”的按钮,如果用户选中某些网页元素并点击该按钮后,则触发对应文件的下载命令。As shown in FIG. 2b, the dialog box also provides a button for downloading the selected file. If the user selects certain webpage elements and clicks the button, the download command of the corresponding file is triggered.
步骤S205,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。Step S205: Download the file corresponding to the webpage element to the designated folder according to the download address information of the webpage element.
浏览器接收到网页元素对应的文件的下载命令之后,将网页元素对应的文件下载到指定文件夹。具体地,本实施例提供了如下三种下载方式: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 a system interface for obtaining a local cache path of the file, and transmitting the download address information of the webpage element to the system interface for obtaining the local cache path of the file, thereby obtaining a local cache path of the file corresponding to the webpage element; The files stored under the local cache path are copied to the specified folder.
各种类型的浏览器都具有本地缓存,本地缓存默认安装在系统区,它存储有访问网页的某些网页资源,例如图片等。也就是说,对于图片这类网页元素,一旦网页加载完成之后,这些网页元素会被存储到本地缓存中,因此可以通过查找本地缓存路径,将本地缓存路径下的文件拷贝出来实现文件的下载。Various types of browsers have a local cache, which is installed by default in the system area, which stores certain web resources such as images that access web pages. That is to say, for webpage elements such as images, once the webpage is loaded, the webpage elements are stored in the local cache, so the file can be downloaded by copying the file under the local cache path by searching the local cache path.
可选地,本实施例利用系统提供的API(Application Program Interface,应用程序编程接口)函数:InternetGetCache()来获取本地缓存路径。具体地,调用InternetGetCache(),并将网页元素的下载地址作为 该API函数的参数,该API函数的返回值就是存储有网页元素对应的文件的本地缓存路径;而后,将本地缓存路径下存储的网页元素对应的文件复制到指定文件夹,从而实现将文件下载到指定文件夹。Optionally, the embodiment uses an API (Application Programming Interface) function provided by the system: InternetGetCache() to obtain a local cache path. Specifically, call InternetGetCache() and use the download address of the web page element as The parameter of the API function, the return value of the API function is a local cache path for storing a file corresponding to the webpage element; and then, copying the file corresponding to the webpage element stored in the local cache path to the specified folder, thereby downloading the file Go to the specified folder.
(2)调用浏览器内建下载器或独立于浏览器的下载器去下载地址信息对应的服务器处下载网页元素对应的文件,并将网页元素对应的文件保存到指定文件夹。(2) Invoking the browser built-in downloader or the browser-independent downloader to download the file corresponding to the webpage element at the server corresponding to the address information, and save the file corresponding to the webpage element to the specified folder.
对于某些音频和视频文件,以及其它不允许缓存的文件来说,可直接调用下载器去对应的服务器处下载相应文件,并将文件保存到指定文件夹。For some audio and video files, as well as other files that do not allow caching, you can directly call the downloader to the corresponding server to download the file and save the file to the specified folder.
(3)根据网页的名称和/或URL和/或网页的描述性信息,提取网页元素的特征信息;根据网页元素的特征信息,去提供下载资源的服务器处查找并下载网页元素对应的文件,将网页元素对应的文件保存到指定文件夹。(3) extracting feature information of the webpage element according to the name of the webpage and/or the descriptive information of the webpage and/or the webpage; and searching for and downloading the file corresponding to the webpage element by the server providing the downloading resource according to the feature information of the webpage element, Save the file corresponding to the web page element to the specified folder.
对于某些音频和视频文件,所获取的下载地址信息有可能仅仅是文件中某个片段的下载地址,也有可能并不是文件真实的下载地址,例如仅为音视频的播放地址。对于这种情况,本实施例可采用重新查找提供下载资源服务器的方式下载对应的文件。For some audio and video files, the downloaded download address information may be only the download address of a certain clip in the file, or it may not be the actual download address of the file, for example, only the play address of the audio and video. For this case, the embodiment may download the corresponding file in a manner of re-finding the download resource server.
一般来说,在线音视频的观看网页的网页名称和/或URL和/或网页的描述性信息中记录有音视频的相关信息,例如音视频的名称、剧集信息、剧情介绍、视频分辨率等信息,利用提取关键字的方法提取音视频文件的特征信息;根据这些特征信息在搜索服务器查找相应的资源,然后将提供下载资源的服务器的URL返回给客户端,以供客户端调用下载器去提供下载资源的服务器下载相应文件,并将文件保存到指定文件夹。Generally, the information such as the name of the audio and video, the episode information, the story introduction, and the video resolution are recorded in the webpage name and/or the URL and/or the descriptive information of the webpage of the online audio and video viewing webpage. And the like, extracting the feature information of the audio and video file by using the method of extracting keywords; searching for the corresponding resource in the search server according to the feature information, and then returning the URL of the server providing the downloaded resource to the client, so that the client calls the downloader Go to the server that provides the download resource to download the corresponding file and save the file to the specified folder.
根据本实施例提供的上述方法,浏览器在接收到用户触发的网页元素的查找命令之后,获取网页的源代码信息,从源代码信息中提取指定标签以及指定标签内的源信息字段中记录的下载地址信息,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息,在用户触发文件的下载命令之后,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。利用本实施例提供的方法,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源;进一步的,当用户对这些网络资源具有下载需求时,通过交互界面给用户提供了便捷的下载方式。 According to the above method provided by the embodiment, after receiving the search command of the webpage element triggered by the user, the browser acquires the source code information of the webpage, extracts the specified label from the source code information, and records the record in the source information field in the specified label. Downloading the address information, displaying the webpage element corresponding to the specified type of the label and the downloading address information according to the type of the specified label, and downloading the file corresponding to the webpage element to the specified webpage element according to the downloading address information of the webpage element after the downloading command of the user triggering the file folder. By using 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, and the operation is convenient, and the user can conveniently search for the required resources in a large number of complicated webpage resources; further, when the user pairs When these network resources have download requirements, the user interface provides a convenient download method through the interactive interface.
图3示出了根据本发明又一个实施例的网页元素的显示方法的流程图。如图3所示,该方法包括如下步骤:FIG. 3 shows a flow chart of a method of displaying web page elements in accordance with still another embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
步骤S300,接收当前网页中网页元素的查找命令。Step S300: Receive a search command of a webpage element in the current webpage.
步骤S301,根据网页元素的查找命令,获取当前网页的源代码信息。Step S301: Acquire source code information of the current webpage according to the search command of the webpage element.
步骤S302,从当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。Step S302: Extract the specified address and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
上述步骤S300-步骤S302的具体过程可以参见上述方法实施例的步骤S200-步骤S202,在此不再赘述。For the specific process of the foregoing steps S300-S302, refer to step S200-step S202 of the foregoing method embodiment, and details are not described herein again.
步骤S303,调用用于获取文件本地缓存路径的系统接口,并将网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取网页元素对应的文件的本地缓存路径。Step S303, the system interface for obtaining the local cache path of the file is invoked, and the download address information of the webpage element is transmitted to the system interface for obtaining the local cache path of the file, so as to obtain 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, the API function provided by the system is called: InternetGetCache(), and the download address of the webpage element is used as a parameter of the API function, and the return value of the API function is the file corresponding to the webpage element. Local cache path.
步骤S304,获取本地缓存路径下存储的文件的文件头信息,文件头信息包含文件类型。Step S304: Obtain file header information of a file stored in a local cache path, where the file header information includes a file type.
对于在本地缓存路径下存储的文件,其文件头信息都记录有文件的相关信息,包含文件类型、文件大小信息等。以图片文件为例,通过文件头信息能够识别图片的具体格式,如JPEG、PNG等。For files stored in the local cache path, the file header information records information about the file, including file type, file size information, and the like. Taking a picture file as an example, the specific format of the picture, such as JPEG, PNG, etc., can be identified by the file header information.
步骤S305,按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。Step S305, classifying the webpage elements of different types of designated tags and different file types and their download address information according to the type of the specified tag and the file type.
在识别出文件类型的情况下,结合指定标签的类型和文件类型,分类显示网页元素及其下载地址信息。例如,对于图片文件,可以根据文件类型做细分类,以供用户更明确地查找所需要的资源。In the case of identifying the file type, the webpage element and its download address information are classified and displayed in combination with the type and file type of the specified tag. For example, for image files, you can make a fine classification based on the file type, so that users can find the required resources more clearly.
另外,在显示网页元素及其下载地址信息的同时,还可显示网页元素对应的文件的文件大小信息。如图2b所示,显示界面中所显示的文件大小就是通过从本地缓存路径下存储的文件的文件头信息中获取的。In addition, while displaying the webpage element and the download address information thereof, the file size information of the file corresponding to the webpage element may also be displayed. As shown in FIG. 2b, the file size displayed in the display interface is obtained by the file header information of the file stored from the local cache path.
步骤S306,接收网页元素对应的文件的下载命令。Step S306, receiving a download command of a file corresponding to the webpage element.
步骤S307,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。Step S307: Download the file corresponding to the webpage element to the designated folder according to the download address information of the webpage element.
对于图片文件或其它存储在本地缓存中的文件,由于通过步骤S303已经获取本地缓存路径,则本步骤可直接将本地缓存路径下的文件拷贝出来实现文件的下载。 For the picture file 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 under the local cache path to implement file downloading.
除此之外,还可采用上述方法实施例提供的第(2)种和第(3)种下载方式下载网页元素对应的文件,在此不再赘述。In addition, the files corresponding to the downloading webpage elements in the (2) and (3) downloading modes provided by the foregoing method embodiments may be used, and details are not described herein again.
根据本实施例提供的上述方法,能够按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息,以便于用户更明确地查找所需要的资源。According to the above method provided by the embodiment, the webpage elements of different types of designated tags and different file types and their download address information can be classified according to the type of the specified tag and the file type, so that the user can more clearly find the required resources.
图4示出了根据本发明一个实施例的浏览器装置的功能结构框图。如图4所示,浏览器装置包括:命令接收模块401、源代码信息获取模块402、信息提取模块403以及显示模块404。FIG. 4 is a block diagram showing the functional structure 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 of a webpage element in the current webpage. In the embodiment of the present invention, the browser provides a function option or a function button for finding a webpage element in the webpage. Specifically, a function option for finding a webpage element may be added in a menu option of the browser or a function of finding a webpage element may be added in a right-click property of a webpage of the browser, and a function button for finding a webpage element may be added to the browser. The user triggers a lookup command for a web page element by selecting the function option or clicking the function button. Web page elements include, but are not limited to, audio files, video files, images, scripts, and the like.
源代码信息获取模块402,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息。这里的源代码信息是指网页的HTML代码。网页的源代码信息是由HTML命令组成的描述性文本,HTML命令可以说明文字、图形、动画、声音、表格、链接等。网页的源代码信息的结构包括头部(Head)、主体(Body)两大部分,其中头部描述浏览器所需的信息,而主体则包含所要说明的具体内容。The source code information obtaining module 402 is adapted to obtain 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 descriptive text composed of HTML commands, which can describe text, graphics, animation, sound, tables, links, and the like. The structure of the source code information of the webpage includes two parts: a header and a body, wherein the header describes the information required by the browser, and the subject contains the specific content to be described.
信息提取模块403,适于从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。具体地,信息提取模块403主要在源代码的主体部分提取与网页元素有关的指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息。可选地,指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。The information extraction module 403 is adapted to extract the specified label and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage. Specifically, the information extraction module 403 extracts the specified tag related to the webpage element and the download address information recorded in the source information field of the webpage element within the specified tag mainly in the main body portion of the source code. Optionally, the specified label includes: at least one of an <embed> tag, an <img> tag, a <script> tag, an <audio> tag, a <video> tag, and an <object> tag.
显示模块404,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。显示模块404按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。可选地,依据指定标签的类型显示当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。 The display module 404 is adapted to display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag. The display module 404 displays the webpage elements and the download address information in batches according to the type of the specified label, and the webpage elements corresponding to the designated tags of the same type and the download address information thereof are displayed in batches as one category. Optionally, the webpage element corresponding to the different type of the specified label in all the webpages loaded by the current browser and the download address information thereof are displayed according to the type of the specified label.
图5示出了根据本发明另一个实施例的浏览器装置的功能结构框图。如图5所示,浏览器装置包括:命令接收模块501、源代码信息获取模块502、信息提取模块503、显示模块504以及下载模块505。FIG. 5 is a block diagram showing the functional structure 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 display module 504, and a downloading module 505.
命令接收模块501,适于接收当前网页中网页元素的查找命令以及接收所述网页元素对应的文件的下载命令。在浏览器同时加载了多个标签页的情况下,网页元素的查找命令的适用范围可以是当前处于焦点的标签页,即这里的当前网页指的是当前浏览器展现给用户的网页,所述的查找命令用于查找当前处于焦点的标签页中的网页元素;网页元素的查找命令的适用范围也可以是当前浏览器加载的所有标签页,即这里的当前网页包含当前浏览器加载的所有网页,所述的查找命令用于查找当前浏览器加载的所有网页中的网页元素。The command receiving module 501 is adapted to receive a search command of a webpage element in the current webpage and a download command to receive the file corresponding to the webpage element. In the case that the browser loads a plurality of tabs at the same time, the scope of the search command of the webpage element may be the tab page currently in focus, that is, the current webpage here refers to the webpage displayed by the current browser to the user, The search command is used to find the webpage element in the tab that is currently in focus; the search command of the webpage element may also be all the tabs loaded by the current browser, that is, the current webpage here contains all the webpages loaded by the current browser. The search command is used to find webpage elements in all webpages loaded by the current browser.
源代码信息获取模块502,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息。The source code information obtaining module 502 is adapted to obtain 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 label and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage.
显示模块504,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。本发明实施例对指定标签进行分类,按照指定标签的类型分类批量显示网页元素及其下载地址信息,同一类型的指定标签对应的网页元素及其下载地址信息作为一个类别进行批量显示。具体地,本实施例可以通过弹出对话框的方式显示网页元素及其下载地址信息。在该对话框中,以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网页元素。具体示例可参见图2b。The display module 504 is configured to display webpage elements corresponding to different types of designated tags and download address information thereof according to the type of the specified tag. The embodiment of the present invention classifies the specified tags, and displays the webpage elements and the download address information in batches according to the type of the specified tags, and the webpage elements corresponding to the specified tags of the same type and the download address information thereof are displayed in batches as one category. Specifically, in this embodiment, the webpage element and the download address information thereof can be displayed by popping up a dialog box. In this dialog box, web page elements are displayed in the form of icons of different types of specified labels or as thumbnails of web page elements. See Figure 2b for a specific example.
下载模块505,适于根据所述网页元素的下载地址信息,将所述网页元素对应的文件下载到指定文件夹。The downloading module 505 is adapted to download the file corresponding to the webpage element to the specified folder according to the download address information of the webpage element.
可选地,下载模块505进一步包括:Optionally, the downloading module 505 further includes:
系统接口调用单元5051,适于调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;The system interface invoking unit 5051 is adapted to invoke a system interface for obtaining a local cache path of the file, and the download address information of the webpage element is transmitted to the system interface for obtaining a local cache path of the file, thereby acquiring the webpage element. The local cache path of the corresponding file;
复制单元5052,适于将所述本地缓存路径下存储的文件复制到所述指定文件夹。The copying unit 5052 is adapted to copy the file stored under the local cache path to the specified folder.
可选地,下载模块505进一步包括:Optionally, the downloading module 505 further includes:
下载器调用单元5053,适于调用浏览器内建下载器或独立于浏览器 的下载器去所述下载地址信息对应的服务器处下载所述网页元素对应的文件,并将所述网页元素对应的文件保存到指定文件夹。The downloader calling unit 5053 is adapted to invoke the browser built-in downloader or is independent of the browser The downloader downloads the file corresponding to the webpage element to the server corresponding to the download address information, and saves the file corresponding to the webpage element to the specified folder.
可选地,下载模块505进一步包括:Optionally, the downloading module 505 further includes:
特征提取单元5054,适于根据所述网页的名称和/或URL和/或所述网页的描述性信息,提取所述网页元素的特征信息;The feature extraction unit 5054 is adapted to extract feature information of the webpage element according to the name and/or the URL of the webpage and/or the descriptive information of the webpage;
下载单元5055,适于根据所述网页元素的特征信息,去提供下载资源的服务器处查找并下载所述网页元素对应的文件,将所述网页元素对应的文件保存到指定文件夹。The downloading unit 5055 is configured to: according to the feature information of the webpage element, search for and download a file corresponding to the webpage element at a server that provides the downloading resource, and save the file corresponding to the webpage element to the specified folder.
图6示出了根据本发明又一个实施例的浏览器装置的功能结构框图。如图6所示,浏览器装置包括:命令接收模块601、源代码信息获取模块602、信息提取模块603、调用模块604、文件头信息获取模块605、显示模块606以及下载模块607。FIG. 6 is a block diagram showing the functional structure of a browser device according to still another embodiment of the present invention. As shown in FIG. 6, the browser device includes a command receiving module 601, a source code information acquiring module 602, an information extracting module 603, a calling module 604, a file header information acquiring module 605, a display module 606, and a downloading module 607.
其中,命令接收模块601、源代码信息获取模块602、信息提取模块603的具体介绍可参见上述装置实施例。For details of the command receiving module 601, the source code information obtaining module 602, and the information extracting module 603, refer to the foregoing device embodiments.
调用模块604,适于调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径。具体地,在获取网页元素的下载地址信息之后,调用模块604调用系统提供的API函数:InternetGetCache(),并将网页元素的下载地址作为该API函数的参数,该API函数的返回值就是存储有网页元素对应的文件的本地缓存路径。The calling module 604 is adapted to invoke a system interface for obtaining a local cache path of the file, and the download address information of the webpage element is transmitted to the system interface for obtaining a local cache path of the file, so as to obtain the corresponding information of the webpage element. The local cache path of the file. Specifically, after acquiring the download address information of the webpage element, the calling module 604 invokes an 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. The local cache path of the file corresponding to the web page element.
文件头信息获取模块605,适于获取所述本地缓存路径下存储的文件的文件头信息,所述文件头信息包含文件类型。The file header information obtaining module 605 is configured to obtain file header information of a file stored in the local cache path, where the file header information includes a file type.
显示模块606进一步适于:按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。The display module 606 is further adapted to: categorize webpage elements of different types of specified tags and different file types and their download address information according to the type of the specified tag and the file type.
可选地,文件头信息还包括文件大小信息;显示模块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 the download address information thereof.
本实施例的下载模块607与图5所示的实施例的下载模块505的不同之处在于,该下载模块607不包含系统接口调用单元5051,复制单元5052可以直接从调用模块604获取网页元素对应的文件的本地缓存路径。两者的其它功能单元是相同的。 The download module 607 of the embodiment is different from the download module 505 of the embodiment shown in FIG. 5 in that the download module 607 does not include the system interface invoking unit 5051, and the copying unit 5052 can directly obtain the webpage element corresponding from the calling module 604. The local cache path of the file. The other functional units of the two are the same.
根据本发明上述实施例提供的装置,浏览器在接收到用户触发的网页元素的查找命令之后,获取网页的源代码信息,从源代码信息中提取指定标签以及指定标签内的源信息字段中记录的下载地址信息,依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息,在用户触发文件的下载命令之后,根据网页元素的下载地址信息,将网页元素对应的文件下载到指定文件夹。利用本发明上述实施例提供的装置,用户通过触发一查找命令就可以一目了然的查看网页的所有网页元素,操作便捷,便于用户在多而繁杂的网页资源批量查找所需要的资源;进一步的,当用户对这些网络资源具有下载需求时,通过交互界面给用户提供了便捷的下载方式。上述装置还能够按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息,以便于用户更明确地查找所需要的资源。According to the apparatus provided by the above embodiment of the present invention, after receiving the search command of the webpage element triggered by the user, the browser acquires the source code information of the webpage, extracts the specified label from the source code information, and records the source information field in the specified label. Downloading address information, displaying webpage elements corresponding to different types of specified tags and downloading address information according to the type of the specified tag, and downloading the file corresponding to the webpage element according to the downloading address information of the webpage element after the user triggers the downloading command of the file Specify a folder. With the device provided by the foregoing embodiment of the present invention, the user can view all the webpage elements of the webpage at a glance by triggering a search command, and the operation is convenient, and the user can conveniently search for the required resources in a large and complicated webpage resource; further, when When users have download requirements for these network resources, they provide users with convenient download methods through the interactive interface. The device can also display webpage elements of different types of specified tags and different file types and their download address information according to the type of the specified tag and the file type, so that the user can more clearly find the required resources.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包 括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Moreover, those skilled in the art will appreciate that although some embodiments are described herein Some of the features included in the other embodiments are not the other features, but combinations of the features of the different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a browser device in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the 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 an Internet website, provided on a carrier signal, or provided in any other form.
例如,图7示出了可以实现在智能终端之间传输数据的方法的计算设备。该计算设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图8所述的便携式或者固定存储单元。该存储单元可以具有与图7的计算设备中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 7 illustrates a computing device that can implement a method of transferring data between smart terminals. The computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720. Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above. For example, storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 720 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 731', ie, code readable by a processor, such as 710, that when executed by a computing device causes the computing device to perform each of the methods described above step.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。&quot;an embodiment,&quot; or &quot;an embodiment,&quot; or &quot;an embodiment,&quot; In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构 造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference symbol between parentheses should not be constructed Causes restrictions on claims. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (22)

  1. 一种网页元素的显示方法,包括:A method for displaying webpage elements, including:
    接收当前网页中网页元素的查找命令;Receiving a search command for a webpage element in the current webpage;
    根据所述网页元素的查找命令,获取所述当前网页的源代码信息;Obtaining source code information of the current webpage according to the searching command of the webpage element;
    从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;Extracting the specified label and the download address information recorded in the source information field of the webpage element in the specified label from the source code information of the current webpage;
    依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。Display webpage elements corresponding to different types of specified tags and their download address information according to the type of the specified tag.
  2. 根据权利要求1所述的方法,所述当前网页包含当前浏览器加载的所有网页;所述依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息具体为:依据指定标签的类型显示所述当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。The method according to claim 1, wherein the current webpage includes all the webpages loaded by the current browser; and the webpage elements corresponding to the different types of designated tags and the downloading address information thereof are displayed according to the type of the specified tag: The type displays the webpage element corresponding to the different type specified label in all the webpages loaded by the current browser and the download address information thereof.
  3. 根据权利要求1或2所述的方法,在所述显示网页元素及其下载地址信息之后进一步包括:The method according to claim 1 or 2, after the displaying the webpage element and the download address information thereof, further comprising:
    接收所述网页元素对应的文件的下载命令;Receiving a download command of a file corresponding to the webpage element;
    根据所述网页元素的下载地址信息,将所述网页元素对应的文件下载到指定文件夹。And downloading, according to the download address information of the webpage element, the file corresponding to the webpage element to the specified folder.
  4. 根据权利要求3所述的方法,所述将网页元素对应的文件下载到指定文件夹进一步包括:The method of claim 3, the downloading the file corresponding to the webpage element to the specified folder further comprises:
    调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;Calling a system interface for obtaining a local cache path of the file, and transmitting the download address information of the webpage element to the system interface for obtaining a local cache path of the file, so as to obtain a local cache path of the file corresponding to the webpage element;
    将所述本地缓存路径下存储的文件复制到所述指定文件夹。Copying the file stored under the local cache path to the specified folder.
  5. 根据权利要求3所述的方法,所述将网页元素对应的文件下载到指定文件夹进一步包括:The method of claim 3, the downloading the file corresponding to the webpage element to the specified folder further comprises:
    调用浏览器内建下载器或独立于浏览器的下载器去所述下载地址信息对应的服务器处下载所述网页元素对应的文件,并将所述网页元素对应的文件保存到指定文件夹。The browser built-in downloader or the browser-independent downloader is used to download the file corresponding to the webpage element at the server corresponding to the download address information, and save the file corresponding to the webpage element to the designated folder.
  6. 根据权利要求3所述的方法,所述将网页元素对应的文件下载到指定文件夹进一步包括:The method of claim 3, the downloading the file corresponding to the webpage element to the specified folder further comprises:
    根据所述网页的名称和/或URL和/或所述网页的描述性信息,提取所述网页元素的特征信息;Extracting feature information of the webpage element according to the name and/or URL of the webpage and/or descriptive information of the webpage;
    根据所述网页元素的特征信息,去提供下载资源的服务器处查找并下载所述网页元素对应的文件,将所述网页元素对应的文件保存到指定文件夹。 And searching for and downloading a file corresponding to the webpage element, and saving the file corresponding to the webpage element to the specified folder, according to the feature information of the webpage element.
  7. 根据权利要求1-6任一项所述的方法,所述指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。The method according to any one of claims 1 to 6, wherein the specified tag comprises: an <embed> tag, an <img> tag, a <script> tag, an <audio> tag, a <video> tag, and an <object> tag. At least one of them.
  8. 根据权利要求1-7任一项所述的方法,所述显示不同类型指定标签对应的网页元素具体为:以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网页元素。The method according to any one of claims 1 to 7, wherein the displaying the webpage elements corresponding to the different types of designated tags is specifically: displaying the webpage elements in the form of icons of different types of designated labels or in the form of thumbnails of webpage elements.
  9. 根据权利要求1所述的方法,在所述依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息之前还包括:The method according to claim 1, further comprising: before displaying the webpage element corresponding to the different type of designated label and the download address information thereof according to the type of the specified label:
    调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;Calling a system interface for obtaining a local cache path of the file, and transmitting the download address information of the webpage element to the system interface for obtaining a local cache path of the file, so as to obtain a local cache path of the file corresponding to the webpage element;
    获取所述本地缓存路径下存储的文件的文件头信息,所述文件头信息包含文件类型;Obtaining file header information of a file stored in the local cache path, where the file header information includes a file type;
    所述依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息具体为:按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。The displaying, according to the type of the specified label, the webpage element corresponding to the different type of the specified label and the downloading address information thereof are: displaying the webpage elements of different types of specified labels and different file types and their download addresses according to the type of the specified label and the file type. information.
  10. 根据权利要求9所述的方法,所述文件头信息还包括文件大小信息;在显示网页元素及其下载地址信息的同时,还显示所述网页元素对应的文件的文件大小信息。The method according to claim 9, wherein the file header information further comprises file size information; and the file size information of the file corresponding to the webpage element is also displayed while the webpage element and the download address information thereof are displayed.
  11. 一种浏览器装置,包括:A browser device comprising:
    命令接收模块,适于接收当前网页中网页元素的查找命令;a command receiving module, configured to receive a search command of a webpage element in a current webpage;
    源代码信息获取模块,适于根据所述网页元素的查找命令,获取所述当前网页的源代码信息;The source code information obtaining module is configured to obtain source code information of the current webpage according to the searching command of the webpage element;
    信息提取模块,适于从所述当前网页的源代码信息中提取指定标签以及指定标签内的网页元素的源信息字段中记录的下载地址信息;An information extraction module, configured to extract, from the source code information of the current webpage, the specified address and the download address information recorded in the source information field of the webpage element in the specified label;
    显示模块,适于依据指定标签的类型显示不同类型指定标签对应的网页元素及其下载地址信息。The display module is configured to display webpage elements corresponding to different types of designated tags and download address information according to the type of the specified tag.
  12. 根据权利要求11所述的浏览器装置,所述当前网页包含当前浏览器加载的所有网页;所述显示模块具体适于:依据指定标签的类型显示所述当前浏览器加载的所有网页中不同类型指定标签对应的网页元素及其下载地址信息。The browser device according to claim 11, wherein the current webpage includes all webpages loaded by the current browser; the display module is specifically adapted to: display different types of all webpages loaded by the current browser according to the type of the specified label Specify the webpage element corresponding to the label and its download address information.
  13. 根据权利要求11或12所述的浏览器装置,所述命令接收模块还适于:接收所述网页元素对应的文件的下载命令;The browser device according to claim 11 or 12, wherein the command receiving module is further adapted to: receive a download command of a file corresponding to the webpage element;
    所述装置还包括:下载模块,适于根据所述网页元素的下载地址信息,将所述网页元素对应的文件下载到指定文件夹。The device further includes: a downloading module, configured to download the file corresponding to the webpage element to the specified folder according to the download address information of the webpage element.
  14. 根据权利要求13所述的浏览器装置,所述下载模块进一步包括:The browser device of claim 13, the downloading module further comprising:
    系统接口调用单元,适于调用用于获取文件本地缓存路径的系统接 口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;The system interface calling unit is adapted to invoke a system connection for obtaining a local cache path of the file. a port, and the download address information of the webpage element is transmitted to the system interface for obtaining a local cache path of the file, so as to obtain a local cache path of the file corresponding to the webpage element;
    复制单元,适于将所述本地缓存路径下存储的文件复制到所述指定文件夹。a copy unit adapted to copy a file stored under the local cache path to the specified folder.
  15. 根据权利要求13所述的浏览器装置,所述下载模块进一步包括:The browser device of claim 13, the downloading module further comprising:
    下载器调用单元,适于调用浏览器内建下载器或独立于浏览器的下载器去所述下载地址信息对应的服务器处下载所述网页元素对应的文件,并将所述网页元素对应的文件保存到指定文件夹。a downloader calling unit, configured to invoke a browser built-in downloader or a browser-independent downloader to download a file corresponding to the webpage element at a server corresponding to the download address information, and the file corresponding to the webpage element Save to the specified folder.
  16. 根据权利要求13所述的浏览器装置,所述下载模块进一步包括:The browser device of claim 13, the downloading module further comprising:
    特征提取单元,适于根据所述网页的名称和/或URL和/或所述网页的描述性信息,提取所述网页元素的特征信息;a feature extraction unit, configured to extract feature information of the webpage element according to a name and/or a URL of the webpage and/or descriptive information of the webpage;
    下载单元,适于根据所述网页元素的特征信息,去提供下载资源的服务器处查找并下载所述网页元素对应的文件,将所述网页元素对应的文件保存到指定文件夹。The downloading unit is configured to: according to the feature information of the webpage element, find and download a file corresponding to the webpage element at a server that provides the downloading resource, and save the file corresponding to the webpage element to the specified folder.
  17. 根据权利要求11-16任一项所述的浏览器装置,所述指定标签包括:<embed>标签、<img>标签、<script>标签、<audio>标签、<video>标签、<object>标签中的至少一个。The browser device according to any one of claims 11 to 16, wherein the specified tag comprises: an <embed> tag, an <img> tag, a <script> tag, an <audio> tag, a <video> tag, an <object> At least one of the tags.
  18. 根据权利要求11-17任一项所述的浏览器装置,所述显示模块具体适于:以不同类型指定标签的图标的形式或者以网页元素缩略图的形式显示网页元素。The browser device according to any one of claims 11-17, 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 thumbnails of webpage elements.
  19. 根据权利要求11所述的浏览器装置,还包括:The browser device of claim 11, further comprising:
    调用模块,适于调用用于获取文件本地缓存路径的系统接口,并将所述网页元素的下载地址信息传递给该用于获取文件本地缓存路径的系统接口,从而获取所述网页元素对应的文件的本地缓存路径;The calling module is adapted to invoke a system interface for obtaining a local cache path of the file, and the download address information of the webpage element is transmitted to the system interface for obtaining a local cache path of the file, thereby acquiring the file corresponding to the webpage element. Local cache path;
    文件头信息获取模块,适于获取所述本地缓存路径下存储的文件的文件头信息,所述文件头信息包含文件类型;a file header information obtaining module, configured to obtain file header information of a file stored in the local cache path, where the file header information includes a file type;
    所述显示模块进一步适于:按照指定标签的类型以及文件类型,分类显示不同类型指定标签和不同文件类型的网页元素及其下载地址信息。The display module is further adapted to: classify and display webpage elements of different types of designated tags and different file types and download address information thereof according to the type of the specified tag and the file type.
  20. 根据权利要求19所述的浏览器装置,所述文件头信息还包括文件大小信息;所述显示模块进一步适于:在显示网页元素及其下载地址信息的同时,还显示所述网页元素对应的文件的文件大小信息。The browser device according to claim 19, wherein the file header information further includes file size information; the display module is further adapted to: display the webpage element and the download address information thereof, and further display the webpage element corresponding to File size information for the file.
  21. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1至10任一项所述的网页元素的显示方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform a method of displaying a web page element according to any one of claims 1 to 10.
  22. 一种计算机可读介质,其中存储了如权利要求21所述的计算机程序。 A computer readable medium storing the computer program of claim 21.
PCT/CN2015/082006 2014-06-24 2015-06-23 Webpage element display method and browser device WO2015196954A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2015196954A1 true WO2015196954A1 (en) 2015-12-30

Family

ID=51466781

Family Applications (1)

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

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020324A (en) * 2018-08-01 2019-07-16 北京京东尚科信息技术有限公司 A kind of method and apparatus for extracting picture
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
CN113343152A (en) * 2021-06-25 2021-09-03 咪咕数字传媒有限公司 Network resource acquisition method and device
CN114138372A (en) * 2021-12-06 2022-03-04 中国工商银行股份有限公司 Front-end component loading method and device

Families Citing this family (15)

* 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
CN109522492A (en) * 2018-10-12 2019-03-26 北京奇虎科技有限公司 A kind of webpage 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
CN112989233A (en) * 2019-12-02 2021-06-18 北京小米移动软件有限公司 File downloading method and 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
CN114036426A (en) * 2021-11-25 2022-02-11 深圳视界信息技术有限公司 Webpage data acquisition method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251536A1 (en) * 2004-05-04 2005-11-10 Ralph Harik Extracting information from Web pages
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN102780682A (en) * 2011-05-12 2012-11-14 同济大学 Website behavior model modeling method based on HTML (Hyper Text Markup Language)
CN103425388A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Method and device for operating host window in HTML page
CN104036011A (en) * 2014-06-24 2014-09-10 北京奇虎科技有限公司 Webpage element display method and browser device.

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997015B (en) * 2006-11-24 2011-04-20 华为技术有限公司 Cache application method and device, and file transfer system
CN103455602B (en) * 2013-09-03 2017-03-29 小米科技有限责任公司 A kind of video URL grasping means, device and terminal device
CN103838880B (en) * 2014-03-28 2017-05-24 北京猎豹网络科技有限公司 Webpage advertisement filter method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251536A1 (en) * 2004-05-04 2005-11-10 Ralph Harik Extracting information from Web pages
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN102780682A (en) * 2011-05-12 2012-11-14 同济大学 Website behavior model modeling method based on HTML (Hyper Text Markup Language)
CN103425388A (en) * 2012-05-24 2013-12-04 腾讯科技(深圳)有限公司 Method and device for operating host window in HTML page
CN104036011A (en) * 2014-06-24 2014-09-10 北京奇虎科技有限公司 Webpage element display method and browser device.

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020324A (en) * 2018-08-01 2019-07-16 北京京东尚科信息技术有限公司 A kind of method and apparatus for extracting picture
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
CN113343152A (en) * 2021-06-25 2021-09-03 咪咕数字传媒有限公司 Network resource acquisition method and device
CN113343152B (en) * 2021-06-25 2023-08-15 咪咕数字传媒有限公司 Network resource acquisition method and device
CN114138372A (en) * 2021-12-06 2022-03-04 中国工商银行股份有限公司 Front-end component loading method and device

Also Published As

Publication number Publication date
CN104036011B (en) 2020-06-12
CN104036011A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
WO2015196954A1 (en) Webpage element display method and browser device
JP5480892B2 (en) Advertisement presentation based on WEB page dialogue
KR101748196B1 (en) Determining message data to present
WO2015039586A1 (en) Method, apparatus and browser for webpage loading
JP5571091B2 (en) Providing search results
US20170132327A1 (en) Pre-fetching of network page content in a browser application
US7840650B2 (en) Sharing of digital media on a network
JP2022184964A (en) Systems and methods for direct in-browser markup of elements in internet content
WO2015067103A1 (en) Method for browser-side network search and browser
US20140096049A1 (en) Drag and drop application launches of user interface objects
US20160342449A1 (en) Data exchange across multiple computing devices through a proactive intelligent clipboard
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
US20080276177A1 (en) Tag-sharing and tag-sharing application program interface
TW201032131A (en) Device, method and computer program product for automatically selecting internet browser and providing web page service
CN105393223A (en) Capturing website content through capture services
US20190179864A1 (en) Contributor characteristic based tag clouds
US20140081981A1 (en) Methods, Systems, and Program Products for Identifying a Matched Tag Set
US8706778B2 (en) Methods and systems for an action-based interface for files and other assets
US20160117335A1 (en) Systems and methods for archiving media assets
WO2017000613A1 (en) Method and device for generating indication information in search result page
WO2023213203A1 (en) Screen recording method for applet page, medium and electronic device
WO2015101074A1 (en) Image-based image identification method, system, equipment and device
CN103955475A (en) Display method and device for webpage label information, and browser
US20220311813A1 (en) Presenting links during an online presentation
WO2015149560A1 (en) Method and apparatus for displaying closed webpage tab and/or browser window

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15810898

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15810898

Country of ref document: EP

Kind code of ref document: A1