WO2015067103A1 - 在浏览器侧进行网络搜索的方法与浏览器 - Google Patents

在浏览器侧进行网络搜索的方法与浏览器 Download PDF

Info

Publication number
WO2015067103A1
WO2015067103A1 PCT/CN2014/087292 CN2014087292W WO2015067103A1 WO 2015067103 A1 WO2015067103 A1 WO 2015067103A1 CN 2014087292 W CN2014087292 W CN 2014087292W WO 2015067103 A1 WO2015067103 A1 WO 2015067103A1
Authority
WO
WIPO (PCT)
Prior art keywords
search
type
webpage element
webpage
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2014/087292
Other languages
English (en)
French (fr)
Inventor
糜裕峰
李林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to US15/034,940 priority Critical patent/US20160283592A1/en
Publication of WO2015067103A1 publication Critical patent/WO2015067103A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Definitions

  • the present invention relates to the field of the Internet, and in particular, to a method and a browser for performing a network search on a browser side.
  • the traditional web search method is that a user opens a page of a search engine, inputs a keyword in an input box or other interface in the page, and initiates a search, and then loads the search result on a page of the search engine website.
  • FIG. 1 and FIG. 2 respectively show an effect diagram of two browsers for opening a webpage shortcut search in the prior art.
  • the user selects the text
  • the preset condition for example, the mouse pauses at the selected text. Time, etc.
  • the existing word-searching shortcut search is based on the word information acquired after the selection, and generates a pre-configured entry option, directly loading the icon of the entry and generating a corresponding Uniform Resource Locator (URL).
  • URL Uniform Resource Locator
  • the search portal is fixed, which will generate a lot of search content that the user does not need, and can not meet the requirements of the user's targeted search.
  • the page is directly jumped to the label of the search result, and the user's browsing on the original page is interrupted.
  • the present invention has been made in order to provide a browser that overcomes the above problems or at least partially solves the above problems, and a corresponding method of performing a network search on the browser side.
  • a method of performing a network search on a browser side includes the following steps: obtaining a webpage element to perform a search operation in a current page; determining a webpage element type of the webpage element and a search type corresponding to the webpage element type; and obtaining a webpage element search Keyword; initiates a search request to a search engine corresponding to the search type based on the search keyword, The returned search results are displayed on the browser side.
  • determining the webpage element type of the webpage element comprises: determining a type of the webpage element according to the uniform resource locator included in the hypertext markup language text.
  • determining the type of the webpage element according to the uniform resource locator included in the hypertext markup language includes: searching for a file extension included in the uniform resource locator; and determining the webpage element type by using the file extension.
  • the obtaining the search keyword of the webpage element comprises: searching for the description information of the webpage element in the hypertext markup language text as the search keyword; or extracting the description information of the webpage element by using the DOM data node of the traversing page as the search keyword.
  • determining the search type corresponding to the webpage element type comprises: searching for one or more search types corresponding to the webpage element type from the preset mapping configuration table.
  • the search type corresponding to the webpage element type is multiple, and the search request is initiated according to the search keyword to the search engine corresponding to the search type, including: assigning weights according to the priority level by multiple search types, and searching according to the weight order.
  • the keyword respectively initiates a search request to a plurality of search engines corresponding to the search type; displaying the returned search results on the browser side includes: displaying search results returned by the plurality of search engines on the browser side in the order of weights.
  • displaying the returned search result on the browser side comprises: generating a display floating layer classified according to the search type in the page, and loading the search result in the floating layer.
  • obtaining the webpage element to perform the search operation in the current page comprises: obtaining the webpage content selected by the user from the page, and obtaining the webpage element to be searched from the selected webpage content.
  • the webpage element type includes any one or more of the following: video, picture, music, text.
  • a browser includes: a webpage element obtaining module, configured to obtain a webpage element to perform a search operation in the current page; a type determining module, configured to determine a webpage element type of the webpage element and a search type corresponding to the webpage element type; The obtaining module is configured to obtain a search keyword of the webpage element; the search interface is configured to initiate a search request to the search engine corresponding to the search type according to the search keyword, and display the returned search result on the browser side.
  • the type determining module is configured to: obtain hypertext markup language text corresponding to the webpage element; and determine a type of the webpage element according to the uniform resource locator included in the hypertext markup language text.
  • the keyword obtaining module is configured to: look up the description information of the webpage element in the hypertext markup language text as a search keyword; or extract the description information of the webpage element as a search keyword by traversing the DOM data node of the page.
  • the type determining module is further configured to: search for a webpage element class from a preset mapping configuration table. One or more search types corresponding to the type.
  • the search type corresponding to the webpage element type is multiple, and the search interface is configured to: assign multiple weights according to the priority level, and respectively correspond to the search type according to the search keyword according to the weighting order.
  • the search engine initiates a search request; the search results returned by the plurality of search engines are displayed on the browser side in the order of weights.
  • the browser further includes: a display module, configured to generate a display floating layer classified according to the search type in the page, and load the search result in the floating layer.
  • a display module configured to generate a display floating layer classified according to the search type in the page, and load the search result in the floating layer.
  • the webpage element obtaining module is configured to: acquire webpage content selected by the user from the webpage, and obtain webpage elements to be searched for from the selected webpage content.
  • a computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform according to any of the preceding claims A method of performing a web search on the browser side.
  • a computer readable medium storing the aforementioned computer program is provided.
  • the method for performing web search and the browser of the present invention acquires a webpage element that needs to perform a search operation, and determines a search type and a keyword according to the webpage element, and the search result displayed in the browser matches the webpage element type, and the user obtains the result more consistently. Searching for expectations reduces user intervention in the search process and improves the efficiency of search operations performed by users while browsing the web.
  • the present invention generates a display floating layer classified according to the search type in the page, and loads the search result in the floating layer, which can be displayed in an accurate classification, so that the user can quickly obtain the search result without affecting the user browsing the original page. .
  • FIG. 1 is a diagram showing an effect of a first browser opening a webpage shortcut search in the prior art
  • FIG. 2 is a diagram showing an effect of a second browser opening a webpage shortcut search in the prior art
  • FIG. 3 is a schematic diagram of a browser in accordance with one embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a method of performing a network search on a browser side according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for performing a network search on a browser side according to an embodiment of the present invention
  • FIG. 6 is an effect diagram showing search results displayed in a floating layer in a method of performing network search on a browser side according to an embodiment of the present invention
  • Figure 7 is a schematic block diagram of a computing device for performing a method of performing a network search on the browser side in accordance with the present invention
  • Fig. 8 schematically shows a storage unit for holding or carrying program code implementing a method of performing a network search on the browser side according to the present invention.
  • FIG. 3 is a schematic diagram of a browser 100 in accordance with one embodiment of the present invention.
  • the browser 100 generally includes a webpage element acquisition module 110, a type determination module 120, a keyword acquisition module 130, a search interface 140, and a display module 150.
  • the webpage element acquisition module 110 is configured to acquire a webpage element to be searched for in the current page.
  • the workflow can be configured to: obtain the webpage content selected by the user from the page, and obtain the webpage element to be searched from the selected webpage content. For example, to obtain content that the user uses to draw with the mouse or select on the touch screen.
  • the type determination module 120 is configured to determine a webpage element type of the webpage element and a search type corresponding to the webpage element type.
  • the webpage element type of the webpage element can be obtained by using a Hypertext Markup Language (HTML).
  • HTML Hypertext Markup Language
  • the process of determining the webpage element type of the webpage element may be: obtaining the corresponding webpage element.
  • Hypertext markup language text determine the type of web page element according to the Uniform Resource Locator (URL) contained in the hypertext markup language text.
  • URL Uniform Resource Locator
  • JPG corresponds to the image type
  • avi corresponds to the video type
  • mp3 corresponds to the music type.
  • each webpage element corresponds to one or more search types, for example, the image type webpage element corresponds to the image type search; the music type webpage element corresponds to the music type search; the video type The webpage element corresponds to the search of the video type; the program type webpage element corresponds to the search of the program type.
  • the mapping relationship between webpage elements and search types can be configured by setting a configuration table in advance according to the settings of the user or the browser developer.
  • the configuration table records the search type corresponding to the webpage element type and the search engine corresponding to the search type.
  • the video webpage element the four video search portals corresponding to Baidu video, 360 video, Google video, and search video are displayed, and other webpages.
  • the search for element types can also be configured for their corresponding entries.
  • the keyword obtaining module 130 is configured to acquire a search keyword of a webpage element.
  • the acquisition process of the keyword obtaining module 130 can be configured in the following two ways: one is to find the description information of the webpage element in the HTML text as a search keyword; or to extract the description information of the webpage element by traversing the DOM data node of the page. As a search keyword. After the user draws the webpage element, the browser traverses the node of the DOM tree of the webpage to obtain the keyword in the node with the selected webpage element, especially the webpage title, and selects the description text of the webpage element, for example, if the selected webpage The element type is an image, and you can find the search keyword from the caption of the image.
  • the search interface 140 is configured to initiate a search request to the search engine corresponding to the search type according to the search keyword, and display the returned search result on the browser side.
  • the search interface 140 may assign a plurality of search types according to the priority level, and respectively initiate the search request to the plurality of search engines corresponding to the search type according to the search keyword according to the search key;
  • the search results returned by multiple search engines are displayed on the browser side in the order of weights.
  • the display module 150 is configured to generate a display floating layer classified according to the search type in the page, and load the search result in the floating layer. Therefore, it can be displayed in an accurate classification, which is convenient for the user to quickly obtain the search result, and does not affect the user browsing the original page.
  • the type of webpage element in the webpage content selected by the user from the page includes any one or more of the following: video, picture, music, text.
  • the user's search target is relatively clear, and in the matching mapping table of the webpage element and the search type, a plurality of corresponding search engines may be preset.
  • the browser 100 of the embodiment can load all the search types, or sort according to the frequency of the user using the search type, and sort by the user. The result is searched and loaded.
  • the embodiment of the invention further provides a method for performing network search on the browser side.
  • the method of performing a web search on the browser side can be performed by any of the browsers described in the above embodiments to obtain search results that are more closely matched to the user selection.
  • 4 is a network search on the browser side according to an embodiment of the present invention. Schematic diagram of the method.
  • the method of performing a network search on the browser side generally includes the following steps:
  • Step S402 obtaining a webpage element to perform a search operation in the current page
  • Step S404 determining a webpage element type of the webpage element and a search type corresponding to the webpage element type
  • Step S406 acquiring a search keyword of a webpage element
  • Step S408 initiating a search request to the search engine corresponding to the search type according to the search keyword, and displaying the returned search result on the browser side.
  • the method of the embodiment is implemented to implement a shortcut search method according to the selected content on the browser side, and the final search result is obtained from a search engine corresponding to the content selected by the user, which is more accurate and more accurate.
  • Step S402 can obtain the webpage content selected by the user from the page, and obtain the webpage element to be searched from the selected webpage content. For example, to obtain content that the user uses to draw with the mouse or select on the touch screen.
  • the process of determining the webpage element type in step S404 may include determining the type of the webpage element according to the uniform resource locator URL included in the hypertext markup language HTML text.
  • the webpage element type can be determined by using the file extension in the URL, and the process can be to find the file extension included in the uniform resource locator URL; the webpage element type is determined by the file extension.
  • JPG corresponds to the image type
  • avi corresponds to the video type
  • mp3 corresponds to the music type.
  • the page element type includes any one or more of the following: video, image, music, text.
  • the process of determining the search type corresponding to the webpage element type in step S404 may include: searching one or more search types corresponding to the webpage element type from the preset mapping configuration table.
  • step S406 may be performed by searching the description information of the webpage element in the hypertext markup language text as a search keyword; or by extracting the description information of the webpage element by the DOM data node of the traversal page as the search keyword.
  • the browser traverses the node of the DOM tree of the webpage to obtain the keyword in the node with the selected webpage element, especially the webpage title, selects the description text similar to the webpage element, and extracts it.
  • the display is selected to the user to obtain the search keyword, and the logical processing may be performed by OR or the like to generate a search formula conforming to the search specification to perform the search. After the user determines, generate the search based on a certain search type and search keyword. Search request.
  • step S408 may be: assigning weights according to the priority level by the plurality of search types, and respectively corresponding to the search type according to the search keywords according to the weighting order.
  • the search engine initiates a search request; the search results returned by the plurality of search engines are displayed on the browser side in the order of weights.
  • the returned search result is displayed on the browser side, including: on the page A presentation float layer that is categorized by search type is generated in the polygon, and search results are loaded in the floating layer.
  • FIG. 5 is a flow chart of a method of performing a network search on the browser side in accordance with one embodiment of the present invention.
  • the execution of the method is triggered by the content of the user drawing the page, and the process includes:
  • Step S502 Obtain a webpage element in a page selected by the user; obtaining the webpage element may be implemented by using an IHTMLSelectionObject interface, and the process may be: first obtaining an IHTMLSelectionObject interface pointer according to the IHTMLDocument2 pointer, and then obtaining an ITxtRange pointer to obtain the selected html text content, and Get the selected text content.
  • Step S504 determining the type of the selected webpage element; the above webpage element may be webpage text, picture, music (or its corresponding URL is a music type), video (or its corresponding URL is a video type), a program (or its corresponding
  • the URL is an APP download address or program installation package name).
  • the text can still correspond to several possible search types: news, web pages, questions and answers, music, encyclopedia, maps, shopping, and good medicine.
  • the way of judging can be used to determine whether bstrHtmlTxt contains a URL. If you include a URL, get the file extension contained in the URL.
  • the search type is judged based on the file extension. For example, JPG corresponds to the image type, avi corresponds to the video type, and mp3 corresponds to the music type.
  • Step S506 determining the type of the classified search as the first weight search; the webpage element type corresponds to the search type, for example, the image type webpage element corresponds to the image type search; the music type webpage element corresponds to the music type search; the video type webpage element corresponds to The search of the video type; the program type webpage element corresponds to the search of the program type; or the search type determined above is preferentially displayed as the search type of the first weight, and the search result is requested to be returned for display.
  • the other search type is used as the second weight search item (for example, the first weight is a video, the second weight is determined according to keywords in the content of the current webpage, and is determined by the webpage text, encyclopedia), and then the user clicks and then initiates. Search for requests and get search results.
  • a configuration table can be saved according to the settings of the user or the browser developer.
  • one type in the configuration table may correspond to multiple search engines.
  • the video category may correspond to four video search portals: Baidu video, 360 video, Google video, and search video. Other types of searches may also correspond to the video search portal.
  • the entrance is configured. The user can further select the entry and load the corresponding result. If the user does not select, an entry such as 360 video is selected by default.
  • Step S508 extracting related text of the webpage element from the webpage as a keyword;
  • the keyword may be generated field information in the above bstrHtmlTxt, for example, for the image, after the user selects the image, the image may be obtained from the image introduction text next to the image.
  • the search keyword Since the text page element can correspond to various search types, all search types can be loaded during processing, or a search type with a higher frequency of use by the user can be selected.
  • Step S510 pop-up window loading classification search corresponding search engine interface; wherein content description of the image
  • the information keyword, as well as the name of the avi file or the keyword of the content keyword, the name of the mp3 file, or the name of the song, can be displayed as a search keyword, and the user initiates a search request after clicking.
  • Step S512 receiving a search engine interface selected by the user and generating an http search request of the above keyword.
  • step S514 the http search request is sent to the search engine server.
  • step S5166 the returned http result is loaded in the browser popup or page floating layer for the user to use.
  • 6 is a diagram showing an effect of a search result displayed in a floating layer in a method of performing a network search on a browser side according to an embodiment of the present invention.
  • This display method is convenient for the user to quickly obtain search results without affecting the user's browsing of the original page. Thereby, the user can quickly and directly reach the content, quickly and accurately obtain the search result, and improve the efficiency of the search operation performed when the user browses the webpage.
  • the display floating layer classified according to the search type is generated in the page, and the search result is loaded in the floating layer, and can be displayed in an accurate classification, so that the user can quickly obtain the search result without affecting the user browsing the original page.
  • 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 present specification including accompanying claims, abstracts and drawings) may be employed. All features of the invention, as well as all processes or units of any method or device so disclosed, are combined.
  • 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 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.
  • FIG. 7 illustrates a computing device, such as an application server, a personal computer, etc., that may implement a method of performing a network search on the browser side in accordance with the present invention.
  • 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.
  • 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.
  • 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)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明提供了一种在浏览器侧进行网络搜索的方法与浏览器。其中,该在浏览器侧进行网络搜索的方法,包括以下步骤:在当前页面中获取要进行搜索操作的网页元素;确定网页元素的网页元素类型以及与网页元素类型对应的搜索类型;获取网页元素的搜索关键字;依据搜索关键字向与搜索类型对应的搜索引擎发起搜索请求,并将返回的搜索结果在浏览器侧进行显示。应用该方案,浏览器中显示的搜索结果与网页元素类型匹配,用户得到结果更加符合搜索预期,减少了用户对搜索过程的干预,提高了用户浏览网页时进行的搜索操作的效率。

