CN104063436B - Searching method and device in a kind of browser - Google Patents

Searching method and device in a kind of browser Download PDF

Info

Publication number
CN104063436B
CN104063436B CN201410258502.4A CN201410258502A CN104063436B CN 104063436 B CN104063436 B CN 104063436B CN 201410258502 A CN201410258502 A CN 201410258502A CN 104063436 B CN104063436 B CN 104063436B
Authority
CN
China
Prior art keywords
search
link
keyword
search engine
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.)
Expired - Fee Related
Application number
CN201410258502.4A
Other languages
Chinese (zh)
Other versions
CN104063436A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application provides the searching methods and device in a kind of browser, and when re-starting search to solve manual switching search engine, operation is very cumbersome, the problem of wasting the time of user.The method includes:Judge the service fault of the first search engine, then obtains the search key for the first search engine;Generate the search link for the second search engine of described search keyword;Search according to the generation links, and generates the search result to described search keyword.The application can automatically switch search engine in the first currently used search engine service failure of user, and search data are shown to user.It is easy to operate, without re-entering keyword and manual switching search engine manually, search data can be quickly obtained, the time is saved.

Description

Searching method and device in a kind of browser
Present patent application be the applying date be on March 31st, 2012, application No. is 201210093628.1, it is entitled The divisional application of the Chinese invention patent application of " a kind of browser in searching method and device ".
Technical field
This application involves technical fields, more particularly to the searching method and device in a kind of browser.
Background technology
Browser is a kind of application software, can show the html file content of web page server or file system, and User is allowed to be interacted with these files.It may be displayed on word in the networks such as WWW or LAN, image and other Information.These words or image, can be the hyperlink for connecting other network address, and user can browse various information rapidly, easily. Wherein, most of webpage is html format, some webpages need particular browser that could correctly show.
Include many functions in browser, such as:Bookmark management, download management, web page contents cache and transmission third party insert Part (plugins) supports multimedia etc..Wherein, the function being worth mentioning is the function of search in browser, it can to use More rapidly and accurately target information is found from the numerous data of network in family.
With the continuous expansion of web database technology, user's search need is continuously increased, and also produces more and more search Engine.Search engine increases so that user looks for target information in mass data more selections.
When user executes search, after selecting some search engine, keyword can be inputted in search box, it then can point It hits and gets search data.But if the search engine cannot connect for some reason, when being unable to get search data, use Family does not obtain desired data, and user just needs to return to initial searched page at this time, re-enters keyword and cuts manually Search engine is changed, re-starts search, operation is very cumbersome, wastes the time of user.
Invention content
This application provides the searching method and device in a kind of browser, with solve manual switching search engine again into When row search, operation is very cumbersome, the problem of wasting the time of user.
To solve the above-mentioned problems, this application discloses the searching methods in a kind of browser, including:
Judge the service fault of the first search engine, then obtains the search key for the first search engine;
Generate the search link for the second search engine of described search keyword;
Search according to the generation links, and generates the search result to described search keyword.
Preferably, the step of search key obtained for the first search engine, including:
The search key of input is obtained from the search input frame on browser menu column;Or
The search key of input is obtained from the search input frame in search and webpage.
Preferably, the step of search key obtained for the first search engine, including:
Obtain the search link of the first search engine for searching for described search keyword;
Search key is obtained from the search of first search engine link.
Preferably, the method further comprises:
The search link of first search engine is obtained in advance;
Analyze the structure and coding mode of the search link of first search engine;
According to the structure of described search link, the position where keyword in the search link of first search engine is obtained It sets.
Preferably, the method further comprises:
The search link of second search engine is obtained in advance;
Analyze the structure and coding mode of the search link of second search engine;
According to the structure of described search link, searching for where the keyword in link for second search engine is obtained Position.
Preferably, search key is obtained in the link from the search of first search engine, including:
The first keyword identification is obtained from the position where keyword in the search link of first search engine;
According to the coding mode in the search link of first search engine, first keyword identification is solved Code is to obtain described search keyword.
Preferably, first is obtained from the position in the search link from first search engine where keyword to close Key word identifies, including:
Using first regular expression, where searching the keyword in the search of the first search engine link Position, wherein first regular expression is used to search the position of the first search engine searched in link where keyword;
The first keyword identification described in the position acquisition where the keyword.
Preferably, it is described generate for described search keyword the second search engine search link the step of include:
The coding mode in the search link of second search engine is taken, the keyword of described search is compiled Code, obtains corresponding second keyword identification;
Second keyword identification is added in position in the search link of the second search engine where keyword, generates Search link for the second search engine for searching for described search keyword.
Preferably, the position addition described second in the search link of the second search engine where keyword is crucial Word identification of steps includes:
Using second regular expression, where searching the keyword during the search of the second search engine links Position, wherein second regular expression is used to search the position of the first search engine searched in link where keyword;
Second keyword identification is added in the position where the keyword.
Preferably, the method further includes:
Obtain the position where search terms in the search link of first search engine;
Obtain the position where search terms in the search link of second search engine;
Wherein, described search item includes word, audio, video, picture, map.
Preferably, the method further includes:
The search terms of user are obtained from the position where search terms in the search link of first search engine.
Preferably, before generating for the search link of the second search engine of described search keyword, further include:
From the search of second search engine link, chooses search corresponding with the search terms of user and link.
Preferably, the method further includes:
The second search engine is pre-selected and preserves.
Preferably, described to judge that the service fault step of the first search engine includes:
Error message is prompted if the first search engine with regard to searching request feedback one, judges the service event of the first search engine Barrier.
Correspondingly, disclosed herein as well is the searchers in a kind of browser, including:
Keyword module is obtained, the service fault for judging the first search engine then obtains and is directed to the first search engine Search key;
Link module is generated, for generating the search link for the second search engine of described search keyword;
Object module is generated, is linked for the search according to the generation, generates the search knot to described search keyword Fruit.
Preferably, the acquisition keyword module, including:
First obtains keyword submodule, and the search for obtaining input from the search input frame on browser menu column is closed Key word;Or, obtaining the search key of input from the search input frame in search and webpage.
Preferably, the acquisition keyword module, including:
Obtain link submodule, the search chain for obtaining the first search engine for searching for described search keyword It connects;
Second obtains keyword submodule, crucial for obtaining search from the search of first search engine link Word.
Preferably, the device further includes:First preprocessing module, including:
First acquisition submodule, the search for obtaining first search engine in advance link;
Submodule is analyzed, the structure and coding mode of the search link for analyzing first search engine;
Second acquisition submodule obtains the search of first search engine for the structure according to described search link Position in link where keyword.
Preferably, the device further includes:Second preprocessing module, including:
First acquisition submodule, the search for obtaining second search engine in advance link;
Submodule is analyzed, the structure and coding mode of the search link for analyzing second search engine;
Second acquisition submodule obtains the search of second search engine for the structure according to described search link The position where search key in link.
Preferably, described second keyword submodule is obtained, including:
Acquiring unit, for obtaining first from the position where keyword in the search link of first search engine Keyword identification;
Decoding unit is closed for the coding mode in the search link according to first search engine to described first Key word mark is decoded to obtain described search keyword.
Preferably, the generation link module, including:
Encoding submodule, for taking the coding mode in the search link of second search engine, to described search Keyword is encoded, and corresponding second keyword identification is obtained;
Submodule is added, in the position addition described second where the keyword of the search link of the second search engine Keyword identification generates the search link of the second search engine for searching for described search keyword.
Preferably, first preprocessing module further includes:
Third acquisition submodule, the position in the search link for obtaining first search engine where search terms;
Second preprocessing module further includes:
Third acquisition submodule, the position in the search link for obtaining first search engine where search terms;
Wherein, described search item includes word, audio, video, picture, map.
Preferably, the device further includes:
Search terms module is obtained, for being obtained from the position where search terms in the search link of first search engine Take the search terms at family.
Preferably, the generation link module further includes:
Submodule is chosen, for from the search of second search engine link, selection to be searched with the search terms of user Rope chain connects.
Preferably, the device further includes:
Preserving module, for the second search engine to be pre-selected and preserves.
The preferred acquisition keyword module, including:
Breakdown judge module, for if the first search engine is with regard to one prompt error message of searching request feedback, judging the The service fault of one search engine.
Compared with prior art, the application includes following advantages:
In conclusion judging the service fault of the first search engine, then the search key for the first search engine is obtained Word, generates the search link for the second search engine of described search keyword, and the search according to the generation is linked, generated To the search result of described search keyword.The application, can be in the first currently used search engine service failure of user Automatically switch search engine, search data are shown to user.It is easy to operate, without re-entering keyword and manual switching manually Search engine can quickly obtain search data, save the time.
Secondly, application can directly obtain keyword from search box, can also pass through the page chain of analysis search engine The structure connect obtains keyword, and the acquisition methods of keyword are various, can meet the needs of various search engines switchings.
Again, the application not only can obtain keyword from the search of search engine link, can also obtain user's Search terms, therefore in the page link of the second search engine of subsequent match, the search chain with the search terms of user can be chosen It connects, then matches keyword.The troublesome operation process of search terms will also be chosen when re-searching for by reducing user.
Description of the drawings
Fig. 1 is the searching method flow chart in a kind of browser described in the embodiment of the present application;
Fig. 2 is preprocess method flow chart in the searching method in a kind of browser described in the application preferred embodiment;
Fig. 3 is the processing method stream that URL is directed in the searching method in a kind of browser described in the application preferred embodiment Cheng Tu;
Fig. 4 is the searcher structure chart in a kind of browser described in the embodiment of the present application.
Specific implementation mode
In order to make the above objects, features, and advantages of the present application more apparent, below in conjunction with the accompanying drawings and it is specific real Applying mode, the present application will be further described in detail.
Referring to Fig.1, the searching method flow chart in a kind of browser described in the embodiment of the present application is given.
Step 11, judge the service fault of the first search engine, then obtain the search key for the first search engine;
User selects the first search engine to scan for, and after the search key of input search, can click and search for this When can generate the search link of first search engine, i.e. URL (uniform resource locator), wherein including search key.
Can obtain search data by the search of first search engine link, if but first search engine by Disconnected in certain reasons and browser, you can't get search data, for example, sometimes user search for when it is possible that It is " bad!XX search is as out of joint ... " illustrate that search engine cannot connect when user searches for.
At this point, browser can obtain the search key for the first search engine.
Step 12, the search link for the second search engine of described search keyword is generated;
After the above-mentioned keyword for getting user's search, the structure that can be linked according to the search of the second search engine, Allot the search link of the second search engine for searching for described search keyword, i.e. URL.Include search in the i.e. described URL Keyword can obtain the corresponding search data of described search keyword using the URL.
Step 13, it is linked according to the search of the generation, generates the search result to described search keyword.
After above-mentioned generation is for the search link of the second search engine of described search keyword, described second can be used The search chain of search engine connects the second search engine in succession, then can get described search and link corresponding webpage, you can Therefrom obtain the corresponding search result of described search keyword.
In conclusion judging the service fault of the first search engine, then the search key for the first search engine is obtained Word, generates the search link for the second search engine of described search keyword, and the search according to the generation is linked, generated To the search result of described search keyword.The application, can be in the first currently used search engine service failure of user Automatically switch search engine, search data are shown to user.It is easy to operate, without re-entering keyword and manual switching manually Search engine can quickly obtain search data, save the time.
Preferably, the method for the keyword for obtaining user's search, including:
1, the keyword that user searches for is obtained from search input frame.
It specifically includes:
The search key of input is obtained from the search input frame on browser menu column;Or
The search key of input is obtained from the search input frame in search and webpage.
In specific implementation, user can directly retain the keyword in search input frame, or will search after clicking search Keyword in rope input frame is stored in historical record, and the application does not do the storage method of keyword in search input frame It limits.
After the acquisition, user's search can be directly acquired to search data in search input frame in switching search engine by obtaining Keyword.
2, the search link of the first search engine for searching for described search keyword is obtained;Draw from first search Search key is obtained in the search link held up.
After user is selected in the first search engine, inputting keyword, then click scans for, and is will produce at this time for searching The search of first search engine of rope described search keyword links, and browser can capture described search link, then described Search key is obtained in the search link of first search engine.
In conclusion application directly can obtain keyword from search input frame, it can also be by analyzing search engine The structure of search link obtain keyword, the acquisition methods of keyword are various, can meet various search engines switchings It needs.
Lower mask body discusses the analysis method of the search link of search engine.
With reference to Fig. 2, preprocess method in the searching method in a kind of browser described in the application preferred embodiment is given Flow chart.
Step 201, the search link of at least two search engines is obtained in advance;
Including:The search link of first search engine is obtained in advance, also, obtains second search engine in advance Search link.
There is multiple and different search engines in actual treatment, for example, Google (google), Baidu, search dog and having.Often The search link of a search engine has its unique structure, therefore can obtain in advance and wherein at least connect searching for a search engine Rope chain connects, such as the first search engine and the second search engine, when a search engine cannot connect, can subsequently to carry out It is switched to the second search engine.
For example, being directed to the same keyword X:
When being scanned for using Google, 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=7556l8359l0l8619l5l5l0l0l0l0l0l 0ll0l0&gs_l=h P.3...7556l8359l0l8619l5l5l0l0l0l0l0l0ll0l0.frgbld.&bav=on.2, or.r_gc.r_pw., Cf.os b&fp=15c06062bf1af023&biw=1366&bih=602
When being scanned for using Baidu, the search of Baidu is linked as:
http://www.baidu.com/sWd=%E5%A5%87%E8%99%8E&rsv_spt=1&issp= 1&rsv_bp=0&ie=utf-8&tn=baiduhome_pg&inputT=1529
Step 202, the structure and coding mode of the search link of analysis described search engine;
Including:The structure and coding mode of the search link of first search engine are analyzed, also, analyzes described second The structure and coding mode of the search link of search engine.
Then the structure of the search link of the search engine of above-mentioned acquisition is analyzed, for example, search engine May include the network address of the homepage of the search engine in search link, (e.g., X is in the URL for the corresponding keyword identification of keyword In mark) and user search terms (for example, user wants search and webpage or searching map).
Can also analyze described search engine search link in coding mode, i.e., how by user search for keyword It is converted into keyword identification.
Step 203, the structure according to described search link obtains the keyword institute in the search link of described search engine Position;
Including:The position where the search key in the search link of first search engine is obtained, also, is obtained The position where search key in the search link of described search engine.
The structure of the search link of the above-mentioned search engine to acquisition is analyzed, and user then can be therefrom got Position where the keyword of search.
In specific implementation, can generate a regular expression can when needing to switch search engine or search function To use the regular expression and the lookup function, search key is found in being linked from search.
For example, being defined as follows data structure to match the URL captured:
Const char*_SearchKeyWords []=
"http://*.google.c*/search* q=* ",
"http://*.google.c*/**=* ",
"http:// * .google.c*/#*q=* ",
"http://*.baidu.com/**=* "
}
Step 204, the position where search terms in the search link of described search engine is obtained, wherein described search item Including word, audio, video, picture, map;
Including:The position where search terms in the search link of first search engine is obtained, also, obtains described the Position in the search link of one search engine where search terms.
The application can also lead to other than it can obtain the keyword that user searches for from the search link of search engine The structure for crossing analysis described search link (that is, URL), obtains the position where the search terms of user.
Wherein, described search item includes word, audio, video, picture, map, can be the option of user's search, e.g., After user entered keyword, search and webpage, map, audio, video and picture etc. can be selected.
In specific implementation, can generate a regular expression can when needing to switch search engine or search function To use the regular expression and the lookup function, search terms are found in being linked from search.
Step 205, the second search engine is pre-selected and preserves;
In practice, including a variety of search engines, therefore the second search engine can be pre-set and preserved so that user When being disconnected using the first search engine and browser, the second search engine can be automatically switched to and scanned for.
In specific implementation, for example, user when can not once connect the first search engine, can provide a few money search engines It is selected for user, can be then the second search engine with the search engine that default setting user selects, occur same shape later It can be switched over automatically when condition, reduce the operation of user.Certainly, it may remind the user that when switching the second search engine clear Device of looking at loses with the first search engine to be connect.Above-mentioned is only a kind of method in specific implementation, and the application does not limit this.
After the above-mentioned structure for analyzing each search engine, it can be informed in the page link of each search engine crucial Position where word, then can generate corresponding regular expression, and the regular expression can be used for searching search engine Search link in position where keyword.
Preferably, the method further includes:
The first regular expression is generated, first regular expression is used to search in the search link of the first search engine Position where keyword.
The second regular expression is generated, second regular expression is used to search in the search link of the first search engine Position where keyword.
It is, of course, also possible to generate the regular expression for described search item, it can be used for searching the search of search engine Search terms position in link.
With reference to Fig. 3, the place that URL is directed in the searching method in a kind of browser described in the application preferred embodiment is given Manage method flow diagram.
Step 301, the first key is obtained from the position where keyword in the search link of first search engine Word identifies;
For example, user is defeated using the first search engine, ABC is inputted in search box, the search terms selected are map, that is, are used Family will search for positions of the ABC in map.
After clicking search, browser and the first search engine disconnect for some reason, can not obtain ABC in map In position.
At this point, browser can capture the search link of the first search engine for searching for the keyword.Then To the structural analysis of the search link of the first search engine as a result, can be from the search of first search engine between The first keyword identification is obtained at position in link where keyword.
For example, the method that definition obtains keyword in URL is:
Const char*_SearchKeyWords []=
"http://*.google.c*/search* q=* ",
"http://*.google.c*/**=* ",
"http:// * .google.c*/#*q=* ",
"http://*.baidu.com/**=* "
}
Preferably, first is obtained from the position in the search link from first search engine where keyword to close Key word identifies, including:
Using first regular expression, where searching the keyword in the search of the first search engine link Position;
The first keyword identification described in the position acquisition where the keyword.
Step 302, according to the coding mode in the search link of first search engine, to the first keyword mark Knowledge is decoded to obtain described search keyword.
Coding mode in the above-mentioned search link for equally having analyzed the first search engine, so that it may to use the coding The corresponding decoding process of mode is decoded first keyword identification, then can obtain described search keyword, example Such as, the search key that the first keyword identification decodes described in upper example should be ABC.
Step 303, searching for user is obtained from the position where search terms in the search link of first search engine Suo Xiang;
The structure of the above-mentioned search link to the first search engine is analyzed, and has been analyzed and has been drawn in first search Then position in the search link held up where search terms can obtain user from the search of first search engine link Search terms.For example, the search terms of user are map in upper example.
It using the regular expression being generated in advance or can search in search link of the function to search the first search engine Position where search terms.
Step 304, it from the search of second search engine link, chooses the search with the search terms of user and links;
It is analyzed by the structure of the search link to search engine, the search in described search link can be obtained out .Therefore, the search link of various search terms can be prestored, such as URL1.1 is corresponded to and used 1 search and webpage of search engine, URL1.2 is corresponded to searches for video using search engine 1, and URL1.3 is corresponded to using 1 searching map of search engine etc..
Therefore, it can choose and be linked with the search of the search terms of user from the search of the second search engine link, For example, URL2.3 is chosen, it is corresponding to use 2 searching map of search engine.
Step 305, take second search engine search link in coding mode, to described search keyword into Row coding, obtains corresponding second keyword identification;
URL2.3 is chosen in the second search engine Ru above-mentioned, that is, uses 2 searching map of search engine, then according in advance Coding mode in the search link of the second search engine obtained, takes the coding mode, (such as to described search keyword ABC it) is encoded, obtains corresponding second keyword identification.
Step 306, second keyword is added in the position in the search link of the second search engine where keyword Mark generates the search link of the second search engine for searching for described search keyword.
It is above-mentioned to get in the second search engine, it, can after corresponding second keyword identification of search key (such as ABC) With the position first where searching the keyword during the search of the second search engine links, then where the keyword Position add second keyword identification.
Such as, the position in URL2.3 where search key, then described in the position addition where the keyword Second keyword identification generates the search link of the second search engine for searching for the keyword ABC.
Preferably, the position addition described second in the search link of the second search engine where keyword is crucial Word identification of steps includes:
Using second regular expression, where searching the keyword during the search of the second search engine links Position;
Second keyword identification is added in the position where the keyword.
In conclusion the application not only can obtain keyword from the search of search engine link, use can also be obtained The search terms at family, therefore when the search of the second search engine of subsequent match links, can choose opposite with the search terms of user The search link answered, then matches keyword.The troublesome operation process of search terms will also be chosen when re-searching for by reducing user.
Preferably, described to judge that the service fault step of the first search engine includes:
Error message is prompted if the first search engine with regard to searching request feedback one, judges the service event of the first search engine Barrier.
The service fault of the first search engine can be that browser is disconnected with first search engine in the application, Can certainly be that the first search engine has fed back prompt error message with regard to searching request.
With reference to Fig. 4, the searcher structure chart in a kind of browser described in the embodiment of the present application is given.
Correspondingly, present invention also provides a kind of switching devices of search engine in browser, including:Obtain crucial type matrix Block 14 generates link module 16 and generates object module 17, wherein:
Keyword module 14 is obtained, the service fault for judging the first search engine then obtains and draws for the first search The search key held up;
Link module 16 is generated, for generating the search link for the second search engine of described search keyword;
Object module 17 is generated, is linked for the search according to the generation, generates the search to described search keyword As a result.
Preferably, the acquisition keyword module 14, including:
First obtains keyword submodule 141, for obtaining searching for input from the search input frame on browser menu column Rope keyword;Or, obtaining the search key of input from the search input frame in search and webpage.
Obtain link submodule 142, the search for obtaining the first search engine for searching for described search keyword Link;
Second obtains keyword submodule 143, is closed for obtaining search from the search of first search engine link Key word.
Preferably, second keyword submodule 143 is obtained, including:
Acquiring unit 1431, for being obtained from the position where keyword in the search link of first search engine First keyword identification;
Decoding unit 1432, for the coding mode in the search link according to first search engine, to described the One keyword identification is decoded to obtain described search keyword.
Preferably, the acquiring unit 1431, for using first regular expression, from searching for the first search engine Rope chain connects the middle position searched where the keyword, wherein first regular expression is for searching the first search engine Search link in position where keyword;The first keyword identification described in the position acquisition where the keyword.
Preferably, the device further includes:First preprocessing module 11, including:
First acquisition submodule 111, the search for obtaining first search engine in advance link;
Submodule 112 is analyzed, the structure and coding mode of the search link for analyzing first search engine;
Second acquisition submodule 113 obtains searching for first search engine for the structure according to described search link Rope chain connects the position where middle keyword.
Third acquisition submodule 114, the position in the search link for obtaining described search engine where search terms, In, described search item includes word, audio, video, picture, map.
Second preprocessing module 12, including:
First acquisition submodule 121, the search for obtaining second search engine in advance link;
Submodule 122 is analyzed, the structure and coding mode of the search link for analyzing second search engine;
Second acquisition submodule 123 obtains searching for second search engine for the structure according to described search link Rope chain connect in search key where position;
Third acquisition submodule 124, the position in the search link for obtaining first search engine where search terms It sets.
Wherein, described search item includes word, audio, video, picture, map.
Preferably, the generation link module 16, including:
Submodule 161 is chosen, for from the search of second search engine link, choosing and the search terms of user Search link.
Encoding submodule 162 is searched for taking the coding mode in the search link of second search engine to described Rope keyword is encoded, and corresponding second keyword identification is obtained;
Submodule 163 is added, for described in the position addition where the keyword of the search link of the second search engine Second keyword identification generates the search link of the second search engine for searching for described search keyword.
The addition submodule 163, is also used for second regular expression, in the search chain of the second search engine Connect the position searched where the keyword, wherein second regular expression is for searching searching for the first search engine Rope chain connects the position where middle keyword;Second keyword identification is added in the position where the keyword.
Preferably, the device further includes:
Search terms module 15 is obtained, for from the position where search terms in the search link of first search engine Obtain the search terms of user.
Preserving module 13, for the second search engine to be pre-selected and preserves.
The acquisition keyword module 14, including:
Breakdown judge module 140, for if the first search engine is with regard to one prompt error message of searching request feedback, judgement The service fault of first search engine
For system embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage device.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, commodity or equipment including a series of elements include not only that A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, commodity or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in process, method, commodity or the equipment including the element.
It above to the searching method and device in a kind of browser provided herein, is described in detail, herein In apply specific case the principle and implementation of this application are described, the explanation of above example is only intended to sides Assistant solves the present processes and its core concept;Meanwhile for those of ordinary skill in the art, the think of according to the application Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair The limitation of the application.

