CN104021231B - The method and apparatus that webpage is shown in browser - Google Patents

The method and apparatus that webpage is shown in browser Download PDF

Info

Publication number
CN104021231B
CN104021231B CN201410298927.8A CN201410298927A CN104021231B CN 104021231 B CN104021231 B CN 104021231B CN 201410298927 A CN201410298927 A CN 201410298927A CN 104021231 B CN104021231 B CN 104021231B
Authority
CN
China
Prior art keywords
web page
page contents
webpage
keyword
search
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410298927.8A
Other languages
Chinese (zh)
Other versions
CN104021231A (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 Hongxiang Technical Service 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 CN201410298927.8A priority Critical patent/CN104021231B/en
Publication of CN104021231A publication Critical patent/CN104021231A/en
Application granted granted Critical
Publication of CN104021231B publication Critical patent/CN104021231B/en
Active 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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/957Browsing optimisation, e.g. caching or content distillation
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

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 Transfer Between Computers (AREA)

Abstract

The invention provides the method and apparatus that webpage is shown in a kind of browser.Wherein, this method includes:Webpage is opened in a browser, and the URL of the opening webpage is sent to the server of the browser;Receive the key word information corresponding to the URL that the server of the browser is returned;The web page contents keyword of matching is found in the opening webpage according to the key word information;The web page contents keyword of the matching is converted into the linking element of a search, and is shown in the opening webpage, wherein, the linking element band is oriented to specify search for the link information that engine initiates searching request according to the web page contents keyword of matching.Using technical scheme, it is possible to increase the efficiency of search, Consumer's Experience is improved, i.e. for a user, it is more convenient to search for.

Description

The method and apparatus that webpage is shown in browser
Technical field
The present invention relates to Internet technical field, the method and apparatus that webpage is shown in more particularly to a kind of browser.
Background technology
Browser refers to that web page server or HTML (the Hyper Text Mark-up of file system can be shown Language, HTML) file content, and allow a kind of software of user and these file interactions.It is used for showing Text, image and other information in WWW or LAN etc., user can be browsed rapidly, easily.
In correlation technique, user is it should be understood that in the content of text of webpage during the relevant information of certain keyword, generally use Following steps are realized, the keyword is replicated first, search engine is then opened, the keyword then is affixed into search engine Input frame, and send searching request to server, the search result that last the reception server is returned.Further, if with Family is it should be understood that the relevant information of multiple keywords, then be required for realizing by above-mentioned steps for each keyword.By This is visible, and the complex operation step of the relevant information of keyword in the content of text of webpage is obtained at present, and search efficiency is relatively low, shadow Ring Consumer's Experience.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on The method and corresponding device of webpage are shown in the browser for stating problem.
According to one aspect of the present invention there is provided a kind of method that webpage is shown in browser, including:In a browser Webpage is opened, the URL (Uniform Resource Locator, URL) of the opening webpage is sent to institute State the server of browser;Receive the key word information corresponding to the URL that the server of the browser is returned;According to institute State the web page contents keyword that key word information finds matching in the opening webpage;The web page contents of the matching are closed Keyword is converted into the linking element of a search, and is shown in the opening webpage, wherein, the linking element band is oriented to specify Search engine initiates the link information of searching request according to the web page contents keyword of matching.
Alternatively, the key word information includes:Search the web page contents keyword it is described opening webpage in whether The context string of presence;And indicate the positional information of web page contents keyword position in the context string.
Alternatively, the positional information of web page contents keyword position in the context string is indicated, including:Institute State the character length of start bit and the web page contents keyword of the web page contents keyword in the context string.
Alternatively, described send to the webpage URL of the server of browser species includes:According to browser side Configuration information, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, the configuration information is by the server It is issued to the browser;Or, meet the webpage URL of searching request formula.
Alternatively, the web page contents keyword of matching is found in the opening webpage according to the key word information, Including:DOM (Document Object Model, the document dbject model) trees of the opening webpage are traveled through;Obtain with The corresponding web page contents of the key word information;The web page contents keyword that matching is found in the web page contents is corresponding DOM node, and lock.
Alternatively, the hyperlink request of the linking element of the search is returned by the server side, or, by described clear Device lateral root is look at according to the web page contents keyword and for specifying search for engine generation.
Alternatively, the web page contents keyword of the matching is converted into after the linking element of a search, in addition to: The linking element generation DOM node translated into, is inserted into former webpage dom tree;Or, change the web page contents crucial The former DOM node of word is the DOM node for the linking element generation being converted into.
Alternatively, the web page contents keyword of the matching is converted into the linking element of a search, including:Obtain with The web page contents keyword as keyword and sets up the URL associated with specifying search for engine;In the opening webpage In HTML code, the URL associated described in acquisition with specifying search for engine foundation is added to the web page contents keyword Code position.
Alternatively, the URL associated described in acquisition with specifying search for engine foundation is added to the web page contents key The code position of word, including:The URL associated with specifying search for engine foundation described in acquisition is added into the web page contents to close Before or after the code position of keyword.
Alternatively, the web page contents keyword of the matching is converted into the linking element of a search, and is shown in institute Opening webpage is stated, including:Linking element after conversion is included on the opening webpage with highlighted font;Or, it will convert Linking element afterwards is shown on the opening webpage with the font size different from webpage other fonts.
According to another aspect of the present invention, the device that webpage is shown in a kind of browser is additionally provided, including:
Sending module, is configured to open webpage in a browser, and the uniform resource position mark URL of the opening webpage is sent out Deliver to the server of the browser;
Receiving module, is configured to receive the key word information corresponding to the URL that the server of the browser is returned;
Searching modul, is configured to find the web page contents of matching in the opening webpage according to the key word information Keyword;
Modular converter, is configured to the web page contents keyword of the matching being converted into the linking element of a search, and The opening webpage is shown in, wherein, the oriented web page contents key for specifying search for engine according to matching of the linking element band Word initiates the link information of searching request.
Alternatively, the key word information includes:Search the web page contents keyword it is described opening webpage in whether The context string of presence;And indicate the positional information of web page contents keyword position in the context string.
Alternatively, the positional information of web page contents keyword position in the context string is indicated, including:Institute State the character length of start bit and the web page contents keyword of the web page contents keyword in the context string.
Alternatively, described send to the webpage URL of the server of browser species includes:According to browser side Configuration information, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, the configuration information is by the server It is issued to the browser;Or, meet the webpage URL of searching request formula.
Alternatively, the searching modul is additionally configured to:The dom tree of the opening webpage is traveled through;Obtain with it is described The corresponding web page contents of key word information;The corresponding DOM of web page contents keyword of matching is found in the web page contents Node, and lock.
Alternatively, the hyperlink request of the linking element of the search is returned by the server side, or, by described clear Device lateral root is look at according to the web page contents keyword and for specifying search for engine generation.
Alternatively, described device also includes:Processing module, is configured in the webpage of the matching in the modular converter Hold keyword to be converted into after the linking element of a search, the linking element generation DOM node translated into is inserted into original In webpage dom tree;Or, the former DOM node for changing the web page contents keyword is the DOM for the linking element generation being converted into Node.
Alternatively, the modular converter is additionally configured to:Obtain using the web page contents keyword as keyword and with finger Determine the URL that search engine sets up association;It is described opening webpage HTML code in, by described in acquisition with specify search for engine The URL for setting up association is added to the code position of the web page contents keyword.
Alternatively, the modular converter is additionally configured to:The URL associated described in acquisition with specifying search for engine foundation is added Before or after the code position for being added to the web page contents keyword.
Alternatively, the modular converter is additionally configured to:Linking element after conversion is included with highlighted font to beat described Open on webpage;Or, the linking element after conversion is included with the font size different from webpage other fonts to open described On webpage.
According to technical scheme, browser sends the URL for opening webpage to the server of browser, according to clothes The key word information corresponding to URL that business device is returned finds the web page contents keyword of matching, and general in webpage is opened The web page contents keyword matched somebody with somebody is converted into the linking element of a search, is shown in opening webpage.Due to the link of the search Element band is oriented to specify search for the link information that engine initiates searching request according to web page contents keyword, therefore when user needs When understanding the relevant information of web page contents keyword, the linking element of the search can be directly triggered, is realized to specifying search for Engine initiates searching request according to web page contents keyword, without crucial by replicating web page contents in correlation technique first Word, then opens search engine, and the web page contents keyword is then affixed to the input frame of search engine, and is sent out to server Go out searching request, the tedious steps for the search result that last the reception server is returned.Particularly as user it should be understood that multiple nets During the relevant information of page content keyword, the present invention can directly trigger the chain of each corresponding search of web page contents keyword Connect member and usually obtain relevant information, solve in correlation technique and to be required for for each web page contents keyword by above-mentioned numerous The problem of trivial step obtains relevant information.Therefore, technical scheme can improve the efficiency of search, improve user's body Test, i.e. for a user, it is more convenient to search for.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will be brighter Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow chart for the method that webpage is shown in browser according to an embodiment of the invention;
Fig. 2 shows another flow chart for the method that webpage is shown in browser according to an embodiment of the invention;
Fig. 3 shows the third flow chart for the method that webpage is shown in browser according to an embodiment of the invention; And
Fig. 4 shows the structural representation for the device that webpage is shown in browser according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Referred in correlation technique, the operating procedure that the relevant information of keyword in the content of text of webpage is obtained at present is numerous Trivial, search efficiency is relatively low, influences Consumer's Experience.
In order to solve the above technical problems, the embodiments of the invention provide a kind of method that webpage is shown in browser, Fig. 1 shows A kind of flow chart of the method for webpage is gone out in browser according to an embodiment of the invention to show.As shown in figure 1, this method At least comprise the following steps S102 to step S108.
Step S102, webpage is opened in a browser, the URL for opening webpage is sent to the server of browser.
The key word information corresponding to above-mentioned URL that step S104, the server of reception browser are returned.
Step S106, foundation key word information find the web page contents keyword of matching in webpage is opened.
Step S108, the web page contents keyword of matching is converted into the linking element of a search, and is shown in opening Webpage, wherein, linking element band is oriented to specify search for the chain that engine initiates searching request according to the web page contents keyword of matching Connect information.
According to technical scheme, browser sends the URL for opening webpage to the server of browser, according to clothes The key word information corresponding to URL that business device is returned finds the web page contents keyword of matching, and general in webpage is opened The web page contents keyword matched somebody with somebody is converted into the linking element of a search, is shown in opening webpage.Due to the link of the search Element band is oriented to specify search for the link information that engine initiates searching request according to web page contents keyword, therefore when user needs When understanding the relevant information of web page contents keyword, the linking element of the search can be directly triggered, is realized to specifying search for Engine initiates searching request according to web page contents keyword, without crucial by replicating web page contents in correlation technique first Word, then opens search engine, and the web page contents keyword is then affixed to the input frame of search engine, and is sent out to server Go out searching request, the tedious steps for the search result that last the reception server is returned.Particularly as user it should be understood that multiple nets During the relevant information of page content keyword, the present invention can directly trigger the chain of each corresponding search of web page contents keyword Connect member and usually obtain relevant information, solve in correlation technique and to be required for for each web page contents keyword by above-mentioned numerous The problem of trivial step obtains relevant information.Therefore, technical scheme can improve the efficiency of search, improve user's body Test, i.e. for a user, it is more convenient to search for.
In above step S102, the webpage URL of the server of transmission to browser species can be according to browser side Configuration information, the webpage URL of the regular expression for meeting webpage URL of generation, and the configuration information is issued to by server Browser;Or can also be the webpage URL for meeting searching request formula.Secondly, the key word information referred in step S104 can To be to look for the context string that web page contents keyword whether there is in webpage is opened, and indicate web page contents keyword The start bit and webpage of the positional information of position in context string, such as web page contents keyword in context string The character length of content keyword.For example, the content of key word information may refer to as follows:
Wherein, three groups of key word informations are contained in catalogue list.First, the value str1 of content (context) is to look for The context string that web page contents keyword (searchkey1) whether there is in webpage is opened, starting the value 1 of (start) is Start bits of the web page contents keyword searchkey1 in context string, the value 1 of length (length) is that web page contents are closed Keyword searchkey1 character length;Secondly, context value str2 is to look for web page contents keyword searchkey2 and existed Open the context string that whether there is in webpage, start value 2 is web page contents keyword searchkey2 in content character Start bit in string, length value 2 is web page contents keyword searchkey2 character length;Furthermore, context value " promoting world peace and development " is to look for the content character that web page contents keyword " peace " whether there is in webpage is opened String, start value 5 is start bit of the web page contents keyword " peace " in context string, and length value 2 is in webpage Hold the character length of keyword " peace ".It should be noted that multigroup key word information can also be included in catalogue list, this Outside, the content of key word information can also use other forms, the invention is not restricted to this in addition to the form of above-mentioned expression.
In one embodiment of the invention, step S106 can be realized using following technological means:First to opening The dom tree of webpage is traveled through, by way of traversal and then acquisition web page contents corresponding with key word information, afterwards in net The corresponding DOM node of web page contents keyword of matching is found in page content, and locks the DOM node, in case subsequently general The web page contents keyword matched somebody with somebody is converted into the linking element of a search, and the technological means realizes the quick net for finding matching Page content keyword.
After step S106 finds the web page contents keyword of matching according to key word information in opening webpage, step The web page contents keyword of matching is further converted into the linking element of a search in rapid S108, due to the chain of the search The oriented link information for specifying search for engine according to web page contents keyword initiation searching request of element band is connect, therefore when user needs It is to be understood that during the relevant information of web page contents keyword, can directly trigger the linking element of the search (as clicked on or double-clicking The linking element of the search), realize and initiate searching request to specifying search for engine according to web page contents keywords, wherein, search The hyperlink request of the linking element of rope can be returned by server side, or can also be closed by browser lateral root according to web page contents Keyword is simultaneously generated for specifying search for engine.Further, when search linking element hyperlink request by browser lateral root According to web page contents keyword and for specifying search for during engine generation, step S108 can be realized using following technological means: Obtain first using web page contents keyword as keyword and set up the URL associated with specifying search for engine, and then opening net In the HTML code of page, acquisition is set up into the code that the URL associated is added to web page contents keyword with specifying search for engine Position, for example, by acquisition with specify search for engine set up the URL associated be added to web page contents keywords code position it It is preceding or afterwards.For example, above list the 3rd group of key word information, is beating in step S106 according to the key word information Open after finding the web page contents keyword " peace " of matching in webpage, further obtain with web page contents keyword " peace " The URL, i.e. " http that associate are set up as keyword and with specifying search for engine://www.so.com/sQ=%E5%92% 8C%E5%B9%B3&src=xxx ", and then in the HTML code for opening webpage, acquisition is built with specifying search for engine The URL of vertical association is added to before the code position of web page contents keyword " peace ".Here, addition obtain with specifying search for HTML code before engine sets up the URL of association is as follows:
It should be noted that being that the URL associated with specifying search for engine foundation of acquisition is added into net in above-mentioned example Before the code position of page content keyword " peace ", naturally it is also possible to be added to the code bit of web page contents keyword " peace " After putting, it can realize that this web page contents keyword is scanned for " peace ".
In another embodiment of the present invention, in step S108 can by the linking element after conversion with webpage font Different sytlized fonts or the mode of Special display includes it to open webpage.For example, linking element is shown with highlighted font Show on webpage is opened;Or, linking element is included on webpage is opened with the font size different from webpage other fonts; Again or, by add background patterns linking element include open webpage on, etc..This intuitively visual effect to use Family can find web page contents keyword rapidly, so that search is more convenient, save time resource.Furthermore, step After S108, the linking element generation DOM node that can also be translated into is inserted into former webpage dom tree;Or modification net The former DOM node of page content keyword is the DOM node for the linking element generation being converted into, in case follow-up inquiry is used.
A variety of implementations of each link in the embodiment shown in Fig. 1 are described above, below by specific preferred real Example is applied to showing that the method for webpage is described further in browser provided in an embodiment of the present invention.
Fig. 2 shows another flow chart for the method that webpage is shown in browser according to an embodiment of the invention. As shown in Fig. 2 this method comprises the following steps S202 to step S212.
Step S202, webpage is opened in a browser, the URL for opening webpage is sent to the server of browser.The step In rapid, the webpage URL of the server of transmission to browser species can be the configuration information according to browser side, the symbol of generation The webpage URL of webpage URL regular expression is closed, and the configuration information is issued to browser by server;Or can also be Meet the webpage URL of searching request formula.
The key word information corresponding to above-mentioned URL that step S204, the server of reception browser are returned.
In the step, key word information can be to look for the content that web page contents keyword whether there is in webpage is opened Character string, and indicate the positional information of web page contents keyword position in context string, such as web page contents keyword The character length of start bit and web page contents keyword in context string.
Step S206, the dom tree for opening webpage is traveled through, by way of traversal and then acquisition and key word information Corresponding web page contents.
Step S208, the corresponding DOM node of web page contents keyword for finding in web page contents matching, and lock should DOM node.
Step S210, acquisition using web page contents keyword as keyword and set up what is associated with specifying search for engine URL。
Step S212, in the HTML code for opening webpage, acquisition is set up into the URL associated with specifying search for engine and added Before or after the code position for being added to web page contents keyword, the chain that web page contents keyword is converted into a search is realized Element is connect, and is shown in opening webpage, wherein, the oriented engine that specifies search for of the linking element band is closed according to the web page contents of matching Keyword initiates the link information of searching request.
In the step, can by the linking element after conversion with highlighted font include open webpage on, or, with net The different font size of other fonts of page is shown on opening webpage, and this intuitively visual effect make it that user's search is more square Just.In addition, the hyperlink request of the linking element of search can also be returned by server side.
Further, after step S212, the linking element generation DOM node that can also be translated into is inserted into original In webpage dom tree;Or the DOM node that the former DOM node of modification web page contents keyword is the linking element generation being converted into, In case follow-up inquiry is used.
Above step S202 to step S212 can further be realized according to flow as shown in Figure 3.That is, browsed in S302 Device is opened after webpage, and browser sends the request for obtaining key word information to its server in S304, is carried and is beaten in request Open the URL of webpage.And then the request that server sends acquisition key word information according to S304 browsers in S306 judges whether to deposit In corresponding key word information, if it is present key word information is returned into browser, if it does not exist, then terminating this Flow, or the prompting represented in the absence of key word information is returned to browser.Browser receives server return in S308 Key word information after, the web page contents keyword of matching is further searched in webpage is opened.Judge whether in subsequent S310 The web page contents keyword of matching is found in webpage is opened, if so, then by the web page contents keyword of matching in S312 The linking element of a search is converted into, and is shown in opening webpage, wherein, linking element band is oriented to specify search for engine foundation The web page contents keyword of matching initiates the link information of searching request;If it is not, then terminating this flow.
It should be noted that in practical application, above-mentioned all optional embodiments can be any group by the way of combining Close, form the alternative embodiment of the present invention, this is no longer going to repeat them.
Based on same inventive concept, the embodiment of the present invention additionally provides the device that webpage is shown in a kind of browser, with reality The method that webpage is shown in existing above-mentioned browser.
Fig. 4 shows the structural representation for the device that webpage is shown in browser according to an embodiment of the invention.Ginseng See Fig. 4, the device at least includes:Sending module 410, receiving module 420, searching modul 430 and modular converter 440.
Each composition of the device of webpage or the function of device are shown in the browser for now introducing the embodiment of the present invention and each Annexation between part:
Sending module 410, is configured to open webpage in a browser, and the uniform resource position mark URL for opening webpage is sent out Deliver to the server of browser;
Receiving module 420, is coupled with sending module 410, be configured to receive browser server return correspond to URL key word information;
Searching modul 430, is coupled with receiving module 420, is configured to search in webpage is opened according to key word information To the web page contents keyword of matching;
Modular converter 440, is coupled with searching modul 430, is configured to the web page contents keyword of matching being converted into one The linking element of search, and opening webpage is shown in, wherein, the oriented net for specifying search for engine according to matching of linking element band Page content keyword initiates the link information of searching request.
In one embodiment of the invention, key word information includes:Web page contents keyword is searched in webpage is opened The context string that whether there is;And indicate the positional information of web page contents keyword position in context string.
In one embodiment of the invention, the position letter of web page contents keyword position in context string is indicated Breath, including:The character length of start bit and web page contents keyword of the web page contents keyword in context string.
In one embodiment of the invention, the species sent to the webpage URL of the server of browser includes:According to clear Look at the configuration information of device side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, configuration information is by server It is issued to browser;Or, meet the webpage URL of searching request formula.
In one embodiment of the invention, searching modul 430 is also configured as:File object mould to opening webpage Type dom tree is traveled through;Obtain web page contents corresponding with key word information;Found in web page contents in the webpage of matching Hold the corresponding DOM node of keyword, and lock.
In one embodiment of the invention, the hyperlink request of the linking element of search is returned by server side, or, By browser lateral root according to web page contents keyword and for specifying search for engine generation.
In one embodiment of the invention, as shown in figure 4, said apparatus can also include:Processing module 450, with turning Mold changing block 440 is coupled, and is configured to be converted into the web page contents keyword of matching in modular converter 440 link of one search After element, the linking element generation DOM node translated into is inserted into former webpage dom tree;Or, in modification webpage The former DOM node for holding keyword is the DOM node for the linking element generation being converted into.
In one embodiment of the invention, modular converter 440 is also configured as:Obtain and made with web page contents keyword The URL associated is set up for keyword and with specifying search for engine;In the HTML HTML code for opening webpage, Acquisition is set up into the code position that the URL associated is added to web page contents keyword with specifying search for engine.
In one embodiment of the invention, modular converter 440 is also configured as:By acquisition with specifying search for engine The URL for setting up association is added to before or after the code position of web page contents keyword.
In one embodiment of the invention, modular converter 440 is also configured as:By the linking element after conversion with height Bright font is shown on opening webpage;Or, by the linking element after conversion with the font size different from webpage other fonts It is shown on opening webpage.
Based on method, the device that webpage is shown in the browser that each embodiment is provided above, based on same inventive concept, sheet Inventive embodiments additionally provide a kind of browser, including above-mentioned any one device.
According to the combination of any one above-mentioned preferred embodiment or multiple preferred embodiments, the embodiment of the present invention can reach Following beneficial effect:
According to technical scheme, browser sends the URL for opening webpage to the server of browser, according to clothes The key word information corresponding to URL that business device is returned finds the web page contents keyword of matching, and general in webpage is opened The web page contents keyword matched somebody with somebody is converted into the linking element of a search, is shown in opening webpage.Due to the link of the search Element band is oriented to specify search for the link information that engine initiates searching request according to web page contents keyword, therefore when user needs When understanding the relevant information of web page contents keyword, the linking element of the search can be directly triggered, is realized to specifying search for Engine initiates searching request according to web page contents keyword, without crucial by replicating web page contents in correlation technique first Word, then opens search engine, and the web page contents keyword is then affixed to the input frame of search engine, and is sent out to server Go out searching request, the tedious steps for the search result that last the reception server is returned.Particularly as user it should be understood that multiple nets During the relevant information of page content keyword, the present invention can directly trigger the chain of each corresponding search of web page contents keyword Connect member and usually obtain relevant information, solve in correlation technique and to be required for for each web page contents keyword by above-mentioned numerous The problem of trivial step obtains relevant information.Therefore, technical scheme can improve the efficiency of search, improve user's body Test, i.e. for a user, it is more convenient to search for.
In addition, conversion after linking element can be shown in highlighted font opening webpage on, or, with webpage other The different font size of font is shown on opening webpage, and this intuitively visual effect allows users to find webpage rapidly Content keyword, so that search is more convenient, saves time resource.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Mode it can use in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) show the device of webpage to realize in browser according to embodiments of the present invention In some or all parts some or all functions.The present invention is also implemented as described herein for performing The some or all equipment or program of device (for example, computer program and computer program product) of method.So Realization the present invention program can store on a computer-readable medium, or can have one or more signal shape Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal Formula is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and coming real by means of properly programmed computer It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention It is determined that or deriving many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized It is set to and covers other all these variations or modifications.
The invention also discloses a kind of method that webpage is shown in A1, browser, including:
Webpage is opened in a browser, and the uniform resource position mark URL of the opening webpage is sent to the browser Server;
Receive the key word information corresponding to the URL that the server of the browser is returned;
The web page contents keyword of matching is found in the opening webpage according to the key word information;
The web page contents keyword of the matching is converted into the linking element of a search, and is shown in the opening net Page, wherein, the oriented engine that specifies search for of the linking element band initiates searching request according to the web page contents keyword of matching Link information.
A2, the method according to A1, wherein, the key word information includes:
Search the context string that the web page contents keyword whether there is in the opening webpage;And
Indicate the positional information of web page contents keyword position in the context string.
A3, the method according to A2, wherein, indicate web page contents keyword position in the context string Positional information, including:
Start bit and the web page contents keyword of the web page contents keyword in the context string Character length.
A4, the method according to A1 to any one of A3, wherein, it is described to send to the webpage of the server of the browser URL species includes:
According to the configuration information of browser side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, institute State configuration information and the browser is issued to by the server;Or
Meet the webpage URL of searching request formula.
A5, the method according to A1 to any one of A4, wherein, according to the key word information in the opening webpage The web page contents keyword of matching is found, including:
The document dbject model dom tree of the opening webpage is traveled through;
Obtain web page contents corresponding with the key word information;
The corresponding DOM node of web page contents keyword of matching is found in the web page contents, and is locked.
A6, the method according to A1 to any one of A5, wherein, the hyperlink request of the linking element of the search is by institute Server side return is stated, or, by the browser lateral root according to the web page contents keyword and for specifying search for engine life Into.
A7, the method according to A1 to any one of A6, wherein, the web page contents keyword of the matching is converted into one After the linking element of search, in addition to:
The linking element generation DOM node translated into, is inserted into former webpage dom tree;Or
The former DOM node for changing the web page contents keyword is the DOM node for the linking element generation being converted into.
A8, the method according to A1 to any one of A7, wherein, the web page contents keyword of the matching is converted into one The linking element of search, including:
Obtain using the web page contents keyword as keyword and set up the URL associated with specifying search for engine;
In the HTML HTML code of the opening webpage, it will be built described in acquisition with specifying search for engine The URL of vertical association is added to the code position of the web page contents keyword.
A9, the method according to A8, wherein, the URL associated described in acquisition with specifying search for engine to set up is added To the code position of the web page contents keyword, including:
Described in acquisition the code that the URL associated is added to the web page contents keyword will be set up with specifying search for engine Before or after position.
A10, the method according to A1 to any one of A9, wherein, the web page contents keyword of the matching is converted into The linking element of one search, and the opening webpage is shown in, including:
Linking element after conversion is included on the opening webpage with highlighted font;Or
Linking element after conversion is included on the opening webpage with the font size different from webpage other fonts.
The device of webpage is shown in B11, a kind of browser, including:
Sending module, is configured to open webpage in a browser, and the uniform resource position mark URL of the opening webpage is sent out Deliver to the server of the browser;
Receiving module, is configured to receive the key word information corresponding to the URL that the server of the browser is returned;
Searching modul, is configured to find the web page contents of matching in the opening webpage according to the key word information Keyword;
Modular converter, is configured to the web page contents keyword of the matching being converted into the linking element of a search, and The opening webpage is shown in, wherein, the oriented web page contents key for specifying search for engine according to matching of the linking element band Word initiates the link information of searching request.
B12, the device according to B11, wherein, the key word information includes:
Search the context string that the web page contents keyword whether there is in the opening webpage;And
Indicate the positional information of web page contents keyword position in the context string.
B13, the device according to B12, wherein, indicate the web page contents keyword in the context string middle position The positional information put, including:
Start bit and the web page contents keyword of the web page contents keyword in the context string Character length.
B14, the device according to B11 to any one of B13, wherein, it is described to send to the server of the browser Webpage URL species includes:
According to the configuration information of browser side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, institute State configuration information and the browser is issued to by the server;Or
Meet the webpage URL of searching request formula.
B15, the device according to B11 to any one of B14, wherein, the searching modul is additionally configured to:
The document dbject model dom tree of the opening webpage is traveled through;
Obtain web page contents corresponding with the key word information;
The corresponding DOM node of web page contents keyword of matching is found in the web page contents, and is locked.
B16, the device according to B11 to any one of B15, wherein, the hyperlink request of the linking element of the search Returned by the server side, or, by the browser lateral root according to the web page contents keyword and for specifying search for drawing Hold up generation.
B17, the device according to B11 to any one of B16, wherein, in addition to:
Processing module, is configured to that the web page contents keyword of the matching is converted into search use in the modular converter Linking element after, the linking element that translates into generation DOM node is inserted into former webpage dom tree;Or, modification The former DOM node of the web page contents keyword is the DOM node for the linking element generation being converted into.
B18, the device according to B11 to any one of B17, wherein, the modular converter is additionally configured to:
Obtain using the web page contents keyword as keyword and set up the URL associated with specifying search for engine;
In the HTML HTML code of the opening webpage, it will be built described in acquisition with specifying search for engine The URL of vertical association is added to the code position of the web page contents keyword.
B19, the device according to B18, wherein, the modular converter is additionally configured to:
Described in acquisition the code that the URL associated is added to the web page contents keyword will be set up with specifying search for engine Before or after position.
B20, the device according to B11 to any one of B19, wherein, the modular converter is additionally configured to:
Linking element after conversion is included on the opening webpage with highlighted font;Or
Linking element after conversion is included on the opening webpage with the font size different from webpage other fonts.

