CN104063436A - Searching method in browser and device - Google Patents

Searching method in browser and device Download PDF

Info

Publication number
CN104063436A
CN104063436A CN201410258502.4A CN201410258502A CN104063436A CN 104063436 A CN104063436 A CN 104063436A CN 201410258502 A CN201410258502 A CN 201410258502A CN 104063436 A CN104063436 A CN 104063436A
Authority
CN
China
Prior art keywords
search
link
search engine
key
engine
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.)
Granted
Application number
CN201410258502.4A
Other languages
Chinese (zh)
Other versions
CN104063436B (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
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 CN201410258502.4A priority Critical patent/CN104063436B/en
Priority claimed from CN201210093628.1A external-priority patent/CN102663071B/en
Publication of CN104063436A publication Critical patent/CN104063436A/en
Application granted granted Critical
Publication of CN104063436B publication Critical patent/CN104063436B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques

Abstract

The invention provides a searching method in a browser and a device, in order to solve the problems of complex operation and waste of user time during the process of manually switching a searching engine and re-searching. The method comprises the following steps: judging a service fault of a first searching engine and acquiring a searching keyword for the first searching engine; generating a searching linkage of a second searching engine for the searching keyword; generating a searching result for the searching keyword according to the generated searching linkage. When the first searching engine presently used by a user is in service fault, the searching engine can be manually switched, and searching data can be displayed for the user. The operation is simple; the operations of manually re-inputting the keyword and manually switching the searching engine are not required; the searching data can be quickly acquired; time is saved.

Description

Searching method in a kind of browser and device
Patented claim of the present invention be that March 31, application number in 2012 are 201210093628.1 the applying date, name is called the dividing an application of Chinese invention patent application of " searching method in a kind of browser and device ".
Technical field
The application relates to technical field, 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=&source=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:
const char*_SearchKeyWords[]={
"http://*.google.c*/search?*q=*",
"http://*.google.c*/*?*=*",
"http://*.google.c*/#*q=*",
"http://*.baidu.com/*?*=*"
}
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:
const char*_SearchKeyWords[]={
"http://*.google.c*/search?*q=*",
"http://*.google.c*/*?*=*",
"http://*.google.c*/#*q=*",
"http://*.baidu.com/*?*=*"
}
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 system 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 (26)

1. the searching method in browser, is characterized in that, 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.
2. method according to claim 1, is characterized in that, 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.
3. method according to claim 1, is characterized in that, 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.
4. method according to claim 3, is characterized in that, 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.
5. method according to claim 4, is characterized in that, 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.
6. method according to claim 4, is characterized in that, the described link of the search from described the first search engine, obtains 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.
7. method according to claim 6, 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 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.
8. method according to claim 5, is characterized in that, 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.
9. method according to claim 8, 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 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.
10. method according to claim 5, 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.
11. methods according to claim 10, is characterized in that, also comprise:
From the search link of described the first search engine, the position at search terms place obtains user's search terms.
12. methods according to claim 11, is characterized in that, 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.
13. methods according to claim 1, is characterized in that, also comprise:
Select in advance the second search engine and preserve.
14. methods 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.
Searcher in 15. 1 kinds of browsers, is characterized in that, 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.
16. devices according to claim 15, is characterized in that, 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.
17. devices according to claim 15, is characterized in that, 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.
18. devices according to claim 17, is characterized in that, also comprise: 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.
19. devices according to claim 18, is characterized in that, also comprise: 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.
20. devices according to claim 18, is characterized in that, 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.
21. devices according to claim 19, is characterized in that, 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.
22. devices according to claim 19, 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.
23. devices according to claim 22, 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.
24. devices according to claim 23, is characterized in that, 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.
25. devices according to claim 15, is characterized in that, also comprise:
Preserve module, for selecting in advance the second search engine and preserving.
26. devices according to claim 15, 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.
CN201410258502.4A 2012-03-31 2012-03-31 Searching method and device in a kind of browser Expired - Fee Related CN104063436B (en)

Priority Applications (1)

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

Applications Claiming Priority (2)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN104063436A true CN104063436A (en) 2014-09-24
CN104063436B CN104063436B (en) 2018-10-19

Family

ID=51551151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410258502.4A Expired - Fee Related CN104063436B (en) 2012-03-31 2012-03-31 Searching method and device in a kind of browser

Country Status (1)

Country Link
CN (1) CN104063436B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704561A (en) * 2017-09-29 2018-02-16 珠海市魅族科技有限公司 A kind of searching method, device, computer installation and readable storage medium storing program for executing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061631A1 (en) * 2005-08-29 2007-03-15 Denso Corporation Fault diagnosis in relaying data among a plurality of networks
CN101751428A (en) * 2008-12-12 2010-06-23 汉王科技股份有限公司 Information search method and device
US20110238645A1 (en) * 2010-03-29 2011-09-29 Ebay Inc. Traffic driver for suggesting stores
CN102214223A (en) * 2011-06-15 2011-10-12 奇智软件(北京)有限公司 Method and system for browser access control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061631A1 (en) * 2005-08-29 2007-03-15 Denso Corporation Fault diagnosis in relaying data among a plurality of networks
CN101751428A (en) * 2008-12-12 2010-06-23 汉王科技股份有限公司 Information search method and device
US20110238645A1 (en) * 2010-03-29 2011-09-29 Ebay Inc. Traffic driver for suggesting stores
CN102214223A (en) * 2011-06-15 2011-10-12 奇智软件(北京)有限公司 Method and system for browser access control

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FIDEL: "快速切换搜索引擎的Chrome扩展"搜索拐杖"", 《CHROME BLOG HTTP://WWW.CHROMEBLOG.CN/2011/06/CHROME-BROWSER/快速切换搜索引擎的-CHROME扩展搜索拐杖.HTML》 *
方亚会: "Google失败后快速切换搜索引擎", 《电脑迷》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704561A (en) * 2017-09-29 2018-02-16 珠海市魅族科技有限公司 A kind of searching method, device, computer installation and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN104063436B (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN102663071B (en) Searching method and device in browser
US10108715B2 (en) Transformation and presentation of on-demand native application crawling results
US10055762B2 (en) Deep application crawling
US9703883B2 (en) Social bookmarking of resources exposed in web pages
CN103092581B (en) The building method of a kind of web front end this locality development environment and device
CN103577596B (en) Keyword search methodology and device based on current browse webpage
US9582590B2 (en) Method and system for presenting a navigation path for enabling retrieval of content
CN107766344B (en) Template rendering method and device and browser
CN103577597A (en) Keyword searching system based on current browse webpage
CN104346471A (en) Method, device and system for determining to-be-pushed application based on geological position information
CN107679214B (en) Link positioning method, device, terminal and computer readable storage medium
CN103577392A (en) Keyword pushing method and device based on current browse webpage
CN105447192A (en) Method and device for recommending personalized search terms on navigation page
CN101963992A (en) Method and browser for increasing webpage display speed
CN107832332A (en) The method, apparatus and electronic equipment for recommending word are generated in navigating search frame
US20120030359A1 (en) System and method for providing network resource identifier shortening service to computing devices
CN104283865A (en) Download processing method and device, server and client device
Sneha et al. A personalized product based recommendation system using web usage mining and semantic web
JP2014006864A (en) Method of providing preview content interlocked with retrieval word automatic completion
CN104317929A (en) Search result display optimizing method and device
CN104239454A (en) Searching method and device
CN104951536B (en) Searching method and device
CN104063436A (en) Searching method in browser and device
CN103092945A (en) Searching method and device based on interface returning
CN104063435A (en) Searching method based on browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181019

Termination date: 20210331