Claims (20)

1. the searching method in a kind of browser, which is characterized in that including:
Judge the service fault of the first search engine, then obtains the search chain of the first search engine for searching for search key It connects;Search key is obtained from the search of first search engine link;Searching for first search engine is obtained in advance Rope chain connects;
Analyze the structure and coding mode of the search link of first search engine;
According to the structure of described search link, the position where keyword in the search link of first search engine is obtained;
Search key is obtained in the link from the search of first search engine, including:
The first keyword identification is obtained from the position where keyword in the search link of first search engine;
According to first search engine search link in coding mode, to first keyword identification be decoded with Obtain described search keyword;
Generate the search link for the second search engine of described search keyword;
Search according to the generation links, and generates the search result to described search keyword.
2. according to the method described in claim 1, it is characterized in that, the search key obtained for the first search engine The step of, further include:
The search key of input is obtained from the search input frame on browser menu column;Or
The search key of input is obtained from the search input frame in search and webpage.
3. according to the method described in claim 1, it is characterized in that, further comprising:
The search link of second search engine is obtained in advance;
Analyze the structure and coding mode of the search link of second search engine;
According to the structure of described search link, the position where the keyword in the search link of second search engine is obtained It sets.
4. according to the method described in claim 1, it is characterized in that, being closed in the link from the search of first search engine The first keyword identification is obtained at position where key word, including:
Using the first regular expression, the position where searching the keyword in the search link of the first search engine, In, first regular expression is used to search the position of the first search engine searched in link where keyword;
The first keyword identification described in the position acquisition where the keyword.
5. according to the method described in claim 3, it is characterized in that, second search generated for described search keyword Engine search link the step of include:
The coding mode in the search link of second search engine is taken, described search keyword is encoded, is obtained Corresponding second keyword identification;
Second keyword identification is added in position in the search link of the second search engine where keyword, and generation is used for Search for the search link of the second search engine of described search keyword.
6. according to the method described in claim 5, it is characterized in that, the keyword in the search link of the second search engine Add the second keyword identification step in the position at place:
Using the second regular expression, the position where searching the keyword in the search link of the second search engine, In, second regular expression is used to search the position of the first search engine searched in link where keyword;
Second keyword identification is added in the position where the keyword.
7. according to the method described in claim 3, it is characterized in that, further including:
Obtain the position where search terms in the search link of first search engine;
Obtain the position where search terms in the search link of second search engine;
Wherein, described search item includes word, audio, video, picture, map.
8. the method according to the description of claim 7 is characterized in that further including:
The search terms of user are obtained from the position where search terms in the search link of first search engine.
9. according to the method described in claim 8, it is characterized in that, drawing generating the second search for described search keyword Before the search link held up, further include:
From the search of second search engine link, chooses search corresponding with the search terms of user and link.
10. according to the method described in claim 1, it is characterized in that, further including:
The second search engine is pre-selected and preserves.
11. according to the method described in claim 1, it is characterized in that, the service fault step for judging the first search engine Including:
Error message is prompted if the first search engine with regard to searching request feedback one, judges the service fault of the first search engine.
12. the searcher in a kind of browser, which is characterized in that including:
Keyword module is obtained, the service fault for judging the first search engine then obtains searching for the first search engine Rope keyword;
The acquisition keyword module, including:Link submodule is obtained, for obtaining for searching for described search keyword The search of one search engine links;Second obtains keyword submodule, for from the search of first search engine link Obtain search key;
First preprocessing module, including:
First acquisition submodule, the search for obtaining first search engine in advance link;
Submodule is analyzed, the structure and coding mode of the search link for analyzing first search engine;
Second acquisition submodule obtains the search link of first search engine for the structure according to described search link Position where middle keyword;
Described second obtains keyword submodule, including:
Acquiring unit, it is crucial for obtaining first from the position where keyword in the search link of first search engine Word identifies;
Decoding unit, for the coding mode in the search link according to first search engine, to first keyword Mark is decoded to obtain described search keyword;
Link module is generated, for generating the search link for the second search engine of described search keyword;
Object module is generated, is linked for the search according to the generation, generates the search result to described search keyword.
13. device according to claim 12, which is characterized in that the acquisition keyword module, including:
First obtains keyword submodule, and the search for obtaining input from the search input frame on browser menu column is crucial Word;Or, obtaining the search key of input from the search input frame in search and webpage.
14. device according to claim 12, which is characterized in that further include:Second preprocessing module, including:
First acquisition submodule, the search for obtaining second search engine in advance link;
Submodule is analyzed, the structure and coding mode of the search link for analyzing second search engine;
Second acquisition submodule obtains the search link of second search engine for the structure according to described search link In search key where position.
15. device according to claim 14, which is characterized in that the generation link module, including:
Encoding submodule, for taking the coding mode in the search link of second search engine, to described search key Word is encoded, and corresponding second keyword identification is obtained;
Submodule is added, for crucial in the position addition described second where the keyword of the search link of the second search engine Word identifies, and generates the search link of the second search engine for searching for described search keyword.
16. device according to claim 14, which is characterized in that
First preprocessing module further includes:
Third acquisition submodule, the position in the search link for obtaining first search engine where search terms;
Second preprocessing module further includes:
Third acquisition submodule, the position in the search link for obtaining first search engine where search terms;
Wherein, described search item includes word, audio, video, picture, map.
17. device according to claim 16, which is characterized in that further include:
Search terms module is obtained, is used for being obtained from the position where search terms in the search link of first search engine The search terms at family.
18. device according to claim 17, which is characterized in that the generation link module further includes:
Submodule is chosen, for from the search of second search engine link, choosing the search chain with the search terms of user It connects.
19. device according to claim 12, which is characterized in that further include:
Preserving module, for the second search engine to be pre-selected and preserves.
20. device according to claim 12, which is characterized in that the acquisition keyword module, including:
Breakdown judge module judges that first searches for prompting error message if the first search engine with regard to searching request feedback one Index the service fault held up.
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 CN104063436A (en) 2014-09-24
CN104063436B true 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)