Claims (18)

1. the method for webpage is shown in a kind of browser, including:
Webpage is opened in a browser, and the uniform resource position mark URL of the opening webpage is sent to the clothes of the browser Business device;
Multigroup key word information corresponding to the URL that the server of the browser is returned is received, wherein, each group keyword Information at least include search web page contents keyword it is described opening webpage in whether there is context string, indicate in webpage Hold the keyword positional information of position and web page contents keyword in context string;
The web page contents keyword of matching is found in the opening webpage according to multigroup key word information;
The web page contents keyword of the matching is converted into the linking element of a search, and is shown in the opening webpage, Wherein, the linking element band is oriented specifies search for the link that engine initiates searching request according to the web page contents keyword of matching Information.
2. according to the method described in claim 1, wherein, indicate the web page contents keyword in the context string middle position The positional information put, including:
The character of start bit and the web page contents keyword of the web page contents keyword in the context string Length.
3. the method according to any one of claim 1 to 2, wherein, it is described to send to the net of the server of the browser Page URL species includes:
According to the configuration information of browser side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, it is described to match somebody with somebody Confidence breath is issued to the browser by the server;Or
Meet the webpage URL of searching request formula.
4. the method according to any one of claim 1 to 2, wherein, opened according to multigroup key word information described The web page contents keyword of matching is found in webpage, including:
The document dbject model dom tree of the opening webpage is traveled through;
Obtain web page contents corresponding with the multigroup key word information;
The corresponding DOM node of web page contents keyword of matching is found in the web page contents, and is locked.
5. the method according to any one of claim 1 to 2, wherein, the hyperlink request of the linking element of the search by The server side is returned, or, by the browser lateral root according to the web page contents keyword and for specifying search for engine Generation.
6. the method according to any one of claim 1 to 2, wherein, the web page contents keyword of the matching is converted into After the linking element of one search, in addition to:
The linking element generation DOM node translated into, is inserted into former webpage dom tree;Or
The former DOM node for changing the web page contents keyword is the DOM node for the linking element generation being converted into.
7. the method according to any one of claim 1 to 2, wherein, the web page contents keyword of the matching is converted into The linking element of one search, including:
Obtain using the web page contents keyword as keyword and set up the URL associated with specifying search for engine;
In the HTML HTML code of the opening webpage, pass will be set up with specifying search for engine described in acquisition The URL of connection is added to the code position of the web page contents keyword.
8. method according to claim 7, wherein, the URL associated described in acquisition with specifying search for engine foundation is added The code position of the web page contents keyword is added to, including:
Described in acquisition the code position that the URL associated is added to the web page contents keyword will be set up with specifying search for engine Before or after.
9. the method according to any one of claim 1 to 2, wherein, the web page contents keyword of the matching is converted into The linking element of one search, and the opening webpage is shown in, including:
Linking element after conversion is included on the opening webpage with highlighted font;Or
Linking element after conversion is included on the opening webpage with the font size different from webpage other fonts.
10. the device of webpage is shown in a kind of browser, including:
Sending module, is configured to open webpage in a browser, by it is described opening webpage uniform resource position mark URL send to The server of the browser;
Receiving module, is configured to receive multigroup key word information corresponding to the URL that the server of the browser is returned, Wherein, each group key word information at least includes searching the content word that web page contents keyword whether there is in the opening webpage Symbol goes here and there, indicates web page contents the keyword positional information of position and web page contents keyword in context string;
Searching modul, is configured to find the web page contents of matching in the opening webpage according to multigroup key word information Keyword;
Modular converter, is configured to the web page contents keyword of the matching being converted into the linking element of a search, and show In the opening webpage, wherein, the oriented web page contents keyword hair for specifying search for engine according to matching of the linking element band Play the link information of searching request.
11. device according to claim 10, wherein, indicate the web page contents keyword in the context string The positional information of position, including:
The character of start bit and the web page contents keyword of the web page contents keyword in the context string Length.
12. the device according to any one of claim 10 to 11, wherein, it is described to send to the server of the browser Webpage URL species includes:
According to the configuration information of browser side, the webpage URL of the regular expression for meeting webpage URL of generation, wherein, it is described to match somebody with somebody Confidence breath is issued to the browser by the server;Or
Meet the webpage URL of searching request formula.
13. the device according to any one of claim 10 to 11, wherein, the searching modul is additionally configured to:
The document dbject model dom tree of the opening webpage is traveled through;
Obtain web page contents corresponding with the multigroup key word information;
The corresponding DOM node of web page contents keyword of matching is found in the web page contents, and is locked.
14. the device according to any one of claim 10 to 11, wherein, the hyperlink request of the linking element of the search Returned by the server side, or, by the browser lateral root according to the web page contents keyword and for specifying search for drawing Hold up generation.
15. the device according to any one of claim 10 to 11, wherein, in addition to:
Processing module, is configured to be converted into the web page contents keyword of the matching in the modular converter chain of one search Connect after element, the linking element generation DOM node translated into is inserted into former webpage dom tree;Or, modification is described The former DOM node of web page contents keyword is the DOM node for the linking element generation being converted into.
16. the device according to any one of claim 10 to 11, wherein, the modular converter is additionally configured to:
Obtain using the web page contents keyword as keyword and set up the URL associated with specifying search for engine;
In the HTML HTML code of the opening webpage, pass will be set up with specifying search for engine described in acquisition The URL of connection is added to the code position of the web page contents keyword.
17. device according to claim 16, wherein, the modular converter is additionally configured to:
Described in acquisition the code position that the URL associated is added to the web page contents keyword will be set up with specifying search for engine Before or after.
18. the device according to any one of claim 10 to 11, wherein, the modular converter is additionally configured to:
Linking element after conversion is included on the opening webpage with highlighted font;Or
Linking element after conversion is included on the opening webpage with the font size different from webpage other fonts.
CN201410298927.8A 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser Active CN104021231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410298927.8A CN104021231B (en) 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410298927.8A CN104021231B (en) 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser

Publications (2)

Publication Number Publication Date
CN104021231A CN104021231A (en) 2014-09-03
CN104021231B true CN104021231B (en) 2017-07-28

Family

ID=51437985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410298927.8A Active CN104021231B (en) 2014-06-26 2014-06-26 The method and apparatus that webpage is shown in browser

Country Status (1)

Country Link
CN (1) CN104021231B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3026575A1 (en) 2014-11-26 2016-06-01 Unify GmbH & Co. KG Method for referring to specific content on a web page and web browsing system
CN104537088B (en) * 2014-12-31 2018-01-30 百度在线网络技术(北京)有限公司 information display method and device
CN104715067A (en) * 2015-03-31 2015-06-17 北京奇虎科技有限公司 Method, device and system for making key words on web page and browser client
CN105095351B (en) 2015-06-18 2019-03-26 百度在线网络技术(北京)有限公司 It is a kind of for providing the method and apparatus of local search suggestion
CN104951556A (en) * 2015-06-30 2015-09-30 北京奇虎科技有限公司 Method and device for generating prompt message in search result page
CN105930369A (en) * 2016-04-13 2016-09-07 南京新与力文化传播有限公司 Method for rapidly analyzing Web information
CN106095848A (en) * 2016-06-02 2016-11-09 北京奇虎科技有限公司 The method of text association, terminal unit and corresponding server unit
CN107818108A (en) * 2016-09-13 2018-03-20 阿里巴巴集团控股有限公司 A kind of webpage rendering intent, apparatus and system
CN107870721B (en) * 2016-09-27 2022-06-07 北京搜狗科技发展有限公司 Search result display method and device for search result display
CN110110185A (en) * 2018-01-16 2019-08-09 中兴通讯股份有限公司 A kind of method, equipment and storage medium extracting browser searches engine
CN111931040B (en) * 2020-06-30 2024-01-12 深圳市世强元件网络有限公司 Recommendation method for service entry of service entity in network platform
CN112395524A (en) * 2020-11-24 2021-02-23 广州市久邦数码科技有限公司 Method, device and storage medium for displaying word annotation and paraphrase
CN112579941A (en) * 2020-12-17 2021-03-30 京东数字科技控股股份有限公司 Information processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932817A (en) * 2006-09-15 2007-03-21 陈远 Common interconnection network content keyword interactive system
CN102789484A (en) * 2012-06-28 2012-11-21 奇智软件(北京)有限公司 Method and device for webpage information processing
CN103577597A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Keyword searching system based on current browse webpage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1932817A (en) * 2006-09-15 2007-03-21 陈远 Common interconnection network content keyword interactive system
CN102789484A (en) * 2012-06-28 2012-11-21 奇智软件(北京)有限公司 Method and device for webpage information processing
CN103577597A (en) * 2013-11-15 2014-02-12 北京奇虎科技有限公司 Keyword searching system based on current browse webpage

