CN102663071B - Searching method and device in browser - Google Patents

Searching method and device in browser Download PDF

Info

Publication number
CN102663071B
CN102663071B CN201210093628.1A CN201210093628A CN102663071B CN 102663071 B CN102663071 B CN 102663071B CN 201210093628 A CN201210093628 A CN 201210093628A CN 102663071 B CN102663071 B CN 102663071B
Authority
CN
China
Prior art keywords
search
link
search engine
engine
key word
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210093628.1A
Other languages
Chinese (zh)
Other versions
CN102663071A (en
Inventor
任寰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology 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 CN201210093628.1A priority Critical patent/CN102663071B/en
Priority to CN201410258502.4A priority patent/CN104063436B/en
Priority to CN201410258501.XA priority patent/CN104063435B/en
Publication of CN102663071A publication Critical patent/CN102663071A/en
Application granted granted Critical
Publication of CN102663071B publication Critical patent/CN102663071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a searching method and a device in a browser, aiming to solve problems of very complex operation and user time waste while search is processed again by switching a search engine manually. The searching method comprises the following steps: judging service faults of a first search engine, acquiring search key words directly at the first search engine; generating a search link of a second search engine directly at the search key words; and generating a search result directly at the search key words according to a generated search link. According to the searching method and device provided by the invention, when the first search engine currently used by a user is in service fault, a search engine can be switched automatically so as to display search data to the user; operation is simple without inputting key words again manually or switching the search engine manually; and search data can be acquired quickly so as to save time.

Description

Searching method in a kind of browser and device
Technical field
The application relates to browser technology, particularly relates to searching method and device in a kind of browser.
Background technology
Browser is a kind of application software, can display web page server or the html file content of file system, and allow user and these files carry out alternately.It may be displayed on word, image and other information in the networks such as WWW or LAN (Local Area Network).These words or image, can be the hyperlink that connects other network address, and user can browse various information rapidly, easily.Wherein, most of webpage is html format, and some webpage needs particular browser correctly to show.
In browser, comprise a lot of functions, as the management of: bookmark, download management, web page contents cache and see through third party's plug-in unit (plugins) and support multimedia etc.Wherein, the function of being worth mentioning is the function of search in browser, and it can be so that user finds target information more rapidly and accurately from the numerous data of network.
Along with the continuous expansion of network data amount, the continuous increase of user search demand, has also produced more and more search engines.The increasing of search engine makes user in mass data, look for target information more selection.
When user carries out search, select after certain search engine, can input in the search box key word, then can click and get search data.But, if this search engine can not connect for some reason, in the time of cannot obtaining search data, user does not obtain the data of wanting, now user just need to return to initial searched page, re-enters key word manual switchover search engine, re-starts search, very loaded down with trivial details of operation, waste user's time.
Summary of the invention
The application provides searching method and the device in a kind of browser, to solve manual switchover search engine, re-starts when search, very loaded down with trivial details of operation, the problem of waste user's time.
In order to address the above problem, the application discloses the searching method in a kind of browser, comprising:
Judge the service fault of the first search engine, obtain the search key for the first search engine;
Generation is for the search link of the second search engine of described search key;
Search link according to described generation, generates the Search Results to described search key.
Preferably, described in obtain the step for the search key of the first search engine, comprising:
From the search input frame on browser menu hurdle, obtain the search key of input; Or
In search input frame from search and webpage, obtain the search key of input.
Preferably, described in obtain the step for the search key of the first search engine, comprising:
Obtain for searching for the search link of the first search engine of described search key;
From the search link of described the first search engine, obtain search key.
Preferably, described method further comprises:
Obtain in advance the search link of described the first search engine;
Analyze structure and the coded system of the search link of described the first search engine;
According to the structure of described search link, obtain the position at key word place in the search link of described the first search engine.
Preferably, described method further comprises:
Obtain in advance the search link of described the second search engine;
Analyze structure and the coded system of the search link of described the second search engine;
According to the structure of described search link, obtain the position at the key word place in the search link of described the second search engine.
Preferably, the described link of the search from described the first search engine, obtain search key, comprising:
From the search link of described the first search engine, the position at key word place obtains the first key word sign;
According to the coded system in the search link of described the first search engine, described the first key word sign is decoded to obtain described search key.
Preferably, the described link of the search from described the first search engine, the position at key word place obtains the first key word sign, comprising:
Use described the first regular expression, search the position at described key word place from the search link of the first search engine, wherein, described the first regular expression is for searching the position at the search link key word place of the first search engine;
In the first key word sign described in the position acquisition at described key word place.
Preferably, described generation comprises for the step of the search link of the second search engine of described search key:
Take the coded system in the search link of described the second search engine, the key word of described search is encoded, obtain the second corresponding key word sign;
In the search link of the second search engine, described the second key word sign is added in the position at key word place, generates for searching for the search link of the second search engine of described search key.
Preferably, in the described search at the second search engine link, the position at key word place is added described the second key word identification of steps and is comprised:
Use described the second regular expression, search the position at described key word place in the search link of the second search engine, wherein, described the second regular expression is for searching the position at the search link key word place of the first search engine;
In the position at described key word place, add described the second key word sign.
Preferably, described method also comprises:
Obtain the position at search terms place in the search link of described the first search engine;
Obtain the position at search terms place in the search link of described the second search engine;
Wherein, described search terms comprises word, audio frequency, video, picture, map.
Preferably, described method also comprises:
From the search link of described the first search engine, the position at search terms place obtains user's search terms.
Preferably, before the search link in generation for the second search engine of described search key, also comprise:
From the search link of described the second search engine, choose the search corresponding with user's search terms and link.
Preferably, described method also comprises:
Select in advance the second search engine and preserve.
Preferably, the service fault step of described judgement the first search engine comprises:
If the first search engine is with regard to searching request feedback one prompting error message, the service fault of judgement the first search engine.
Accordingly, disclosed herein as well is the searcher in a kind of browser, comprising:
Obtain keyword module, for judging the service fault of the first search engine, obtain the search key for the first search engine;
Generate link module, for generating the search link for the second search engine of described search key;
Generate object module, the search link for according to described generation, generates the Search Results to described search key.
Preferably, described in obtain keyword module, comprising:
First obtains key word submodule, obtains the search key of input for the search input frame from browser menu hurdle; Or, in the search input frame from search and webpage, obtain the search key of input.
Preferably, described in obtain keyword module, comprising:
Obtain link submodule, for obtaining for searching for the search link of the first search engine of described search key;
Second obtains key word submodule, for the search link from described the first search engine, obtains search key.
Preferably, described device also comprises: the first pretreatment module, comprising:
First obtains submodule, for obtaining in advance the search link of described the first search engine;
Analyze submodule, for analyzing structure and the coded system of the search link of described the first search engine;
Second obtains submodule, for the structure according to described search link, obtains the position at key word place in the search link of described the first search engine.
Preferably, described device also comprises: the second pretreatment module, comprising:
First obtains submodule, for obtaining in advance the search link of described the second search engine;
Analyze submodule, for analyzing structure and the coded system of the search link of described the second search engine;
Second obtains submodule, for the structure according to described search link, obtains the position at the search key place in the search link of described the second search engine.
Preferably, described second obtains key word submodule, comprising:
Acquiring unit, the position that links key word place for the search from described the first search engine obtains the first key word sign;
Decoding unit, for according to the coded system of the search link of described the first search engine, decodes to obtain described search key to described the first key word sign.
Preferably, described generation link module, comprising:
Coding submodule, for taking the coded system of the search link of described the second search engine, encodes to described search key, obtains the second corresponding key word sign;
Add submodule, described the second key word sign is added in the position at the key word place linking for the search at the second search engine, generates for searching for the search link of the second search engine of described search key.
Preferably, described the first pretreatment module, also comprises:
The 3rd obtains submodule, for obtaining the position at the search link search terms place of described the first search engine;
Described the second pretreatment module, also comprises:
The 3rd obtains submodule, for obtaining the position at the search link search terms place of described the first search engine;
Wherein, described search terms comprises word, audio frequency, video, picture, map.
Preferably, described device also comprises:
Obtain search terms module, for the position at the search link search terms place from described the first search engine, obtain user's search terms.
Preferably, described generation link module, also comprises:
Choose submodule, for the search link from described the second search engine, choose with the search of user's search terms and link.
Preferably, described device also comprises:
Preserve module, for selecting in advance the second search engine and preserving.
Described in preferred, obtain keyword module, comprising:
Fault judge module, if point out error message for the first search engine with regard to searching request feedback one, the service fault of judgement the first search engine.
Compared with prior art, the application comprises following advantage:
In sum, judge the service fault of the first search engine, obtain the search key for the first search engine, generate the search link for the second search engine of described search key, search link according to described generation, generates the Search Results to described search key.The application is when the first search engine service fault of the current use of user, and the search engine that can automatically switch, shows search data to user.Simple to operate, without manually re-entering key word and manual switchover search engine, can obtain fast search data, save time.
Secondly, key word can be directly obtained in application from search box, also can obtain key word by analyzing the structure of the page link of search engine, and the acquisition methods of key word is various, can meet the needs that various search engines switch.
Again, the application not only can obtain key word from the search link of search engine, can also obtain user's search terms, therefore when the page link of follow-up coupling the second search engine, can choose with the search of user's search terms and link, then mate key word.Reduce the troublesome operation process that user also will choose search terms when again searching for.
Accompanying drawing explanation
Fig. 1 is the searching method process flow diagram in a kind of browser described in the embodiment of the present application;
Fig. 2 is preprocess method process flow diagram in the searching method in a kind of browser described in the application's preferred embodiment;
Fig. 3 be described in the application's preferred embodiment in the searching method in a kind of browser for the process flow figure of URL;
Fig. 4 is the searcher structural drawing in a kind of browser described in the embodiment of the present application.
Embodiment
For the application's above-mentioned purpose, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
With reference to Fig. 1, provided the searching method process flow diagram in a kind of browser described in the embodiment of the present application.
Step 11, the service fault of judgement the first search engine, obtains the search key for the first search engine;
User selects the first search engine to search for, and after the search key of inputted search, can click the search link that search now can generate first search engine, and URL (URL(uniform resource locator)), wherein comprises search key.
Search link by described the first search engine can be obtained search data, if but described the first search engine disconnect with browser for some reason, just cannot obtain search data, for example, during user search sometimes, may there is " bad luck! XX search is as out of joint ... " illustrate that search engine can not connect when user search.
Now, browser can obtain the search key for the first search engine.
Step 12, generates the search link for the second search engine of described search key;
After the above-mentioned key word that gets user search, can, according to the structure of the search link of the second search engine, match for searching for the search link of the second search engine of described search key, i.e. URL.Be to comprise search key in described URL, use described URL can obtain the search data that described search key is corresponding.
Step 13, the search link according to described generation, generates the Search Results to described search key.
After the search link of above-mentioned generation for the second search engine of described search key, can use the search chain of described the second search engine to connect in succession the second search engine, then can get described search and link corresponding webpage, can therefrom obtain the Search Results that described search key is corresponding.
In sum, judge the service fault of the first search engine, obtain the search key for the first search engine, generate the search link for the second search engine of described search key, search link according to described generation, generates the Search Results to described search key.The application is when the first search engine service fault of the current use of user, and the search engine that can automatically switch, shows search data to user.Simple to operate, without manually re-entering key word and manual switchover search engine, can obtain fast search data, save time.
Preferably, described in obtain the method for the key word of user search, comprising:
1, from search input frame, obtain the key word of user search.
Specifically comprise:
From the search input frame on browser menu hurdle, obtain the search key of input; Or
In search input frame from search and webpage, obtain the search key of input.
In concrete enforcement, user, after clicking search, can directly retain the key word in search input frame, or the key word in search input frame is stored in historical record, and the application does not limit for the storage means of key word in search input frame.
Search data in search input frame, after obtaining, is obtained at switching search engine and can directly be obtained the key word of user search.
2, obtain for searching for the search link of the first search engine of described search key; From the search link of described the first search engine, obtain search key.
User is selected in after the first search engine, can then click and search for by input key word, now can produce for searching for the search link of the first search engine of described search key, browser can catch described search link, then in the search of described the first search engine link, obtains search key.
In sum, application can directly be obtained key word from search input frame, also can obtain key word by analyzing the structure of the search link of search engine, and the acquisition methods of key word is various, can meet the needs that various search engines switch.
Lower mask body is discussed the analytical approach of the search link of search engine.
With reference to Fig. 2, provided described in the application's preferred embodiment preprocess method process flow diagram in the searching method in a kind of browser.
Step 201, the search link of obtaining in advance at least two search engines;
Comprise: obtain in advance the search link of described the first search engine, and, the search link of obtaining in advance described the second search engine.
In actual treatment, there are a plurality of different search engines, for example, Google (google), Baidu, search dog He You road etc.The search link of each search engine has its unique structure, therefore can obtain in advance the search link that wherein at least connects a search engine, as the first search engine and the second search engine, so that follow-up when a search engine can not connect, can be switched to the second search engine.
For example,, for same keyword X:
While using Google to search for, the search of Google is linked as:
http://www.google.com.hk/#hl=en&newwindow=1&safe=strict&site=&sour?ce=hp&q=%E5%A5%87%E8%99%8E&oq=%E5%A5%87%E8%99%8E&aq=f&aqi=&aql=&gs_sm=3&gs_upl=7556l8359l0l8619l5l5l0l0l0l0l0l0ll0l0&gs_l=hp.3...7556l8359l0l8619l5l5l0l0l0l0l0l0ll0l0.frgbld.&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=15c06062bf1af023&biw=1366&bih=602
While using Baidu to search for, the search of Baidu is linked as:
http://www.baidu.com/s?wd=%E5%A5%87%E8%99%8E&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8&tn=baiduhome_pg&inputT=1529
Step 202, analyzes structure and the coded system of the search link of described search engine;
Comprise: analyze structure and the coded system of the search link of described the first search engine, and, analyze structure and the coded system of the search link of described the second search engine.
Then the structure of the search link of the above-mentioned search engine obtaining is analyzed, for example, the network address that can comprise the homepage of this search engine in the search link of a search engine, the key word sign that key word is corresponding (as, the sign of X in described URL) and user's search terms (for example, user wants search and webpage, or searching map).
Can also analyze the coded system in the search link of described search engine, how convert the key word of user search to key word sign.
Step 203, according to the structure of described search link, obtains the position at the key word place in the search link of described search engine;
Comprise: obtain the position at the search key place in the search link of described the first search engine, and, obtain the position at the search key place in the search link of described search engine.
The structure of the above-mentioned link of the search to the search engine obtaining is analyzed, and then can therefrom get the position at the key word place of user search.
In concrete enforcement, can generate a regular expression or search function, when needs switch search engine, can use described regular expression and described in search function, from search link, find search key.
For example, be defined as follows data structure and mate the URL capturing:
Step 204, obtains the position at search terms place in the search link of described search engine, and wherein, described search terms comprises word, audio frequency, video, picture, map;
Comprise: obtain the position at search terms place in the search link of described the first search engine, and, obtain the position at search terms place in the search link of described the first search engine.
The application, can also by analyzing described search link, (that is, structure URL), obtains the position at user's search terms place except can obtain the key word of user search from the search link of search engine.
Wherein, described search terms comprises word, audio frequency, video, picture, map, can be the option of user search, as, after user entered keyword, can select search and webpage, map, audio frequency, video and picture etc.
In concrete enforcement, can generate a regular expression or search function, when needs switch search engine, can use described regular expression and described in search function, from search link, find search terms.
Step 205, selects in advance the second search engine and preserves;
In reality, comprise multiple search engine, therefore can pre-set the second search engine and preserve, make user when using the first search engine and browser to disconnect, can automatically switch to the second search engine and search for.
In concrete enforcement, for example, user is in the time once cannot connecting the first search engine, can provide a few money search engines to select for user, then the search engine of can default setting user selecting is the second search engine, while there is same situation, just can automatically switch later, reduce user's operation.Certainly, when switching the second search engine, can lose and be connected with the first search engine by reminding user browser.Above-mentioned is only a kind of method in concrete enforcement, and the application does not limit this.
After the above-mentioned structure that analyzes each search engine, can be informed in the position at key word place in the page link of each search engine, then can generate corresponding regular expression, described regular expression can be for searching the position at key word place in the search link of search engine.
Preferably, described method also comprises:
Generate the first regular expression, described the first regular expression is for searching the position at the search link key word place of the first search engine.
Generate the second regular expression, described the second regular expression is for searching the position at the search link key word place of the first search engine.
Certainly, can also generate the regular expression for described search terms, can be for searching search terms position in the search link of search engine.
With reference to Fig. 3, provided described in the application's preferred embodiment in the searching method in a kind of browser the process flow figure for URL.
Step 301, from the search link of described the first search engine, the position at key word place obtains the first key word sign;
For example, user adopts the first search engine defeated, inputs in the search box ABC, and the search terms of selection is map, and user will search for the position of ABC in map.
Click after search, browser and the first search engine lose connection for some reason, cannot obtain the position of ABC in map.
Now, browser can catch for searching for the search link of the first search engine of described key word.Then the result to the structure analysis of the search link of the first search engine between basis can be obtained the first key word sign in the position at key word place from the search link of described the first search engine.
For example, the method that key word in URL is obtained in definition is:
Preferably, the described link of the search from described the first search engine, the position at key word place obtains the first key word sign, comprising:
Use described the first regular expression, from the search link of the first search engine, search the position at described key word place;
In the first key word sign described in the position acquisition at described key word place.
Step 302, according to the coded system in the search link of described the first search engine, decodes to obtain described search key to described the first key word sign.
Coded system during the above-mentioned search that has analyzed equally the first search engine links, just can use decoding process corresponding to described coded system, described the first key word sign is decoded, then can obtain described search key, for example, the search key that described in upper example, the first key word sign decodes should be ABC.
Step 303, from the search link of described the first search engine, the position at search terms place obtains user's search terms;
The structure of the above-mentioned link of the search to the first search engine is analyzed, and has analyzed the position at search terms place in the search link of described the first search engine, then can from the search link of described the first search engine, obtain user's search terms.For example, in upper example, user's search terms is map.
Can or search the position that function is searched search terms place in the search link of the first search engine with the regular expression generating in advance.
Step 304, from the search link of described the second search engine, chooses with the search of user's search terms and links;
Structure by the search link to search engine is analyzed, and can obtain out the search terms in described search link.Therefore, search link that can pre-stored various search termses, corresponding search engine 1 search and webpage that adopts of URL1.1 for example, the corresponding search engine 1 search video that adopts of URL1.2, corresponding search engine 1 searching map etc. that adopts of URL1.3.
Therefore, can be from the search link of the second search engine, can choose with the search of user's search terms and link, for example, choose URL2.3, corresponding employing search engine 2 searching maps.
Step 305, takes the coded system in the search link of described the second search engine, and described search key is encoded, and obtains the second corresponding key word sign;
As above-mentioned, in the second search engine, choose URL2.3, adopt search engine 2 searching maps, then according to the coded system in the search link of the second search engine obtaining in advance, take described coded system, described search key (as ABC) is encoded, obtain the second corresponding key word sign.
Step 306, in the search link of the second search engine, described the second key word sign is added in the position at key word place, generates for searching for the search link of the second search engine of described search key.
Above-mentioned getting in the second search engine, after the second key word that search key (as ABC) is corresponding identifies, can first in the search link of the second search engine, search the position at described key word place, then in the position at described key word place, add described the second key word sign.
As, the position at search key place in URL2.3, then adds described the second key word sign in the position at described key word place, generate for searching for the search link of the second search engine of described key word ABC.
Preferably, in the described search at the second search engine link, the position at key word place is added described the second key word identification of steps and is comprised:
Use described the second regular expression, in the search link of the second search engine, search the position at described key word place;
In the position at described key word place, add described the second key word sign.
In sum, the application not only can obtain key word from the search link of search engine, can also obtain user's search terms, therefore when the search link of follow-up coupling the second search engine, can choose the search corresponding with user's search terms and link, then mate key word.Reduce the troublesome operation process that user also will choose search terms when again searching for.
Preferably, the service fault step of described judgement the first search engine comprises:
If the first search engine is with regard to searching request feedback one prompting error message, the service fault of judgement the first search engine.
In the application, the service fault of the first search engine can disconnect for browser and described the first search engine, can certainly be that the first search engine has fed back prompting error message with regard to searching request.
With reference to Fig. 4, provided the searcher structural drawing in a kind of browser described in the embodiment of the present application.
Accordingly, the application also provides the switching device shifter of search engine in a kind of browser, comprising: obtain keyword module 14, generate link module 16 and generate object module 17, wherein:
Obtain keyword module 14, for judging the service fault of the first search engine, obtain the search key for the first search engine;
Generate link module 16, for generating the search link for the second search engine of described search key;
Generate object module 17, the search link for according to described generation, generates the Search Results to described search key.
Preferably, described in obtain keyword module 14, comprising:
First obtains key word submodule 141, obtains the search key of input for the search input frame from browser menu hurdle; Or, in the search input frame from search and webpage, obtain the search key of input.
Obtain link submodule 142, for obtaining for searching for the search link of the first search engine of described search key;
Second obtains key word submodule 143, for the search link from described the first search engine, obtains search key.
Preferably, second obtains key word submodule 143, comprising:
Acquiring unit 1431, the position that links key word place for the search from described the first search engine obtains the first key word sign;
Decoding unit 1432, for according to the coded system of the search link of described the first search engine, decodes to obtain described search key to described the first key word sign.
Preferably, described acquiring unit 1431 for using described the first regular expression, is searched the position at described key word place from the search link of the first search engine, wherein, described the first regular expression is for searching the position at the search link key word place of the first search engine; In the first key word sign described in the position acquisition at described key word place.
Preferably, described device also comprises: the first pretreatment module 11, comprising:
First obtains submodule 111, for obtaining in advance the search link of described the first search engine;
Analyze submodule 112, for analyzing structure and the coded system of the search link of described the first search engine;
Second obtains submodule 113, for the structure according to described search link, obtains the position at key word place in the search link of described the first search engine.
The 3rd obtains submodule 114, and for obtaining the position at the search link search terms place of described search engine, wherein, described search terms comprises word, audio frequency, video, picture, map.
The second pretreatment module 12, comprising:
First obtains submodule 121, for obtaining in advance the search link of described the second search engine;
Analyze submodule 122, for analyzing structure and the coded system of the search link of described the second search engine;
Second obtains submodule 123, for the structure according to described search link, obtains the position at the search key place in the search link of described the second search engine;
The 3rd obtains submodule 124, for obtaining the position at the search link search terms place of described the first search engine.
Wherein, described search terms comprises word, audio frequency, video, picture, map.
Preferably, described generation link module 16, comprising:
Choose submodule 161, for the search link from described the second search engine, choose with the search of user's search terms and link.
Coding submodule 162, for taking the coded system of the search link of described the second search engine, encodes to described search key, obtains the second corresponding key word sign;
Add submodule 163, described the second key word sign is added in the position at the key word place linking for the search at the second search engine, generates for searching for the search link of the second search engine of described search key.
Described interpolation submodule 163, also for using described the second regular expression, in the search link of the second search engine, search the position at described key word place, wherein, described the second regular expression is for searching the position at the search link key word place of the first search engine; In the position at described key word place, add described the second key word sign.
Preferably, described device also comprises:
Obtain search terms module 15, for the position at the search link search terms place from described the first search engine, obtain user's search terms.
Preserve module 13, for selecting in advance the second search engine and preserving.
The described keyword module 14 of obtaining, comprising:
Fault judge module 140, if point out error message for the first search engine with regard to searching request feedback one, the service fault of judgement the first search engine
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, by the teleprocessing equipment being connected by communication network, be executed the task.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, commodity or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, commodity or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
Searching method and device in a kind of browser above the application being provided, be described in detail, applied specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Meanwhile, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (14)

1. the searching method in browser, is characterized in that, comprising:
The search link of obtaining in advance at least two search engines, wherein, described search engine comprises the first search engine and the second search engine;
Analyze structure and the coded system of the search link of described search engine;
According to the structure of described search link, obtain the position at the key word place in the search link of described search engine;
Judge the service fault of the first search engine, obtain for searching for the search link of the first search engine of search key; From the search link of described the first search engine, the position at key word place obtains the first key word sign; According to the coded system in the search link of described the first search engine, described the first key word sign is decoded to obtain described search key;
Take the coded system in the search link of described the second search engine, described search key is encoded, obtain the second corresponding key word sign; In the search link of the second search engine, described the second key word sign is added in the position at key word place, generates for searching for the search link of the second search engine of described search key;
Search link according to described generation, generates the Search Results to described search key.
2. method according to claim 1, is characterized in that, the described link of the search from described the first search engine, the position at key word place obtains the first key word sign, comprising:
Use the first regular expression, search the position at described key word place from the search link of the first search engine, wherein, described the first regular expression is for searching the position at the search link key word place of the first search engine;
In the first key word sign described in the position acquisition at described key word place.
3. method according to claim 1, is characterized in that, in the described search at the second search engine link, the position at key word place is added described the second key word identification of steps and comprised:
Use the second regular expression, search the position at described key word place in the search link of the second search engine, wherein, described the second regular expression is for searching the position at the search link key word place of the second search engine;
In the position at described key word place, add described the second key word sign.
4. method according to claim 1, is characterized in that, also comprises:
Obtain the position at search terms place in the search link of described the first search engine;
Obtain the position at search terms place in the search link of described the second search engine;
Wherein, described search terms comprises word, audio frequency, video, picture, map.
5. method according to claim 4, is characterized in that, also comprises:
From the search link of described the first search engine, the position at search terms place obtains user's search terms.
6. method according to claim 5, is characterized in that, is generating for before searching for the search link of the second search engine of described search key, also comprises:
From the search link of described the second search engine, choose the search corresponding with user's search terms and link.
7. method according to claim 1, is characterized in that, also comprises:
Select in advance the second search engine and preserve.
8. method according to claim 1, is characterized in that, the service fault step of described judgement the first search engine comprises:
If the first search engine is with regard to searching request feedback one prompting error message, the service fault of judgement the first search engine.
9. the searcher in browser, is characterized in that, comprising:
The first pretreatment module, comprising: first obtains submodule, for obtaining in advance the search link of the first search engine; Analyze submodule, for analyzing structure and the coded system of the search link of described the first search engine; Second obtains submodule, for the structure according to described search link, obtains the position at key word place in the search link of described the first search engine;
The second pretreatment module, comprising: first obtains submodule, for obtaining in advance the search link of the second search engine; Analyze submodule, for analyzing structure and the coded system of the search link of described the second search engine; Second obtains submodule, for the structure according to described search link, obtains the position at the search key place in the search link of described the second search engine;
Obtain keyword module, for judging the service fault of the first search engine, obtain the search key for the first search engine; The described keyword module of obtaining, comprising: obtain link submodule, for obtaining for searching for the search link of the first search engine of described search key; Second obtains key word submodule, for the search link from described the first search engine, obtains search key; Described second obtains key word submodule, comprising: acquiring unit, and the position that links key word place for the search from described the first search engine obtains the first key word sign; Decoding unit, for according to the coded system of the search link of described the first search engine, decodes to obtain described search key to described the first key word sign;
Generate link module, for generating the search link for the second search engine of described search key; Described generation link module, comprising: coding submodule, for taking the coded system of the search link of described the second search engine, described search key is encoded, and obtain the second corresponding key word sign; Add submodule, described the second key word sign is added in the position at the key word place linking for the search at the second search engine, generates for searching for the search link of the second search engine of described search key;
Generate object module, the search link for according to described generation, generates the Search Results to described search key.
10. device according to claim 9, is characterized in that,
Described the first pretreatment module, also comprises:
The 3rd obtains submodule, for obtaining the position at the search link search terms place of described the first search engine;
Described the second pretreatment module, also comprises:
The 3rd obtains submodule, for obtaining the position at the search link search terms place of described the first search engine;
Wherein, described search terms comprises word, audio frequency, video, picture, map.
11. devices according to claim 10, is characterized in that, also comprise:
Obtain search terms module, for the position at the search link search terms place from described the first search engine, obtain user's search terms.
12. devices according to claim 11, is characterized in that, described generation link module, also comprises:
Choose submodule, for the search link from described the second search engine, choose the search corresponding with user's search terms and link.
13. devices according to claim 9, is characterized in that, also comprise:
Preserve module, for selecting in advance the second search engine and preserving.
14. devices according to claim 9, is characterized in that, described in obtain keyword module, comprising:
Fault judge module, if point out error message for the first search engine with regard to searching request feedback one, the service fault of judgement the first search engine.
CN201210093628.1A 2012-03-31 2012-03-31 Searching method and device in browser Active CN102663071B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201210093628.1A CN102663071B (en) 2012-03-31 2012-03-31 Searching method and device in browser
CN201410258502.4A CN104063436B (en) 2012-03-31 2012-03-31 Searching method and device in a kind of browser
CN201410258501.XA CN104063435B (en) 2012-03-31 2012-03-31 Searching method based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210093628.1A CN102663071B (en) 2012-03-31 2012-03-31 Searching method and device in browser

Related Child Applications (2)

Application Number Title Priority Date Filing Date
CN201410258501.XA Division CN104063435B (en) 2012-03-31 2012-03-31 Searching method based on browser
CN201410258502.4A Division CN104063436B (en) 2012-03-31 2012-03-31 Searching method and device in a kind of browser

Publications (2)

Publication Number Publication Date
CN102663071A CN102663071A (en) 2012-09-12
CN102663071B true CN102663071B (en) 2014-07-30

Family

ID=46772562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210093628.1A Active CN102663071B (en) 2012-03-31 2012-03-31 Searching method and device in browser

Country Status (1)

Country Link
CN (1) CN102663071B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631807A (en) * 2012-08-24 2014-03-12 腾讯科技(深圳)有限公司 Method and device for switching engines so as to conduct searching again
CN103678361A (en) * 2012-09-13 2014-03-26 腾讯科技(深圳)有限公司 Method and device for switching search results
CN102968483B (en) * 2012-11-22 2016-04-27 北京奇虎科技有限公司 For the state acquiring method of the search engine of navigation page and device and server
CN104035970B (en) * 2014-05-20 2018-10-09 北京奇虎科技有限公司 A kind of method and apparatus scanned in a browser
CN104021154B (en) * 2014-05-20 2018-03-02 北京奇虎科技有限公司 A kind of method and apparatus scanned in a browser
CN106293350A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The method and apparatus of fast acquiring information
CN105183896A (en) * 2015-09-29 2015-12-23 北京奇虎科技有限公司 Searching recommending method and device based on link address
CN105095527A (en) * 2015-09-29 2015-11-25 北京奇虎科技有限公司 Search method and device based on link address
CN109951380B (en) * 2019-03-29 2021-11-09 上海连尚网络科技有限公司 Method, electronic device, and computer-readable medium for finding conversation messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751428A (en) * 2008-12-12 2010-06-23 汉王科技股份有限公司 Information search method and device
CN102214223A (en) * 2011-06-15 2011-10-12 奇智软件(北京)有限公司 Method and system for browser access control

Also Published As

Publication number Publication date
CN102663071A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102663071B (en) Searching method and device in browser
US10055762B2 (en) Deep application crawling
CN103577597B (en) Keyword search system based on current browse webpage
CN103092581B (en) The building method of a kind of web front end this locality development environment and device
US9582590B2 (en) Method and system for presenting a navigation path for enabling retrieval of content
CN103577596B (en) Keyword search methodology and device based on current browse webpage
US20090313100A1 (en) System and method for previewing search results
CN104346471A (en) Method, device and system for determining to-be-pushed application based on geological position information
CN107766344B (en) Template rendering method and device and browser
CN107679214B (en) Link positioning method, device, terminal and computer readable storage medium
JP5651201B2 (en) Search focused using the network
US9785710B2 (en) Automatic crawling of encoded dynamic URLs
US20120084279A1 (en) Search detail display using search result context
CN105447192A (en) Method and device for recommending personalized search terms on navigation page
CN103577392A (en) Keyword pushing method and device based on current browse webpage
CN105723364A (en) Transition from first search results environment to second search results environment
US20120030359A1 (en) System and method for providing network resource identifier shortening service to computing devices
CN107832332A (en) The method, apparatus and electronic equipment for recommending word are generated in navigating search frame
Sneha et al. A personalized product based recommendation system using web usage mining and semantic web
CN104283865A (en) Download processing method and device, server and client device
WO2014029358A1 (en) Method and apparatus for switching search engine to repeat search
JP2014006864A (en) Method of providing preview content interlocked with retrieval word automatic completion
US20030112276A1 (en) User augmentation of content
JP2009294836A (en) Search processing device, method and program in which pseudo feedback processing is selectively applied in web search
CN104063436A (en) Searching method in browser and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20121029

Owner name: BEIJING QIHU TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20121029

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100016 CHAOYANG, BEIJING TO: 100088 XICHENG, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20121029

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Applicant after: Qizhi software (Beijing) Co.,Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

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

C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220714

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

TR01 Transfer of patent right