Families Citing this family (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 (1)

* 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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007067528A (en) * 2005-08-29 2007-03-15 Denso Corp Network relaying apparatus, fault diagnostic apparatus, and program
US8819052B2 (en) * 2010-03-29 2014-08-26 Ebay Inc. Traffic driver for suggesting stores
CN102214223A (en) * 2011-06-15 2011-10-12 奇智软件(北京)有限公司 Method and system for browser access control

Patent Citations (1)

* 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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Google失败后快速切换搜索引擎;方亚会;《电脑迷》;20110601(第06(2011)期);第28页 *

Also Published As

Publication number Publication date
CN104063436A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN102663071B (en) Searching method and device in browser
US7426513B2 (en) Client-based objectifying of text pages
JP4396242B2 (en) Document link structure information creation apparatus and method
CN103577596B (en) Keyword search methodology and device based on current browse webpage
CN103246678B (en) A kind of web page content preview method and apparatus
US20090313100A1 (en) System and method for previewing search results
US20080104042A1 (en) Personalized Search Using Macros
US9582590B2 (en) Method and system for presenting a navigation path for enabling retrieval of content
CN101493813B (en) Video search system based on content
US20100125781A1 (en) Page generation by keyword
JP5651201B2 (en) Search focused using the network
JP2003281191A (en) Retrieval server and retrieval result providing method
CN107832332A (en) The method, apparatus and electronic equipment for recommending word are generated in navigating search frame
KR101473347B1 (en) Method and system for searching contents
JP2011043924A (en) Web action history acquisition system, web action history acquisition method, gateway device and program
CN104063436B (en) Searching method and device in a kind of browser
CN105808623B (en) A kind of page access event correlation methodology and device based on search
US20080172620A1 (en) Web page control program, method, and server
CN104063435B (en) Searching method based on browser
JP2007128367A (en) Information retrieval knowhow management system
CN103092945B (en) A kind of searching method and device returned based on interface
JP2009294836A (en) Search processing device, method and program in which pseudo feedback processing is selectively applied in web search
JP5300648B2 (en) RECOMMENDATION INFORMATION PROVIDING DEVICE, USER TERMINAL, OPERATION RECOMMENDING METHOD, AND PROGRAM
KR20050040030A (en) Method and apparatus for displaying web page in terminal
TWI610190B (en) A method of client side page processing and server side page generating thereof for reducing html tags

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

Granted publication date: 20181019

Termination date: 20210331

CF01 Termination of patent right due to non-payment of annual fee