Description

在浏览器侧进行网络搜索的方法与浏览器 技术领域
本发明涉及互联网领域,特别是涉及一种在浏览器侧进行网络搜索的方法与浏览器。
背景技术
传统的网络搜索方法,是用户打开搜索引擎的页面,并在页面中的输入框或其他接口中输入关键词并发起搜索,然后在搜索引擎网站的页面中加载搜索结果。
利用传统的搜索方法,用户在浏览网页需要对网页的文本进行搜索时,首先复制相应的文本,然后打开搜索引擎的页面并输入文本,才能进行搜索。用户的操作步骤比较复杂。
另外,现有技术中还有一种搜索方法,用户从当前所浏览的内容中选中部分文字,浏览器会出现一个快捷搜索按钮,用户点击该按钮之后即可跳转搜索引擎按照选中文字搜索结果页,并在新页面中展示搜索结果页。
图1和图2分别示出了现有技术中两种浏览器开启网页快捷搜索的效果图,如图所示,用户选择文本后,一旦满足预设的条件,例如鼠标在选择文字处停留预定时间等,就会在选择文字显示快捷搜索按钮,以便用户操作。然后现有的划词快捷搜索都是基于选择后获取的词信息,产生出预先配置好的入口选项,直接加载即可入口的图标和生成对应的统一资源定位符(Uniform Resource Locator,简称URL)。这种方式中搜索的入口固定,会产生很多用户不需要的搜索内容,无法满足用户针对性搜索的要求。另外用户点击按钮后,直接将页面跳转至搜索结果的标签,中断了用户在原页面的浏览。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的浏览器和相应的在浏览器侧进行网络搜索的方法。
依据本发明的一个方面,提供了在浏览器侧进行网络搜索的方法。该在浏览器侧进行网络搜索的方法,包括以下步骤:在当前页面中获取要进行搜索操作的网页元素;确定网页元素的网页元素类型以及与网页元素类型对应的搜索类型;获取网页元素的搜索关键字;依据搜索关键字向与搜索类型对应的搜索引擎发起搜索请求, 并将返回的搜索结果在浏览器侧进行显示。
可选地,确定网页元素的网页元素类型包括:根据超文本标记语言文本中包含的统一资源定位符确定网页元素的类型。
可选地,根据超文本标记语言文本中包含的统一资源定位符确定网页元素的类型包括:查找统一资源定位符中包含的文件扩展名;通过文件扩展名判断得出网页元素类型。
可选地,获取网页元素的搜索关键字包括:在超文本标记语言文本中查找网页元素的描述信息作为搜索关键词;或通过遍历页面的DOM数据节点提取网页元素的描述信息作为搜索关键词。
可选地,确定与网页元素类型对应的搜索类型包括:从预设的映射配置表中查找与网页元素类型对应的一个或多个搜索类型。
可选地,与网页元素类型对应的搜索类型为多个,依据搜索关键字向与搜索类型对应的搜索引擎发起搜索请求包括:将多个搜索类型按照优先级别分配权重,按照权重的顺序依据搜索关键字分别向多个与搜索类型对应的搜索引擎发起搜索请求;将返回的搜索结果在浏览器侧进行显示包括:按照权重的顺序在浏览器侧显示多个搜索引擎返回的搜索结果。
可选地,将返回的搜索结果在浏览器侧进行显示包括:在页面中生成按照搜索类型进行分类的展示浮层,并在浮层中加载搜索结果。
可选地,在当前页面中获取要进行搜索操作的网页元素包括:获取用户从页面中所选择的网页内容,并从所选择的网页内容中得到要进行搜索操作的网页元素。
可选地,网页元素类型包括以下任意一项或多项:视频、图片、音乐、文字。
根据本发明的另一方面,提供了一种浏览器。该浏览器包括:网页元素获取模块,用于在当前页面中获取要进行搜索操作的网页元素;类型确定模块,用于确定网页元素的网页元素类型以及与网页元素类型对应的搜索类型;关键字获取模块,用于获取网页元素的搜索关键字;搜索接口,用于依据搜索关键字向与搜索类型对应的搜索引擎发起搜索请求,并将返回的搜索结果在浏览器侧进行显示。
可选地,类型确定模块被配置为:获取网页元素对应的超文本标记语言文本;根据超文本标记语言文本中包含的统一资源定位符确定网页元素的类型。
可选地,关键字获取模块被配置为:在超文本标记语言文本中查找网页元素的描述信息作为搜索关键词;或通过遍历页面的DOM数据节点提取网页元素的描述信息作为搜索关键词。
可选地,类型确定模块还被配置为:从预设的映射配置表中查找与网页元素类 型对应的一个或多个搜索类型。
可选地,与网页元素类型对应的搜索类型为多个,搜索接口被配置为:将多个搜索类型按照优先级别分配权重,按照权重的顺序依据搜索关键字分别向多个与搜索类型对应的搜索引擎发起搜索请求;按照权重的顺序在浏览器侧显示多个搜索引擎返回的搜索结果。
可选地,上述浏览器还包括:显示模块,用于在页面中生成按照搜索类型进行分类的展示浮层,并在浮层中加载搜索结果。
可选地,网页元素获取模块被配置为:获取用户从页面中所选择的网页内容,并从所选择的网页内容中得到要进行搜索操作的网页元素。
根据本发明的再一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据前述任一项所述的在浏览器侧进行网络搜索的方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了前述计算机程序。
本发明的进行网络搜索的方法和浏览器由于获取需要进行搜索操作的网页元素,并根据网页元素确定搜索类型和关键词,浏览器中显示的搜索结果与网页元素类型匹配,用户得到结果更加符合搜索预期,减少了用户对搜索过程的干预,提高了用户浏览网页时进行的搜索操作的效率。
进一步地,本发明的在页面中生成按照搜索类型进行分类的展示浮层,并在浮层中加载搜索结果,能够按精确分类显示,方便用户快速获得搜索结果,并且不影响用户对原页面浏览。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了现有技术中第一种浏览器开启网页快捷搜索的效果图;
图2示出了现有技术中第二种浏览器开启网页快捷搜索的效果图;
图3是根据本发明一个实施例的浏览器的示意图;
图4是根据本发明一个实施例的在浏览器侧进行网络搜索的方法的示意图;
图5是根据本发明一个实施例的在浏览器侧进行网络搜索的方法的流程图;
图6是是根据本发明一个实施例的在浏览器侧进行网络搜索的方法中搜索结果在浮层中展示的效果图;
图7示意性地示出了用于执行根据本发明的在浏览器侧进行网络搜索的方法的计算设备的框图;以及
图8示意性地示出了用于保持或者携带实现根据本发明的在浏览器侧进行网络搜索的方法的程序代码的存储单元。
具体实施方式
下面结合附图和具体的实施方式对本发明作进一步的描述。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
图3是根据本发明一个实施例的浏览器100的示意图。该浏览器100一般性地可包括:网页元素获取模块110、类型确定模块120、关键字获取模块130、搜索接口140、显示模块150。
在以上浏览器100中,网页元素获取模块110用于在当前页面中获取要进行搜索操作的网页元素。其工作流程可以被配置为:获取用户从页面中所选择的网页内容,并从所选择的网页内容中得到要进行搜索操作的网页元素。例如获取用户使用鼠标划取或者在触摸屏上选取的内容。
类型确定模块120用于确定网页元素的网页元素类型以及与网页元素类型对应的搜索类型。其中,网页元素的网页元素类型可以通过页面的超文本标记语言文本((Hyper Text Mark-up Language,简称HTML)得到。一种确定网页元素的网页元素类型的流程可以为:获取网页元素对应的超文本标记语言文本;根据超文本标记语言文本中包含的统一资源定位符(Uniform Resource Locator,简称URL)确定网页元素的类型。对于包含扩展名字段的URL,可以查找统一资源定位符中包含的文件扩展名;通过文件扩展名判断得出网页元素类型。比如,JPG对应图片类型,avi对应视频类型,mp3对应音乐类型。
对于上述确定了网页元素类型的情况下,每种网页元素对应着一种或多种搜索类型,例如图片类型网页元素对应着图片类型的搜索;音乐类型网页元素对应着音乐类型的搜索;视频类型网页元素对应着视频类型的搜索;程序类型网页元素对应着程序类型的搜索。网页元素到搜索类型的映射关系,可以通过预先设置一个配置表,依据用户或者浏览器开发者的设置可以进行配置。配置表中记录了网页元素类型对应的搜索类型以及该搜索类型对应的搜索引擎,例如:对于视频网页元素会对应百度视频、360视频、谷歌视频、搜库视频这四个视频搜索入口,其它网页元素类型的搜索也可以对其对应的入口进行配置。
关键字获取模块130用于获取网页元素的搜索关键字。该关键字获取模块130的获取流程可以被配置为以下两种方式:其一为在HTML文本中查找网页元素的描述信息作为搜索关键词;或通过遍历页面的DOM数据节点提取网页元素的描述信息作为搜索关键词。用户划取网页元素后,浏览器会遍历该网页的DOM树的节点获取到该选择网页元素相近的节点中的关键字,特别是网页标题,选择网页元素相近的描述文字,例如如果选取的网页元素类型为图片,就可以从图片的说明文字中找到搜索关键词。
搜索接口140用于依据搜索关键字向与搜索类型对应的搜索引擎发起搜索请求,并将返回的搜索结果在浏览器侧进行显示。在确定的搜索类型为多个的情况下,搜索接口140可以将多个搜索类型按照优先级别分配权重,按照权重的顺序依据搜索关键字分别向多个与搜索类型对应的搜索引擎发起搜索请求;按照权重的顺序在浏览器侧显示多个搜索引擎返回的搜索结果。
显示模块150用于在页面中生成按照搜索类型进行分类的展示浮层,并在浮层中加载搜索结果。从而可以能够按精确分类显示,方便用户快速获得搜索结果,并且不影响用户对原页面浏览。
用户从页面中所选择的网页内容中的网页元素类型包括以下任意一项或多项:视频、图片、音乐、文字。对于视频、图片、音乐而言,用户的搜索目标比较明确,网页元素与搜索类型的匹配映射表中,可以预先设置多个对应的搜索引擎。对于所选择的网页文字进行搜索的情况,由于其可以对应着各种的搜索类型,本实施例的浏览器100可以加载全部的搜索类型,或者按照用户使用搜索类型的频率进行排序后,按照排序结果进行搜索并加载。
本发明实施例还提供了一种在浏览器侧进行网络搜索的方法。该在浏览器侧进行网络搜索的方法可以由以上实施例中介绍的任一种浏览器执行,以得到更加与用户选择匹配的搜索结果。图4是根据本发明一个实施例的在浏览器侧进行网络搜索 的方法的示意图。该在浏览器侧进行网络搜索的方法一般性地可包括以下步骤:
步骤S402,在当前页面中获取要进行搜索操作的网页元素;
步骤S404,确定网页元素的网页元素类型以及与网页元素类型对应的搜索类型;
步骤S406,获取网页元素的搜索关键字;
步骤S408,依据搜索关键字向与搜索类型对应的搜索引擎发起搜索请求,并将返回的搜索结果在浏览器侧进行显示。
执行本实施例的方法,实现了在浏览器侧根据选择内容进行快捷搜索的方式,最终得到的搜索结果是从用户选择的内容对应的搜索引擎中得到的,更加符合更加精确。
步骤S402可以获取用户从页面中所选择的网页内容,并从所选择的网页内容中得到要进行搜索操作的网页元素。例如获取用户使用鼠标划取或者在触摸屏上选取的内容。
步骤S404中确定网页元素类型的流程可包括:根据超文本标记语言HTML文本中包含的统一资源定位符URL确定网页元素的类型。网页元素类型可以利用URL中的文件扩展名确定,流程可为查找统一资源定位符URL中包含的文件扩展名;通过文件扩展名判断得出网页元素类型。比如,JPG对应图片类型,avi对应视频类型,mp3对应音乐类型。网页元素类型包括以下任意一项或多项:视频、图片、音乐、文字。
步骤S404中确定与网页元素类型对应的搜索类型的流程可包括:从预设的映射配置表中查找与网页元素类型对应的一个或多个搜索类型。
步骤S406的流程可通过在超文本标记语言文本中查找网页元素的描述信息作为搜索关键词;或者通过遍历页面的DOM数据节点提取网页元素的描述信息作为搜索关键词两种方式进行。例如划取网页元素后,浏览器会遍历该网页的DOM树的节点获取到该选择网页元素相近的节点中的关键字,特别是网页标题,选择网页元素相近的描述文字,并提取出来后,显示给用户进行选择从而得到搜索关键字,也可以进行与或等逻辑处理,生成一个符合搜索规范的搜索式以进行搜索,在用户确定后,生成该处基于某一搜索类型、搜索关键字的搜索请求。
在网页元素类型对应的搜索类型为多个的情况下,步骤S408的流程可以为:将多个搜索类型按照优先级别分配权重,按照权重的顺序依据搜索关键字分别向多个与搜索类型对应的搜索引擎发起搜索请求;按照权重的顺序在浏览器侧显示多个搜索引擎返回的搜索结果。其中,将返回的搜索结果在浏览器侧进行显示包括:在页 面中生成按照搜索类型进行分类的展示浮层,并在浮层中加载搜索结果。
图5是根据本发明一个实施例的在浏览器侧进行网络搜索的方法的流程图。本方法的执行有用户划取页面的内容触发,流程包括:
步骤S502,获取用户选中的页面中的网页元素;获取网页元素可以通过IHTMLSelectionObject接口来实现,流程可以为:首先根据IHTMLDocument2指针取得IHTMLSelectionObject接口指针,然后再获得ITxtRange指针,取得选中的html文本内容,并得到选中的文本内容。
步骤S504,判断选中网页元素的类型;以上网页元素可以为网页文字、图片、音乐(或其对应的URL是音乐类型)、视频(或其对应的URL是一个视频类型)、程序(或其对应的URL是一个APP下载地址或者程序安装包名称)。其中文字还是可以对应好几种可能的搜索类型:新闻、网页、问答、音乐、百科、地图、购物、良医。判断的方式可以采用判断bstrHtmlTxt里面是否包含URL的方式。如果包含URL,获得URL中包含的文件扩展名。根据文件扩展名判断搜索类型。比如,JPG对应图片类型,avi对应视频类型,mp3对应音乐类型。
步骤S506,确定分类搜索的类型作为第一权重搜索;网页元素类型对应着搜索类型,例如图片类型网页元素对应着图片类型的搜索;音乐类型网页元素对应着音乐类型的搜索;视频类型网页元素对应着视频类型的搜索;程序类型网页元素对应着程序类型的搜索;或者将上述确定的搜索类型作为第一权重的搜索类型优先显示,并请求搜索结果进行返回显示。将其他的搜索类型作为第二权重的搜索项目(例如第一权重是视频,第二权重是根据当前网页的内容中的关键字确定是网页文字、百科)进行加载,等到用户进行点击后再发起搜索请求并获取搜索结果。对于网页元素到搜索类型的映射关系,可以依据用户或者浏览器开发者的设置保存一个配置表。
进一步地,配置表中一种类型可以对应多个搜索引擎,例如:视频类别会对应百度视频、360视频、谷歌视频、搜库视频这四个视频搜索入口,其他类型的搜索也可以对其对应的入口进行配置。用户可以进一步地进行入口的选择后加载对应的结果,如果用户不选择,默认会有一个例如360视频的入口被选中。
步骤S508,从网页中提取网页元素的相关文字作为关键字;该关键词可以为以上利用bstrHtmlTxt中的生成字段信息,例如对于图片,用户选中图片后,可以从其旁边的图片介绍文字中获取到该搜索关键字。由于文字网页元素可以对应着各种的搜索类型,处理时可以加载所有的搜索类型,或者选择用户使用频率较高的搜索类型。
步骤S510,弹窗加载分类搜索对应的搜索引擎接口;其中对于图片的内容描述 信息关键字,以及avi文件的名称或者内容关键字、mp3文件的名称或者歌曲名称等相关信息的关键字都可以作为搜索用关键字显示出来,由用户进行点选后发起搜索请求。
步骤S512,接收用户选择的搜索引擎接口并生成上述关键字的http搜索请求。
步骤S514,将http搜索请求发送给搜索引擎服务器。
步骤S516,将返回的http结果在浏览器弹窗或页面浮层中加载以供用户使用。图6是根据本发明一个实施例的在浏览器侧进行网络搜索的方法中搜索结果在浮层中展示的效果图。这种显示方法便于用户快速获得搜索结果,并且不影响用户对原页面浏览。从而实现了让用户快速直达内容,快速准确获取搜索结果,提高用户浏览网页时进行的搜索操作的效率。
应用本实施例的技术方案,获取需要进行搜索操作的网页元素,并根据网页元素确定搜索类型和关键词,浏览器中显示的搜索结果与网页元素类型匹配,用户得到结果更加符合搜索预期,减少了用户对搜索过程的干预,提高了用户浏览网页时进行的搜索操作的效率。
进一步地,在页面中生成按照搜索类型进行分类的展示浮层,并在浮层中加载搜索结果,能够按精确分类显示,方便用户快速获得搜索结果,并且不影响用户对原页面浏览。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公 开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图7示出了可以实现根据本发明的在浏览器侧进行网络搜索的方法的计算设备,例如应用服务器、个人计算机等。该计算设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图8所述的便携式或者固定存储单元。该存储单元可以具有与图7的计算设备中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (18)

  1. 一种在浏览器侧进行网络搜索的方法,包括:
    在当前页面中获取要进行搜索操作的网页元素;
    确定所述网页元素的网页元素类型以及与所述网页元素类型对应的搜索类型;
    获取所述网页元素的搜索关键字;
    依据所述搜索关键字向与所述搜索类型对应的搜索引擎发起搜索请求,并将返回的搜索结果在浏览器侧进行显示。
  2. 根据权利要求1所述的方法,其中,确定所述网页元素的网页元素类型包括:
    获取所述网页元素对应的超文本标记语言文本;
    根据所述超文本标记语言文本中包含的统一资源定位符确定所述网页元素的类型。
  3. 根据权利要求2所述的方法,其中,根据所述超文本标记语言文本中包含的统一资源定位符确定所述网页元素的类型包括:
    查找所述统一资源定位符中包含的文件扩展名;
    通过所述文件扩展名判断得出所述网页元素类型。
  4. 根据权利要求2或3所述的方法,其中,获取所述网页元素的搜索关键字包括:在所述超文本标记语言文本中查找所述网页元素的描述信息作为所述搜索关键词;或通过遍历所述页面的DOM数据节点提取所述网页元素的描述信息作为所述搜索关键词。
  5. 根据权利要求1至4中任一项所述的方法,其中,确定与所述网页元素类型对应的搜索类型包括:
    从预设的映射配置表中查找与所述网页元素类型对应的一个或多个搜索类型。
  6. 根据权利要求5所述的方法,其中,与所述网页元素类型对应的搜索类型为多个,
    依据所述搜索关键字向与所述搜索类型对应的搜索引擎发起搜索请求包括:将多个所述搜索类型按照优先级别分配权重,按照所述权重的顺序依据所述搜索关键字分别向多个与所述搜索类型对应的搜索引擎发起搜索请求;
    将返回的搜索结果在浏览器侧进行显示包括:按照所述权重的顺序在浏览器侧显示多个所述搜索引擎返回的搜索结果。
  7. 根据权利要求1至6中任一项所述的方法,其中,将返回的搜索结果在浏览器侧进行显示包括:
    在所述页面中生成按照所述搜索类型进行分类的展示浮层,并在所述浮层中加载所述搜索结果。
  8. 根据权利要求1至7中任一项所述的方法,其中,在当前页面中获取要进行搜索操作的网页元素包括:
    获取用户从所述页面中所选择的网页内容,并从所选择的网页内容中得到要进行搜索操作的网页元素。
  9. 根据权利要求1至8中任一项所述的方法,其中,所述网页元素类型包括以下任意一项或多项:视频、图片、音乐、文字。
  10. 一种浏览器,包括:
    网页元素获取模块,用于在当前页面中获取要进行搜索操作的网页元素;
    类型确定模块,用于确定所述网页元素的网页元素类型以及与所述网页元素类型对应的搜索类型;
    关键字获取模块,用于获取所述网页元素的搜索关键字;
    搜索接口,用于依据所述搜索关键字向与所述搜索类型对应的搜索引擎发起搜索请求,并将返回的搜索结果在浏览器侧进行显示。
  11. 根据权利要求10所述的浏览器,其中,所述类型确定模块被配置为:获取所述网页元素对应的超文本标记语言文本;根据所述超文本标记语言文本中包含的统一资源定位符确定所述网页元素的类型。
  12. 根据权利要求11所述的浏览器,其中,所述关键字获取模块被配置为:在所述超文本标记语言文本中查找所述网页元素的描述信息作为所述搜索关键词;或通过遍历所述页面的DOM数据节点提取所述网页元素的描述信息作为所述搜索关键词。
  13. 根据权利要求10至12中任一项所述的浏览器,其中,所述类型确定模块还被配置为:从预设的映射配置表中查找与所述网页元素类型对应的一个或多个搜索类型。
  14. 根据权利要求13所述的浏览器,其中,与所述网页元素类型对应的搜索类型为多个,所述搜索接口被配置为:将多个所述搜索类型按照优先级别分配权重,按照所述权重的顺序依据所述搜索关键字分别向多个与所述搜索类型对应的搜索引擎发起搜索请求;按照所述权重的顺序在浏览器侧显示多个所述搜索引擎返回的搜索结果。
  15. 根据权利要求10至14中任一项所述的浏览器,还包括:显示模块,用于在所述页面中生成按照所述搜索类型进行分类的展示浮层,并在所述浮层中加载所 述搜索结果。
  16. 根据权利要求10至15中任一项所述的浏览器,其中,所述网页元素获取模块被配置为:获取用户从所述页面中所选择的网页内容,并从所选择的网页内容中得到要进行搜索操作的网页元素。
  17. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1至9中的任一项所述的在浏览器侧进行网络搜索的方法。
  18. 一种计算机可读介质,其中存储了如权利要求17所述的计算机程序。
PCT/CN2014/087292 2013-11-08 2014-09-24 在浏览器侧进行网络搜索的方法与浏览器 Ceased WO2015067103A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/034,940 US20160283592A1 (en) 2013-11-08 2014-09-24 Method for performing network search at a browser side and a browser

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310554095.7 2013-11-08
CN201310554095.7A CN103631875B (zh) 2013-11-08 2013-11-08 在浏览器侧进行网络搜索的方法与浏览器

Publications (1)

Publication Number Publication Date
WO2015067103A1 true WO2015067103A1 (zh) 2015-05-14

Family

ID=50212917

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087292 Ceased WO2015067103A1 (zh) 2013-11-08 2014-09-24 在浏览器侧进行网络搜索的方法与浏览器

Country Status (3)

Country Link
US (1) US20160283592A1 (zh)
CN (2) CN106980700B (zh)
WO (1) WO2015067103A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563200A (zh) * 2020-04-28 2020-08-21 广东电网有限责任公司东莞供电局 一种信息显示方法、装置、设备和介质

Families Citing this family (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980700B (zh) * 2013-11-08 2021-04-09 北京奇虎科技有限公司 在浏览器侧进行网络搜索的方法与浏览器
CN104281705B (zh) * 2014-10-23 2017-12-22 百度在线网络技术(北京)有限公司 搜索方法及搜索装置
CN104346461B (zh) * 2014-11-07 2018-05-04 北京奇虎科技有限公司 搜索网页元素的方法、装置和浏览器客户端
CN104536974B (zh) * 2014-12-03 2018-03-02 北京奇虎科技有限公司 在浏览器中搜索信息的方法和浏览器客户端
CN104536975B (zh) * 2014-12-03 2018-09-04 北京奇虎科技有限公司 浏览器中进行图片信息处理的方法和浏览器客户端
CN104504040B (zh) * 2014-12-15 2018-10-09 北京奇虎科技有限公司 一种搜索的方法和装置
CN107832422B (zh) * 2015-02-12 2022-01-28 Oppo广东移动通信有限公司 一种收藏夹的数据收藏方法及装置
CN106033414A (zh) * 2015-03-09 2016-10-19 北大方正集团有限公司 一种热点信息处理方法和系统
CN104715067A (zh) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 在网页上标注关键词的方法、装置、系统和浏览器客户端
CN106294469A (zh) * 2015-06-02 2017-01-04 广州市动景计算机科技有限公司 一种基于浏览器的搜索方法和装置
CN106484721B (zh) * 2015-08-28 2020-01-17 深圳市世强元件网络有限公司 一种智能搜索系统及方法
CN105260904B (zh) * 2015-09-09 2020-04-03 北京奇付通科技有限公司 一种根据网页图像进行信息推荐的方法及电子设备
CN106886540B (zh) * 2015-12-16 2020-08-28 北京搜狗科技发展有限公司 一种数据搜索方法、装置以及用于数据搜索的装置
CN106886541B (zh) * 2015-12-16 2020-06-30 北京搜狗科技发展有限公司 一种数据搜索方法、装置以及一种用于数据搜索的装置
CN106909278A (zh) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 信息呈现方法及装置
CN106055688B (zh) * 2016-06-07 2020-01-14 北京金山安全软件有限公司 搜索结果的展现方法、装置和移动终端
CN107577592B (zh) * 2016-07-04 2024-04-19 北京奇虎科技有限公司 网页元素的定位方法及装置
US10838984B2 (en) * 2016-08-18 2020-11-17 Ebay Inc. Browse node creation using frequent pattern mining
CN107844238A (zh) * 2017-11-29 2018-03-27 佛山市因诺威特科技有限公司 一种统计浏览器网页信息的方法和系统
CN108733814B (zh) * 2018-05-21 2021-07-23 Oppo广东移动通信有限公司 搜索引擎预加载方法、装置、存储介质及终端
US11354497B2 (en) * 2019-01-14 2022-06-07 Walmart Apollo, Llc Method and apparatus for servicing webpage requests
US12045869B2 (en) 2019-01-14 2024-07-23 Walmart Apollo, Llc Apparatus, method, and computer-readable medium for facilitating electronic webpage purchases
CN111831942B (zh) * 2019-04-15 2024-10-18 阿里巴巴集团控股有限公司 对搜索结果进行页面显示的方法、装置、电子设备
CN110879849B (zh) * 2019-11-09 2022-09-20 广东智媒云图科技股份有限公司 一种基于图像转文字的相似度比较方法及装置
CN110866092B (zh) * 2019-11-25 2023-03-14 腾讯科技(深圳)有限公司 信息搜索方法、装置、电子设备和存储介质
CN111881380A (zh) * 2020-06-28 2020-11-03 百度在线网络技术(北京)有限公司 搜索结果处理方法、装置、电子设备及存储介质
CN111931042B (zh) * 2020-07-13 2024-04-05 珠海格力电器股份有限公司 一种信息推送方法及装置
CN112988019B (zh) * 2021-04-16 2022-08-16 北京字节跳动网络技术有限公司 一种信息处理方法、装置、计算机设备及存储介质
CN114741632B (zh) * 2022-03-31 2024-07-26 网易有道信息技术(北京)有限公司 用于对网页中关键字进行展示的方法及其相关产品
CN115061927A (zh) * 2022-06-27 2022-09-16 壹沓科技(上海)有限公司 基于rpa的网页元素定位方法、装置及存储介质
CN118964711A (zh) * 2024-07-18 2024-11-15 北京轻松怡康信息技术有限公司 浏览器智能搜索方法、计算机装置、存储介质、程序产品

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071425A (zh) * 2006-10-19 2007-11-14 腾讯科技(深圳)有限公司 一种信息快捷搜索装置、客户端、系统及方法
CN102096667A (zh) * 2009-12-09 2011-06-15 高文龙 一种信息检索方法及系统
CN103631875A (zh) * 2013-11-08 2014-03-12 北京奇虎科技有限公司 在浏览器侧进行网络搜索的方法与浏览器
CN103631887A (zh) * 2013-11-15 2014-03-12 北京奇虎科技有限公司 浏览器侧进行网络搜索的方法与浏览器

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377785A (zh) * 2008-09-19 2009-03-04 魏新成 在专用搜索结果窗口显示智能搜索结果网页的方法
JP4849154B2 (ja) * 2009-06-26 2012-01-11 コニカミノルタビジネステクノロジーズ株式会社 画像処理装置、画像処理方法、画像形成装置及び画像処理プログラム
US8407197B2 (en) * 2009-09-08 2013-03-26 Zoom Catalog, Llc System and method to research documents in online libraries
CN102955788A (zh) * 2011-08-19 2013-03-06 英业达股份有限公司 网页浏览跳转系统及其方法
CN102368251A (zh) * 2011-09-30 2012-03-07 广州市动景计算机科技有限公司 一种加载注释内容的方法及浏览器
CN103077176A (zh) * 2012-01-13 2013-05-01 北京飞漫软件技术有限公司 一种在浏览器中按关键词类型进行快捷搜索的方法
CN102982179A (zh) * 2012-12-17 2013-03-20 北京奇虎科技有限公司 用于浏览器的网页搜索装置和方法
CN103020266B (zh) * 2012-12-25 2016-06-29 北京奇虎科技有限公司 对网页文本内容进行提取的方法和装置
CN103226574B (zh) * 2013-03-29 2019-03-08 北京奇虎科技有限公司 信息搜索方法及装置
CN103164542A (zh) * 2013-04-15 2013-06-19 北京奇虎科技有限公司 数据搜索的方法及客户端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101071425A (zh) * 2006-10-19 2007-11-14 腾讯科技(深圳)有限公司 一种信息快捷搜索装置、客户端、系统及方法
CN102096667A (zh) * 2009-12-09 2011-06-15 高文龙 一种信息检索方法及系统
CN103631875A (zh) * 2013-11-08 2014-03-12 北京奇虎科技有限公司 在浏览器侧进行网络搜索的方法与浏览器
CN103631887A (zh) * 2013-11-15 2014-03-12 北京奇虎科技有限公司 浏览器侧进行网络搜索的方法与浏览器

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563200A (zh) * 2020-04-28 2020-08-21 广东电网有限责任公司东莞供电局 一种信息显示方法、装置、设备和介质

Also Published As

Publication number Publication date
CN103631875A (zh) 2014-03-12
CN106980700A (zh) 2017-07-25
CN106980700B (zh) 2021-04-09
CN103631875B (zh) 2017-04-12
US20160283592A1 (en) 2016-09-29

Similar Documents

Publication Publication Date Title
CN103631875B (zh) 在浏览器侧进行网络搜索的方法与浏览器
JP5956569B2 (ja) ブラウジング活動に基づく該当アプリケーションの識別
US10489448B2 (en) Method and system for dynamically ranking images to be matched with content in response to a search query
WO2015070673A1 (zh) 浏览器侧进行网络搜索的方法与浏览器
US10289700B2 (en) Method for dynamically matching images with content items based on keywords in response to search queries
US10296538B2 (en) Method for matching images with content based on representations of keywords associated with the content in response to a search query
US9195754B2 (en) Expansion of search result information
US9639627B2 (en) Method to search a task-based web interaction
JP2012506576A (ja) サーチ結果の提供
US20130117716A1 (en) Function Extension for Browsers or Documents
US10235387B2 (en) Method for selecting images for matching with content based on metadata of images and content in real-time in response to search queries
US10909170B2 (en) Method for processing and rendering feed-like based images for mobile devices
US10496686B2 (en) Method and system for searching and identifying content items in response to a search query using a matched keyword whitelist
US10275472B2 (en) Method for categorizing images to be associated with content items based on keywords of search queries
CN105447192A (zh) 在导航页上推荐个性化搜索词方法和装置
CN105095289A (zh) 网页访问方法及装置
EP4377819A1 (en) Systems and methods for dynamic hyperlinking
US10877981B1 (en) Stopword inclusion for searches
WO2017054731A1 (zh) 处理被劫持浏览器的方法及设备
US20160373554A1 (en) Computer-readable recording medium, web access method, and web access device
WO2015149642A1 (zh) 一种进行搜索的方法和装置

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: 14859504

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15034940

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14859504

Country of ref document: EP

Kind code of ref document: A1