Also Published As

Publication number Publication date
CN104021231A (en) 2014-09-03

Similar Documents

Publication Publication Date Title
CN104021231B (en) The method and apparatus that webpage is shown in browser
CN101471818B (en) Detection method and system for malevolence injection script web page
CN103631794B (en) A kind of method, apparatus and equipment for being ranked up to search result
KR100849420B1 (en) Image-based searching system and method therefor
CN107145496A (en) The method for being matched image with content item based on keyword
CN103488781B (en) Method, the search engine server of information search are provided
CN102479252B (en) Query expression conversion apparatus and query expression conversion method
CN109582909A (en) Webpage automatic generation method and device, electronic equipment and storage medium
CN102760151B (en) Implementation method of open source software acquisition and searching system
CN108021598B (en) Page extraction template matching method and device and server
CN103294732B (en) Webpage capture method and reptile
CN104036003B (en) search result integration method and device
CN108227954A (en) A kind of method, apparatus and electronic equipment that search input associational word is provided
Parvez et al. Analysis of different web data extraction techniques
CN106687949A (en) Search results for native applications
CN108052632A (en) A kind of method for obtaining network information, system and company information search system
CN107766399A (en) For the method and system and machine readable media for image is matched with content item
KR102033416B1 (en) Method for generating data extracted from document and apparatus thereof
CN105868225A (en) Data query method, client, server and system
WO2015003664A1 (en) Method, device, server, and client device for download processing
CN109918594A (en) A kind of information display method and device
CN107463592A (en) For by the method, equipment and data handling system of content item and images match
CN108241740A (en) The generation method and device of a kind of search input associational word of timeliness
CN103366011B (en) Pass through the method and device of browser address bar access registrar network address
CN103617225B (en) A kind of associating web pages searching method and system

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220802

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

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

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230711

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.