CN102999514A - Method, device and equipment for obtaining webpage and link prefix information thereof - Google Patents

Method, device and equipment for obtaining webpage and link prefix information thereof Download PDF

Info

Publication number
CN102999514A
CN102999514A CN201110272142XA CN201110272142A CN102999514A CN 102999514 A CN102999514 A CN 102999514A CN 201110272142X A CN201110272142X A CN 201110272142XA CN 201110272142 A CN201110272142 A CN 201110272142A CN 102999514 A CN102999514 A CN 102999514A
Authority
CN
China
Prior art keywords
information
link
webpage
generating apparatus
web page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201110272142XA
Other languages
Chinese (zh)
Other versions
CN102999514B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201110272142.XA priority Critical patent/CN102999514B/en
Publication of CN102999514A publication Critical patent/CN102999514A/en
Application granted granted Critical
Publication of CN102999514B publication Critical patent/CN102999514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method, a device and equipment for obtaining a webpage and link prefix information thereof. The method comprises the following steps of: acquiring public parameter information of a partial or whole webpage link in a to-be-generated webpage; generating link prefix information corresponding to the to-be-generated webpage according to the public parameter information; and acquiring relative link information, which is corresponding to the link prefix, of the partial or whole webpage link and adding the relative link information into the to-be-generated webpage, wherein the relative link information is used for merging link prefixes so as to generate the absolute link information of the partial or whole webpage link. Compared with the prior art, the method has the advantages that repeated parameter information contained in multiple links of the webpage is transferred to the link prefix information, so that the quantity of link information contained in the webpage is reduced.

Description

A kind of method, device and equipment for obtaining webpage and link prefix information thereof
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of method, device and equipment for obtaining webpage and link prefix information thereof.
Background technology
Exist in the existing network to comprise in a large number many multilinked webpages, as being used for presenting the webpage of Search Results, webpage etc. behind transcoding (transcoder).Yet, or client that control of network flow quantity have relatively high expectations weak for processing power, these comprise numerous linked web pages and tend to strengthen the client process burden, and consume larger flow in network transmission process.Therefore, how to reduce the quantity of information that the link in these webpages comprises, become the problem that those skilled in the art need to solve.
Summary of the invention
The purpose of this invention is to provide a kind of method, device and equipment for obtaining webpage and link prefix information thereof.
According to an aspect of the present invention, provide a kind of method for obtaining webpage and link prefix information thereof, wherein, the method may further comprise the steps:
A obtains the common parameter information of part or all of web page interlinkage in the webpage to be generated;
B generates the link prefix information of corresponding described webpage to be generated according to described common parameter information;
Wherein, the method also comprises:
What i obtained described part or all of web page interlinkage links relative link information corresponding to prefix with this, and it is added in the described webpage to be generated, wherein, described relative link information is used for and described link prefix merges to generate the absolute link information of described part or all of web page interlinkage.
According to another aspect of the present invention, also provide a kind of linked web pages generating apparatus for generating web page and link prefix information thereof, wherein, this linked web pages generating apparatus comprises:
Parameter obtaining device is used for obtaining the partly or entirely common parameter information of web page interlinkage of webpage to be generated;
The prefix generating apparatus is used for according to described common parameter information, generates the link prefix information of corresponding described webpage to be generated;
Relatively link generating apparatus, what be used for obtaining described part or all of web page interlinkage links relative link information corresponding to prefix with this, and it is added in the described webpage to be generated, wherein, described relative link information is used for and described link prefix merges to generate the absolute link information of described part or all of web page interlinkage.
According to a further aspect of the invention, also provide a kind of computer equipment, wherein, this computer equipment comprises aforementioned linked web pages generating apparatus.
Compared with prior art, the present invention has the following advantages: 1) method of the present invention, parameter information by the repetition in a plurality of links that will be contained in webpage moves in the link prefix information, reduced webpage, particularly such as the webpage that search terms, ample resources link etc. are provided, the link information amount that comprises.And because a webpage only needs a corresponding link prefix information, therefore, the method according to this invention can be saved the information flow-rate that consumes because transmitting identical parameter information; 2) the present invention can obtain relevant information by getting parms respectively and personality is obtained relevant information, generate link prefix information and relative link information relatively independently, further, can automatic decision and determine the web page interlinkage that represents with relative link information form in the webpage to be generated, and treat in the generating web page web page interlinkage that can not represent with relative link information form, its absolute link information is added in the webpage to be generated.
Description of drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 is the method flow diagram that is used for generating web page and link prefix information thereof of one aspect of the invention;
Fig. 2 is the method flow diagram that is used for generating web page and link prefix information thereof of a preferred embodiment of the invention;
Fig. 3 is the method flow diagram that is used for generating web page and link prefix information thereof of another preferred embodiment of the present invention;
Fig. 4 for a preferred embodiment of the invention to the user provide webpage and the link prefix information method flow diagram;
Fig. 5 is the structural representation of the linked web pages generating apparatus that is used for generating web page and link prefix information thereof of one aspect of the invention;
Fig. 6 is the structural representation of the linked web pages generating apparatus that is used for generating web page and link prefix information thereof of a preferred embodiment of the invention;
Fig. 7 is the structural representation of the linked web pages generating apparatus that is used for generating web page and link prefix information thereof of another preferred embodiment of the present invention;
Fig. 8 provides the structural representation of linked web pages generating apparatus of webpage and link prefix information thereof for a preferred embodiment of the invention to the user.
Same or analogous Reference numeral represents same or analogous parts in the accompanying drawing.
Embodiment
Before embodiments of the invention are described in detail, at this structure of web page interlinkage is described first.
Need to comprise following two structures in the web page interlinkage: 1) agreement, such as: http, MMS etc.; 2) domain name (or claiming host name), for example, www.sina.com etc.Preferably, also comprise following at least one structure in the web page interlinkage: 1) path (path); 2) parameter; 3) filename.
For example, for the link " http://www.baidu.com/baidu? word=%C 1%B4%BD%D3%B2%CE%CA%FD﹠amp; Tn=myie2﹠amp; Ch=3 "; Wherein, " http " presentation protocol, " www.baidu.com " represents domain name, " baidu " expression path or filename, " word=%C1%B4%BD%D3%B2%CE%CA%FD﹠amp; Tn=myie2﹠amp; Ch=3 " the expression parameter.
Again for example, for link " http://zhidao.baidu.com/question/103209310.html "; Wherein, " http " presentation protocol, " zhidao.baidu.com " represents domain name, and " question " represents the path, and " 103209310.html " represents filename.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention; those skilled in the art should understand that; other structures that web page interlinkage comprises also should be included in the protection domain of the present invention, and are contained in this with way of reference.
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 is the method flow diagram that is used for generating web page and link prefix information thereof of one aspect of the invention.The method according to this invention comprises step S 1, step S2 and step S3.Wherein, the method according to this invention can realize by the linked web pages generating apparatus in the computer equipment, for example, realizes by such as application module, operating system, processing controller etc. in the computer equipment.Wherein, described computer equipment be a kind of can be according to the program of prior storage, automatically, at high speed carry out the modernized intelligent electronic device of massive values computation and various information processings, its hardware includes but not limited to microprocessor, FPGA, DSP, embedded device etc.Wherein, described computer equipment includes but not limited to the network equipment, this network equipment includes but not limited to server group that single network server, a plurality of webserver form or based on the cloud that is made of a large amount of computing machines or the webserver of cloud computing (Cloud Computing), wherein, cloud computing is a kind of of Distributed Calculation, a super virtual machine that is comprised of the loosely-coupled computing machine collection of a group.Wherein, the residing network of the described network equipment includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN (Local Area Network), VPN network etc.
Need to prove that only for giving an example, other computer equipments existing or that may occur from now on or network also should be included in the protection domain of the present invention as applicable to the present invention, and are contained in this with way of reference for the described network equipment and network etc.
In step S1, the linked web pages generating apparatus obtains the common parameter information of part or all of web page interlinkage in the webpage to be generated.
Wherein, the linked web pages generating apparatus directly with all web page interlinkages in the webpage to be generated as need web page interlinkage to be processed; Perhaps, the linked web pages generating apparatus with the web page interlinkage of artificial appointment in the webpage to be generated as need web page interlinkage to be processed; Perhaps, the linked web pages generating apparatus selects part or all of web page interlinkage in the webpage to be generated as need web page interlinkage to be processed, this linked web pages generating apparatus need to select the mode of web page interlinkage to be processed to be described in detail in reference to Fig. 2 or embodiment shown in Figure 3 follow-up, does not repeat them here.
Wherein, when described part or all of web page interlinkage represented with the actual link information that can be used in direct its corresponding webpage of access, this common parameter packets of information was contained in each actual link information of described part or all of web page interlinkage.For example, for actual link information " httpp: //www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=3 " and actual link information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=4 ", its common parameter information comprises " word=%C1 " and " tn=myie2 ".Need to prove that common parameter information can comprise all identical parameter informations in the described part or all of web page interlinkage, also can only comprise the identical parameter information of part in the described part or all of web page interlinkage; For example, as above two actual link information shown in the example, its common parameter information also can only comprise " word=%C1 ".
Particularly, the linked web pages generating apparatus obtains the pre-common parameter information corresponding with this webpage to be generated of determining, such as other devices or the artificial pre-common parameter information of determining etc.; Perhaps, the linked web pages generating apparatus obtains this common parameter information by other means, and wherein, these other modes will be described in detail in reference to Fig. 2 or embodiment shown in Figure 3 follow-up, not repeat them here.
Then, in step S2, the linked web pages generating apparatus generates the link prefix information of corresponding described webpage to be generated according to described common parameter information.
Particularly, the mode of linked web pages generating apparatus generation link prefix information includes but not limited to:
1) directly common parameter information is added in the link prefix information.
For example, the linked web pages generating apparatus is according to the predetermined protocol " http " of webpage to be generated, the common parameter information " word=%C1 " and " tn=myie2 " that obtain among predetermined domain name " www.baidu.com " and the step S1, with the path position place in the common parameter information adding link structure, directly generation comprises predetermined protocol " http ", the link prefix information " http://www.baidu.com/word=%C1/tn=myie2/ " of the common parameter information " word=%C1 " that obtains among predetermined domain name " www.baidu.com " and the step S1 and " tn=myie2 ".
2) the linked web pages generating apparatus generates the link prefix information by carrying out following step S21 and step S22.
In step S21, the linked web pages generating apparatus carries out the first predetermined process to described common parameter information, obtain link path information, wherein, this first predetermined process is so that linked web pages generating apparatus or other devices can be by the described common parameter information of identification in the described link path information.
Particularly, after the linked web pages generating apparatus carries out the first predetermined process to common parameter information, with the path position place in its adding link structure, to obtain link path information.
For example, the first predetermined process comprises: add predetermined identifier " _ " before each common parameter information, the linked web pages generating apparatus obtains common parameter information " word=%C 1 " and " tn=myie2 " in step S1, then the linked web pages generating apparatus adds predetermined identifier " _ " before each common parameter information, and the common parameter Information generation that will add predetermined identifier is the link path information that satisfies the path structure form "/_ word=%C1/_tn=myie2/ ".
Again for example, the first predetermined process comprises: add predetermined identifying information " tc_path " before all common parameter information, the linked web pages generating apparatus obtains common parameter information " word=%C1 " and " tn=myie2 " in step S1, the pre-predefined paths " baidu " that obtains before step S2, then the linked web pages generating apparatus adds predetermined identifying information and common parameter information behind predefined paths " baidu ", obtains to satisfy the link path information " baidu/tc_path/word=%C1/tn=myie2/ " of path structure form.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any described common parameter information is carried out the implementation that the first predetermined process obtains link path information, for example, by being carried out transcoding, common parameter information obtains link path information etc., and all should be within the scope of the present invention.
Then, in step S22, the linked web pages generating apparatus generates the described link prefix information that comprises described link path information.
Particularly, the linked web pages generating apparatus generates the link prefix information that comprises agreement, domain name and the link path information obtained in advance.
For example, predetermined protocol is " http ", predetermined domain name is " www.baidu.com ", the link path information that the linked web pages generating apparatus obtains in step S1 is " baidu/tc_path/word=%C1/tn=myie2 ", and then the linked web pages generating apparatus generates the link prefix information " http://www.baidu.com/baidu/tc_path/word=%C1/tn=myie2/ " that comprises " http ", " www.baidu.com " and " baidu/tc_path/word=%C1/tn=myie2 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, any generation comprises the implementation of the described link prefix information of described link path information, all should be within the scope of the present invention.
What need to further specify is, aforementioned embodiments 1) and 2) only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described common parameter information, generate the implementation of the link prefix information of corresponding described webpage to be generated, all should be within the scope of the present invention.
In step S3, what the linked web pages generating apparatus obtained described part or all of web page interlinkage links relative link information corresponding to prefix with this, and it is added in the described webpage to be generated, wherein, the link prefix that described relative link information is used for and step S2 generates merges to generate the absolute link information of described part or all of web page interlinkage.Then when needing this part or all of web page interlinkage of access information pointed, can obtain based on this absolute link information the actual link information of this part or all of web page interlinkage, thereby access this part or all of web page interlinkage information pointed.
Particularly, the linked web pages generating apparatus obtains the relative link information of part or all of web page interlinkage in pre-this webpage to be generated of determining, such as other devices or the artificial pre-common parameter information of determining etc.; Perhaps, the linked web pages generating apparatus obtains the relative link information of part or all of web page interlinkage by other means, and wherein, these other modes will be described in detail in reference to Fig. 2 or embodiment shown in Figure 3 follow-up, not repeat them here.
Need to prove, computer equipment can be by carrying out abovementioned steps S1 to S3 under the line, obtain to comprise webpage and the link prefix information thereof of relative path information, and when obtaining web access requests, pretreated webpage that will be corresponding with this web access requests and link prefix information and offer the requestor; Perhaps, when obtaining web access requests, computer equipment generates in real time the webpage corresponding with this web access requests and links prefix information, and offer the requestor by carrying out abovementioned steps S1 to S3.
Method of the present invention, the parameter information by the repetition in a plurality of links that will be contained in webpage move in the link prefix information, have reduced webpage, particularly such as the webpage that search terms, ample resources link etc. are provided, the link information amount that comprises.And because a webpage only needs a corresponding link prefix information, therefore, the method according to this invention can be saved the information flow-rate that consumes because transmitting identical parameter information.
Fig. 2 is the method flow diagram that is used for generating web page and link prefix information thereof of a preferred embodiment of the invention.The method according to this invention comprises step S1, step S2 and step S3.Wherein, step S 1 further comprises step S111 and step S112, and step S3 further comprises step S311, step S312, step S313 and step S314.
In step S111, the linked web pages generating apparatus obtains the parameter acquiring relevant information for the treatment of described part or all of web page interlinkage.
Wherein, the parameter acquiring relevant information comprises the information relevant with the parameter acquiring of described part or all of web page interlinkage.For example, when this part or all of web page interlinkage when the original link information in other webpages is changed to obtain, the parameter acquiring relevant information comprises the link address information of each original link information.Preferably, this parameter acquiring relevant information comprises relevant with the parameter acquiring of described part or all of web page interlinkage and for the equal identical information of this part or all of web page interlinkage.For example, the parameter acquiring relevant information comprises: the 1) relevant information of webpage under this part or all of web page interlinkage, such as webpage format information etc.; 2) ask the user of webpage under this part or all of web page interlinkage or the relevant information of equipment, the format information that can support such as subscriber identity information, subscriber equipment etc.
Particularly, the linked web pages generating apparatus obtains the parameter acquiring relevant information corresponding with this part or all of web page interlinkage of pre-stored; Perhaps, the linked web pages generating apparatus obtains the parameter acquiring relevant information that other devices provide; Perhaps, the relevant information of linked web pages generating apparatus by obtaining webpage under this all or part of web page interlinkage and/or the equipment by the request of access webpage obtain the parameter acquiring relevant information.
Then, in step S112, the linked web pages generating apparatus obtains described common parameter information according to described parameter acquiring relevant information.
Particularly, the linked web pages generating apparatus mode of obtaining common parameter information includes but not limited to:
1) the linked web pages generating apparatus directly obtains the common parameter information corresponding with the one or more information in the parameter acquiring relevant information.
For example, the parameter acquiring relevant information that the linked web pages generating apparatus obtains in step S111 comprises " webpage format: WML ", and then the linked web pages generating apparatus obtains respectively the common parameter information " type=1 " corresponding with the webpage format of WML.
2) the linked web pages generating apparatus is according to the parameter acquiring relevant information, determines that one or more predetermined common parameter names answer corresponding parameter value, to obtain to comprise the common parameter information of predetermined common parameter name and corresponding parameter value thereof.
For example, predetermined common parameter name comprises that the parameter acquiring relevant information that the linked web pages generating apparatus obtains comprises " webpage format: WML for " type " of presentation web page form and " userid " that is used for the identifying user identity information in step S 111; User ID: 12345 "; Then the linked web pages generating apparatus is by inquiry predetermined webpage format and parameter value mapping table, determine that parameter value corresponding to predetermined common parameter name " type " is 1, and the user ID that comprises in the parameter acquiring relevant information is direct as parameter value corresponding to predetermined common parameter name " userid "; Then the linked web pages generating apparatus obtains common parameter information " type=1 " and " userid=12345 ".
3) the linked web pages generating apparatus is according to the parameter acquiring relevant information, determine that one or more predetermined common parameter names answer corresponding parameter value, and by with the corresponding information of predetermined personalized parameter name in extract identical information, to obtain to comprise the common parameter information of predetermined common parameter name and corresponding parameter value thereof, predetermined personalized parameter name and corresponding partial parameters value thereof.
For example, predetermined common parameter name comprises " type " for the presentation web page form, the predetermined personalized parameter information comprises " src " for the link address information of sign original web page link, the parameter acquiring relevant information that the linked web pages generating apparatus obtains in step S111 comprise " webpage format: WML; The link address information of original web page link A: blog.sina.com.cn/blog_671bc; The link address information of original web page link B: blog.sina.com.cn/blog_245bc "; then the linked web pages generating apparatus is by inquiry predetermined webpage format and parameter value mapping table; determine that parameter value corresponding to predetermined common parameter name " type " is 1, and extract identical address information " blog.sina.com.cn " in the link address information by original web page link A and B; Then the linked web pages generating apparatus obtains common parameter information " type=1 " and " src=blog.sina.com.cn ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described parameter acquiring relevant information, obtain the implementation of described common parameter information, all should be within the scope of the present invention.
Then, step S2 is described in detail with reference to the embodiment shown in FIG. 1, and is contained in this by reference, repeats no more.
In step S3, the linked web pages generating apparatus is to each web page interlinkage execution in step S311, step S312, step S313 and step S314 in all or part of web page interlinkage described in the step S1.
In step S311, the linked web pages generating apparatus obtains the personality of current handled web page interlinkage and obtains relevant information.
Wherein, personality obtain relevant information comprise with when the relevant customized information of the parameter acquiring of the web page interlinkage of pre-treatment.For example, when the original web page link that comprises by other webpages for the treatment of beyond the generating web page when this web page interlinkage was changed to obtain, personality was obtained the link address information that relevant information comprises this original web page link; Again for example, the time parameter of this web page interlinkage resource information pointed; Again for example, the page number parameter during page turning links etc.
Particularly, the linked web pages generating apparatus personality corresponding with this web page interlinkage of obtaining pre-stored obtained relevant information; Perhaps, the linked web pages generating apparatus personality that obtains other devices and provide is obtained relevant information; Perhaps, the linked web pages generating apparatus obtains personality and obtains relevant information by such as modes such as webpages under this web page interlinkage of access resource information pointed, the link of access original web page.Preferably, the linked web pages generating apparatus is also in conjunction with common parameter information, determines that personality obtains relevant information.For example, in step S112, extracted identical part link address information as common parameter information in the link address information of linked web pages generating apparatus by the link of a plurality of original web page, then the linked web pages generating apparatus obtains in the link address information part except common parameter information and obtains relevant information as personality.
Then, in step S312, the linked web pages generating apparatus obtains relevant information according to described personality, generates the personalizing parameters information of this web page interlinkage.
Particularly, the mode of linked web pages generating apparatus generation personalizing parameters information includes but not limited to:
1) the linked web pages generating apparatus directly obtains with personality and obtains personalizing parameters information corresponding to one or more information in the relevant information.
2) the linked web pages generating apparatus obtains relevant information according to personality, determines that one or more predetermined personalized parameter names answer corresponding parameter value, to obtain to comprise the personalizing parameters information of predetermined personalized parameter name and corresponding parameter value thereof.
For example, the predetermined personalized parameter name comprises " src " for the link address information of sign original web page link, the linked web pages generating apparatus obtains the link address information " blog.sina.com.cn " of original web page link in step S311, then the linked web pages generating apparatus directly with the parameter value of this link address information as predetermined personalized parameter name " src " correspondence, obtains personalizing parameters information " src=blog.sina.com.cn ".
Again for example, the predetermined personalized parameter name comprises " src " for the link address information of sign original web page link, the linked web pages generating apparatus obtains the link address information " blog_671bc " of original web page link except common parameter information in step S311, then the linked web pages generating apparatus is scheduled to the compression processing to " blog_671bc ", obtain character information " B_#T ", and the character information that will compress gained obtains personalizing parameters information " src=B_#T " as parameter value corresponding to predetermined personalized parameter name " src ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly obtain relevant information according to described personality, generate the implementation of the personalizing parameters information of this web page interlinkage, all should be within the scope of the present invention.
Then, in step S313, the linked web pages generating apparatus generates should web page interlinkage and comprise the relative link information of described personalizing parameters information.
For example, the linked web pages generating apparatus directly based on personalizing parameters information " src=blog.sina.com.cn " next life that obtains among the step S312 in pairs should web page interlinkage relative link information " ./? src=blog.sina.com.cn ".
Again for example, the linked web pages generating apparatus is based on the filename " 51247.txt " of the personalizing parameters information " src=blog.sina.com.cn " that obtains among the step S312 and this web page interlinkage resource information pointed of obtaining in advance, generate to relative link information that should web page interlinkage " ./? src=blog.sina.com.cn/51247.txt ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any generation all should be within the scope of the present invention to should web page interlinkage and comprise the implementation of the relative link information of described personalizing parameters information.
Then, in step S314, the linked web pages generating apparatus should add in the described webpage to be generated by relative link information.
By to each web page interlinkage execution in step S311, step S312, step S313 and step S314 in all or part of web page interlinkage described in the step S1, the linked web pages generating apparatus can obtain to comprise the webpage of the relative link information of this all or part of web page interlinkage.Wherein, those skilled in the art should be able to determine according to actual conditions and demand the generation of other information in this webpage, do not repeat them here.
As one of preferred version of present embodiment, following steps S4 is carried out in each web page interlinkage that the linked web pages generating apparatus is treated in the generating web page.
In step S4, the linked web pages generating apparatus judges whether the web page interlinkage when pre-treatment comprises whole common parameter information.
Particularly, the linked web pages generating apparatus is judged when this web page interlinkage represents with actual link information, whether is needed to comprise whole common parameter information.
For example, the common parameter information that obtains in step S1 comprises " type=1 " and " userid=12345 ", and the definite link information when pre-treatment of linked web pages generating apparatus does not need to comprise the parameter for the identifying user identity information, namely the link information when pre-treatment does not need to comprise common parameter information " userid=12345 ", and then the linked web pages generating apparatus judges that the web page interlinkage when pre-treatment does not comprise whole common parameter information.
Again for example, the common parameter information that obtains in step S1 comprises " type=1 " and " userid=12345 ", the linked web pages generating apparatus is determined need to comprise for the parameter of identifying user identity information and the parameter that is used for the presentation web page form when the link information of pre-treatment, and then the linked web pages generating apparatus judges that the web page interlinkage when pre-treatment comprises whole common parameter information.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, whether any judgement comprises the implementation of whole common parameter information when the web page interlinkage of pre-treatment, all should be within the scope of the present invention.
When judging that this web page interlinkage comprises whole common parameter information, the linked web pages generating apparatus is carried out abovementioned steps S3, to obtain the relative link information of this web page interlinkage information.
When judging that this web page interlinkage does not comprise whole common parameter information, linked web pages generating apparatus undo; Perhaps, the linked web pages generating apparatus obtains the absolute link information of this web page interlinkage, and it is added in the webpage to be generated.Wherein, those skilled in the art should be able to determine that this obtains the mode of absolute link information, does not repeat them here according to actual conditions and demand.
In the present embodiment, can obtain relevant information by getting parms respectively and personality is obtained relevant information, generate link prefix information and relative link information relatively independently.Further, in the present embodiment, can automatic decision and determine the web page interlinkage that represents with relative link information form in the webpage to be generated, and treat in the generating web page web page interlinkage that can not represent with relative link information form, its absolute link information is added in the webpage to be generated.
Fig. 3 is the method flow diagram that is used for generating web page and link prefix information thereof of another preferred embodiment of the present invention.The method according to this invention comprises step S 1, step S2 and step S3.Wherein, step S 1 further comprises step S 121 and step S 122, and step S3 further comprises step S321 and step S322.
In step S121, the linked web pages generating apparatus obtains the actual link information of all web page interlinkages in the described webpage to be generated.
Wherein, the actual link information of web page interlinkage is carried out any processing for need not to it, namely can directly visit the link information of this web page interlinkage webpage pointed based on it.
For example, when the actual link information of the web page interlinkage in the webpage to be generated had been determined, the linked web pages generating apparatus directly obtained fixed actual link information; Again for example, the actual link information of the web page interlinkage in webpage to be generated is not yet definite, and the actual link information exchange of the web page interlinkage in the predetermined webpage to be generated is crossed the original link information in other webpages is carried out intended conversion when processing to obtain, the linked web pages generating apparatus carries out intended conversion to the original link information in other webpages to be processed, to obtain the actual link information of all web page interlinkages in the described webpage to be generated.
Then, in step S122, the linked web pages generating apparatus is by extracting the parameter information that is contained in a plurality of actual link information in all actual absolute link information, as described common parameter information.
Particularly, the linked web pages generating apparatus mates all actual absolute link information, to obtain the identical parameter information of all or part that a plurality of actual absolute link information comprise as common parameter information.
For example, the linked web pages generating apparatus in step S121, obtain actual link information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=3﹠amp; Td=5 " and " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=4﹠amp; Td=5 "; Then the linked web pages generating apparatus obtains to be contained in the common parameter information " word=%C1﹠amp in above-mentioned two actual link information by the information of argument section in the actual link information is carried out prefix matching; Tn=myie2 ".
Again for example, the linked web pages generating apparatus obtains actual link information as above shown in the example in step S121, and the linked web pages generating apparatus extracts all identical parameter informations in the actual link information, obtains common parameter information " word=%C1﹠amp; Tn=myie2 " and " td=5 ".
Again for example, the linked web pages generating apparatus in step S121, obtain actual link information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=3﹠amp; Td=5 " " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=4﹠amp; Td=5 " and " http://www.baidu.com/baidu? word=%PD 1﹠amp; Tn=myie5 "; Then the linked web pages generating apparatus carries out prefix matching to the information of argument section in the actual link information, obtains the common parameter information " word=%C1﹠amp that is contained in the first two actual link information; Tn=myie2 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any by extracting the parameter information that is contained in a plurality of actual link information in all actual absolute link information, implementation as described common parameter information, for example, judge whether in the individual above actual link information of N (N is predetermined threshold) it as common parameter information etc. by judging whether a parameter information is contained in, all should be within the scope of the present invention.
Then, step S2 is described in detail with reference to the embodiment shown in FIG. 1, and is contained in this by reference, repeats no more.
In step S321, for each the actual link information in the determined described a plurality of actual link information that comprise common parameter information among the step S 122, the linked web pages generating apparatus generates relative link information based on the information that is not contained in the described link prefix information in this actual link information.
For example, the 3rd embodiment described in step S122, the linked web pages generating apparatus in step S2, obtain the link prefix information " http://www.baidu.com/baidu/word=%C1/tn=myie2 ", then for the actual link information that comprises common parameter information " http://www.baidu.com/baidu? word=%C 1﹠amp; Tn=myie2﹠amp; Ch=3﹠amp; Td=5 ", the linked web pages generating apparatus directly will not be contained in the information “ ﹠amp that connects in the prefix information; Ch=3﹠amp; Td=5 " be generated as relative link information " ./? ch=3﹠amp; Td=5 "; Similarly, the linked web pages generating apparatus obtain actual link information " http://www.baidu.com/baidu? word=%C 1﹠amp; Tn=myie2﹠amp; Ch=4﹠amp; Td=5 " relative link information " ./? ch=4﹠amp; Td=5 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly generate the implementation of relative link information based on the information in the described link prefix information of not being contained in this actual link information, all should be within the scope of the present invention.
Then, in step S322, the linked web pages generating apparatus should add in the described webpage to be generated by relative link information.
By to comprising each web page interlinkage execution in step S321, step S322 of common parameter information, the linked web pages generating apparatus can obtain to comprise the webpage of relative link information.Wherein, those skilled in the art will be understood that for the actual link information that does not comprise whole common parameter information, can directly it be added in the webpage to be generated, those skilled in the art should be able to determine according to actual conditions and demand the generation of other information in this webpage, do not repeat them here.
Fig. 4 for a preferred embodiment of the invention to the user provide webpage and the link prefix information method flow diagram.Method according to present embodiment comprises step S7, S8 and S9.
In step S6, the linked web pages generating apparatus obtains the web access requests information from subscriber equipment.
Then, in step S7, the linked web pages generating apparatus obtains the link prefix information corresponding with the corresponding webpage of this web access requests information and this webpage, and wherein, this webpage comprises relative link information.
Particularly, the linked web pages generating apparatus obtain webpage and the link prefix information mode include but not limited to:
1) the linked web pages generating apparatus is by the identification information of the webpage that extracts institute's request access in the web access requests information, and obtains pregenerated and the corresponding webpage of this flag information and prefix information thereof.Wherein, this identification information includes but not limited to: a) predetermined webpage ID number; B) link information of webpage, as comprising the absolute link information of parameter information in the part of path, perhaps, the path part does not comprise the actual link information of any parameter information etc.
2) the linked web pages generating apparatus is by the identification information of the webpage that extracts institute's request access in the web access requests information, and generates and the corresponding webpage of this identification information and prefix information thereof.Preferably, the linked web pages generating apparatus with the webpage of institute's request access as webpage to be generated, carry out with reference to earlier figures 1, Fig. 2 or embodiment illustrated in fig. 3 described in step S1, S2 and S3, to generate and the corresponding webpage of this identification information and prefix information thereof.
Wherein, the linked web pages generating apparatus is determined to include but not limited to the mode of the corresponding webpage of identification information and prefix information thereof:
1) when identification information is predetermined webpage ID, the linked web pages generating apparatus is determined and the corresponding webpage of identification information and prefix information thereof according to the predetermined corresponding relation of predetermined webpage ID and webpage.
2) when identification information is the link information of webpage, the linked web pages generating apparatus before step S7 by link information being processed determine actual link information, then the linked web pages generating apparatus in step S7 webpage that this actual link information is pointed and prefix information thereof as with the corresponding webpage of identification information and prefix information thereof.This mode will be described in detail in subsequent embodiment, not repeat them here.
Then, in step S8, the linked web pages generating apparatus sends described webpage and corresponding relative link information thereof to described subscriber equipment.
As one of preferred version of present embodiment, web access requests information comprises the absolute link information of institute's request access webpage, and the linked web pages generating apparatus was also carried out following step S9 and S10 before step S7, and step S7 further comprises step S7 '.
In step S9, the linked web pages generating apparatus is by identification common parameter information in this absolute link information.
Particularly, the mode of linked web pages generating apparatus identification common parameter information includes but not limited to:
1) the linked web pages generating apparatus is by judging whether each path unit of path part meets the preset parameter form in the absolute link information, identification common parameter information in the cause absolute link information, wherein, path unit i.e. information between two path separators, for example, information between two "/" etc.; Perhaps, if the path part in the predetermined absolute link information only comprises common parameter information, then the linked web pages generating apparatus directly with each path unit of comprising in the absolute link information as common parameter information.
For example, the preset parameter form is " parameter name=parameter value ", the linked web pages generating apparatus by the absolute link information that obtains in the web access requests information for " http://www.baidu.com/baidu/word=%C1/tn=myie2/? ssid=0﹠amp; From=0 "; Then the linked web pages generating apparatus is by extracting a path unit " baidu " in this absolute link information, and according to not comprising character "=" in this path unit, determines that this path unit does not meet the preset parameter form, judges that it is not common parameter information; Then, the linked web pages generating apparatus extracts next path unit " word=%C1 ", and comprises character "=" according to this path unit, and this character is front and the rear character information that all comprises, then the linked web pages generating apparatus determines that it meets the preset parameter form, judges that it is common parameter information; Similarly, the linked web pages generating apparatus judges that " tn=myie2 " is common parameter information.Then the linked web pages generating apparatus obtains common parameter information " word=%C 1 " and " tn=myie2 " by identification in the absolute link information.
Preferably, when path unit meets the preset parameter form, the linked web pages generating apparatus judges further whether the character information of parameter name position belongs to the preset parameter name, and when character information belongs to the preset parameter name, judges that just this path unit is common parameter information.
For example, when the linked web pages generating apparatus judges that path unit " word=%C1 " is common parameter information, further judge whether the character information " word " of parameter name position belongs to the preset parameter name, and when " word " belongs to the preset parameter name, judge that " word=%C1 " is common parameter information.
2) the linked web pages generating apparatus is identified common parameter information based on predetermined identifier in the cause absolute link information.
For example, predetermined identifier is " _ ", all comprises this predetermined identifier before predetermined each common parameter information, then when the linked web pages generating apparatus judges that the path unit initial character is " _ ", this path unit is identified as common parameter information.
Again for example, predetermined identifying information is " tc_path ", all information that are positioned in the predefined paths part behind the predetermined identifying information are common parameter information, then in the part of the path of absolute link information, identify when obtaining predetermined identifying information " tc_path " when the linked web pages generating apparatus, will be in the part of path all path unit after should predetermined identifying information be identified as common parameter information.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any implementation by identification common parameter information in the absolute link information, for example, the information of the path portion that satisfies the need is first carried out transcoding, again by identification common parameter information in the information behind the transcoding etc., all should be within the scope of the present invention.
Then, in step S10, the linked web pages generating apparatus obtains can be used in the actual link information of obtaining corresponding webpage according to the common parameter information of identifying and this absolute link information.
For example, the absolute link information of linked web pages generating apparatus gained be " http://www.baidu.com/baidu/word=%C1/tn=myie2/? ssid=0﹠amp; From=0 "; the common parameter information of identification gained is " word=%C1 " and " tn=myie2 " in step S9; then the linked web pages generating apparatus moves to the parameter position with each common parameter information by path position, and adds predetermined symbol “ ﹠amp before each common parameter information; ", to obtain to satisfy actual link information " the http://www.baidu.com/baidu of link structure call format? word=%C 1﹠amp; Tn=myie2﹠amp; Ssid=0﹠amp; From=0 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any common parameter information and this absolute link information according to identifying, acquisition can be used in the implementation of the actual link information of obtaining corresponding webpage, all should be within the scope of the present invention.
Then, in step S7 ', the linked web pages generating apparatus obtains the link prefix information corresponding with the corresponding webpage of actual link information and this webpage.Wherein, those skilled in the art should be able to determine to obtain the mode that link prefix information corresponding with the corresponding webpage of actual link information and this webpage according to actual conditions and demand, do not repeat them here.
Need to prove, when the linked web pages generating apparatus is failed when identifying common parameter information in this absolute link information, the linked web pages generating apparatus as actual link information, and obtains this absolute link information with the corresponding webpage of this actual link information and links prefix information.
Preferably, the step S 11 that present embodiment also is included in after the step S10, carry out before the step S8, abovementioned steps S8 further comprises step S8 '.
In step S 11, the linked web pages generating apparatus judges whether described link prefix information is contained in the described absolute link information.
In step S8 ', when described link prefix information was not contained in the described absolute link information, the linked web pages generating apparatus sent described webpage and corresponding link prefix information thereof to described subscriber equipment.Then after subscriber equipment receives described webpage and link prefix information, webpage can be presented to the user, and the link prefix information of the current acquiescence of browser changed to the link prefix information that the linked web pages generating apparatus sends, with when the relative link information in user's webpage clicking, browser can merge generation absolute link information with the relative link information that the user clicks with the link prefix information of changing, and sends this absolute link information.
For example, the linked web pages generating apparatus will link prefix information and add in the webpage, and adopt the base label to identify this link prefix information, and will comprise the webpage that links prefix information and send to subscriber equipment.Then when the subscriber equipment analyzing web page, can change according to the base label connection prefix information of acquiescence.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, it is any when described link prefix information is not contained in the described absolute link information, the linked web pages generating apparatus sends the implementation of described webpage and corresponding link prefix information thereof to described subscriber equipment, all should be within the scope of the present invention.
More preferably, present embodiment comprises that also the linked web pages generating apparatus sends the step of described webpage to described subscriber equipment when the link prefix information comprises in the absolute link information that is contained in the web access requests information.
Fig. 5 is the structural representation of the linked web pages generating apparatus that is used for generating web page and link prefix information thereof of one aspect of the invention.Linked web pages generating apparatus according to the present invention comprises parameter obtaining device 1, prefix generating apparatus 2 and relatively links generating apparatus 3.
Parameter obtaining device 1 is obtained the common parameter information of part or all of web page interlinkage in the webpage to be generated.
Wherein, parameter obtaining device 1 directly with all web page interlinkages in the webpage to be generated as need web page interlinkage to be processed; Perhaps, parameter obtaining device 1 with the web page interlinkage of artificial appointment in the webpage to be generated as need web page interlinkage to be processed; Perhaps, part or all of web page interlinkage in the parameter obtaining device 1 selection webpage to be generated is as need web page interlinkage to be processed, this parameter obtaining device 1 need to select the mode of web page interlinkage to be processed to be described in detail in reference to Fig. 6 or embodiment shown in Figure 7 follow-up, does not repeat them here.
Wherein, when described part or all of web page interlinkage represented with the actual link information that can be used in direct its corresponding webpage of access, this common parameter packets of information was contained in each actual link information of described part or all of web page interlinkage.For example, for actual link information " http://www.baidu.com/baidu? word=%C 1﹠amp; Tn=myie2﹠amp; Ch=3 " and actual link information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=4 ", its common parameter information comprises " word=%C1 " and " tn=myie2 ".Need to prove that common parameter information can comprise all identical parameter informations in the described part or all of web page interlinkage, also can only comprise the identical parameter information of part in the described part or all of web page interlinkage; For example, as above two actual link information shown in the example, its common parameter information also can only comprise " word=%C1 ".
Particularly, parameter obtaining device 1 is obtained the pre-common parameter information corresponding with this webpage to be generated of determining, such as other devices or the artificial pre-common parameter information of determining etc.; Perhaps, parameter obtaining device 1 obtains this common parameter information by other means, and wherein, these other modes will be described in detail in reference to Fig. 6 or embodiment shown in Figure 7 follow-up, not repeat them here.
Then, prefix generating apparatus 2 generates the link prefix information of corresponding described webpage to be generated according to described common parameter information.
Particularly, the mode of prefix generating apparatus 2 generation link prefix informations includes but not limited to:
1) directly common parameter information is added in the link prefix information.
For example, prefix generating apparatus 2 is according to the predetermined protocol " http " of webpage to be generated, common parameter information " word=%C1 " and " tn=myie2 " that predetermined domain name " www.baidu.com " and parameter obtaining device 1 obtain, with the path position place in the common parameter information adding link structure, directly generation comprises predetermined protocol " http ", the common parameter information " word=%C1 " that predetermined domain name " www.baidu.com " and parameter obtaining device 1 obtain and the link prefix information " http://www.baidu.com/word=%C 1/tn=myie2/ " of " tn=myie2 ".
2) the linked web pages generating apparatus generates the link prefix information by its parameter processing apparatus (not shown) that comprises and sub-prefix generating apparatus (not shown).
Parameter processing apparatus carries out the first predetermined process to described common parameter information, obtains link path information, and wherein, this first predetermined process is so that linked web pages generating apparatus or other devices can be by the described common parameter information of identification in the described link path information.
Particularly, after parameter processing apparatus carries out the first predetermined process to common parameter information, with the path position place in its adding link structure, to obtain link path information.
For example, the first predetermined process comprises: add predetermined identifier " _ " before each common parameter information, parameter obtaining device 1 obtains common parameter information " word=%C1 " and " tn=myie2 ", then parameter processing apparatus adds predetermined identifier " _ " before each common parameter information, and the common parameter Information generation that will add predetermined identifier is the link path information that satisfies the path structure form "/_ word=%C 1/_tn=myie2/ ".
Again for example, the first predetermined process comprises: add predetermined identifying information " tc_path " before all common parameter information, parameter obtaining device 1 obtains common parameter information " word=%C1 " and " tn=myie2 ", and parameter processing apparatus obtains predefined paths " baidu " in advance, then parameter processing apparatus adds predetermined identifying information and common parameter information behind predefined paths " baidu ", obtains to satisfy the link path information " baidu/tc_path/word=%C 1/tn=myie2/ " of path structure form.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any described common parameter information is carried out the implementation that the first predetermined process obtains link path information, for example, by being carried out transcoding, common parameter information obtains link path information etc., and all should be within the scope of the present invention.
Then, sub-prefix process device generates the described link prefix information that comprises described link path information.
Particularly, sub-prefix process device generates the link prefix information that comprises agreement, domain name and the link path information obtained in advance.
For example, predetermined protocol is " http ", predetermined domain name is " www.baidu.com ", the link path information that parameter obtaining device 1 obtains is " baidu/tc_path/word=%C1/tn=myie2 ", and then sub-prefix process device generates the link prefix information " http://www.baidu.com/baidu/tc_path/word=%C1/tn=myie2/ " that comprises " http ", " www.baidu.com " and " baidu/tc_path/word=%C1/tn=myie2 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention those skilled in the art should understand that, any generation comprises the implementation of the described link prefix information of described link path information, all should be within the scope of the present invention.
What need to further specify is, aforementioned embodiments 1) and 2) only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described common parameter information, generate the implementation of the link prefix information of corresponding described webpage to be generated, all should be within the scope of the present invention.
What relatively link generating apparatus 3 obtained described part or all of web page interlinkage links relative link information corresponding to prefix with this, and it is added in the described webpage to be generated, wherein, the link prefix that described relative link information is used for and prefix generating apparatus 2 generates merges to generate the absolute link information of described part or all of web page interlinkage.Then when needing this part or all of web page interlinkage of access information pointed, can obtain based on this absolute link information the actual link information of this part or all of web page interlinkage, thereby access this part or all of web page interlinkage information pointed.
Particularly, relatively link the relative link information that generating apparatus 3 obtains part or all of web page interlinkage in pre-this webpage to be generated of determining, such as other devices or the artificial pre-common parameter information of determining etc.; Perhaps, relatively link the relative link information that generating apparatus 3 obtains part or all of web page interlinkage by other means, wherein, these other modes will be described in detail in reference to Fig. 6 or embodiment shown in Figure 7 follow-up, not repeat them here.
Need to prove, the linked web pages generating apparatus can be by executable operations under the line, obtain to comprise webpage and the link prefix information thereof of relative path information, and when obtaining web access requests, pretreated webpage that will be corresponding with this web access requests and link prefix information and offer the requestor; Perhaps, when obtaining web access requests, the linked web pages generating apparatus generates in real time the webpage corresponding with this web access requests and links prefix information, and offers the requestor.
By method of the present invention, the parameter information by the repetition in a plurality of links that will be contained in webpage moves in the link prefix information, has reduced webpage, particularly such as the webpage that search terms, ample resources link etc. are provided, the link information amount that comprises.And because a webpage only needs a corresponding link prefix information, therefore, the method according to this invention can be saved the information flow-rate that consumes because transmitting identical parameter information.
Fig. 6 is the structural representation of the linked web pages generating apparatus that is used for generating web page and link prefix information thereof of a preferred embodiment of the invention.Comprise the first deriving means 111 and subparameter deriving means 112, the prefix generating apparatus 2 that are contained in the parameter obtaining device 1, be contained in the second deriving means 311, personality generating apparatus 312, the first sublink generating apparatus 313 and the first adding set 314 in the relative link generating apparatus 3 according to the linked web pages generating apparatus of present embodiment.
The first deriving means 111 obtains the parameter acquiring relevant information for the treatment of described part or all of web page interlinkage.
Wherein, the parameter acquiring relevant information comprises the information relevant with the parameter acquiring of described part or all of web page interlinkage.For example, when this part or all of web page interlinkage when the original link information in other webpages is changed to obtain, the parameter acquiring relevant information comprises the link address information of each original link information.Preferably, this parameter acquiring relevant information comprises relevant with the parameter acquiring of described part or all of web page interlinkage and for the equal identical information of this part or all of web page interlinkage.For example, the parameter acquiring relevant information comprises: the 1) relevant information of webpage under this part or all of web page interlinkage, such as webpage format information etc.; 2) ask the user of webpage under this part or all of web page interlinkage or the relevant information of equipment, the format information that can support such as subscriber identity information, subscriber equipment etc.
Particularly, the first deriving means 111 obtains the parameter acquiring relevant information corresponding with this part or all of web page interlinkage of pre-stored; Perhaps, the first deriving means 111 obtains the parameter acquiring relevant information that other devices provide; Perhaps, the relevant information of the first deriving means 111 by obtaining webpage under this all or part of web page interlinkage and/or the equipment by the request of access webpage obtain the parameter acquiring relevant information.
Then, subparameter deriving means 112 obtains described common parameter information according to described parameter acquiring relevant information.
Particularly, subparameter deriving means 112 mode of obtaining common parameter information includes but not limited to:
1) subparameter deriving means 112 directly obtains the common parameter information corresponding with the one or more information in the parameter acquiring relevant information.
For example, the parameter acquiring relevant information that the first deriving means 111 obtains comprises " webpage format: WML ", and then subparameter deriving means 112 obtains respectively the common parameter information " type=1 " corresponding with the webpage format of WML.
2) subparameter deriving means 112 is according to the parameter acquiring relevant information, determines that one or more predetermined common parameter names answer corresponding parameter value, to obtain to comprise the common parameter information of predetermined common parameter name and corresponding parameter value thereof.
For example, predetermined common parameter name comprises that for " type " of presentation web page form and " userid " that is used for the identifying user identity information, the parameter acquiring relevant information that the first deriving means 111 obtains comprises " webpage format: WML; User ID: 12345 "; Then subparameter deriving means 112 is by inquiry predetermined webpage format and parameter value mapping table, determine that parameter value corresponding to predetermined common parameter name " type " is 1, and the user ID that comprises in the parameter acquiring relevant information is direct as parameter value corresponding to predetermined common parameter name " userid "; Then subparameter deriving means 112 obtains common parameter information " type=1 " and " userid=12345 ".
3) subparameter deriving means 112 is according to the parameter acquiring relevant information, determine that one or more predetermined common parameter names answer corresponding parameter value, and by with the corresponding information of predetermined personalized parameter name in extract identical information, to obtain to comprise the common parameter information of predetermined common parameter name and corresponding parameter value thereof, predetermined personalized parameter name and corresponding partial parameters value thereof.
For example, predetermined common parameter name comprises " type " for the presentation web page form, the predetermined personalized parameter information comprises " src " for the link address information of sign original web page link, the parameter acquiring relevant information that the first deriving means 111 obtains comprise " webpage format: WML; The link address information of original web page link A: blog.sina.com.cn/blog_671bc; The link address information of original web page link B: blog.sina.com.cn/blog_245bc "; then subparameter deriving means 112 is by inquiry predetermined webpage format and parameter value mapping table; determine that parameter value corresponding to predetermined common parameter name " type " is 1, and extract identical address information " blog.sina.com.cn " in the link address information by original web page link A and B; Then subparameter deriving means 112 obtains common parameter information " type=1 " and " src=blog.sina.com.cn ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any according to described parameter acquiring relevant information, obtain the implementation of described common parameter information, all should be within the scope of the present invention.
Then, the 2 performed operations of prefix generating apparatus are described in detail with reference to the embodiment shown in FIG. 5, and are contained in this by reference, repeat no more.
Relatively link generating apparatus 3 is by its second deriving means 311 that comprises, personality generating apparatus 312, the first sublink generating apparatus 313 and the first adding set 314, and following operation is carried out in each web page interlinkage in the relevant described all or part of web page interlinkage of the parameter acquiring relevant information that obtains with the first deriving means 111:
The second deriving means 311 obtains the personality of current handled web page interlinkage and obtains relevant information.
Wherein, personality obtain relevant information comprise with when the relevant customized information of the parameter acquiring of the web page interlinkage of pre-treatment.For example, when the original web page link that comprises by other webpages for the treatment of beyond the generating web page when this web page interlinkage was changed to obtain, personality was obtained the link address information that relevant information comprises this original web page link; Again for example, the time parameter of this web page interlinkage resource information pointed; Again for example, the page number parameter during page turning links etc.
Particularly, the second deriving means 311 personality corresponding with this web page interlinkage of obtaining pre-stored obtained relevant information; Perhaps, the second deriving means 311 personality of obtaining other devices and providing is obtained relevant information; Perhaps, the second deriving means 311 obtains personality and obtains relevant information by such as modes such as webpages under this web page interlinkage of access resource information pointed, the link of access original web page.Preferably, the second deriving means 311 is also in conjunction with common parameter information, determines that personality obtains relevant information.For example, extracted identical part link address information as common parameter information in the link address information of subparameter deriving means 112 by the link of a plurality of original web page, then the second deriving means 311 obtains in the link address information part except common parameter information and obtains relevant information as personality.
Then, personality generating apparatus 312 obtains relevant information according to described personality, generates the personalizing parameters information of this web page interlinkage.
Particularly, the mode of personality generating apparatus 312 generation personalizing parameters information includes but not limited to:
1) personality generating apparatus 312 directly obtains with personality and obtains personalizing parameters information corresponding to one or more information in the relevant information.
2) personality generating apparatus 312 obtains relevant information according to personality, determines that one or more predetermined personalized parameter names answer corresponding parameter value, to obtain to comprise the personalizing parameters information of predetermined personalized parameter name and corresponding parameter value thereof.
For example, the predetermined personalized parameter name comprises " src " for the link address information of sign original web page link, the second deriving means 311 obtains the link address information " blog.sina.com.cn " of original web page link, then personality generating apparatus 312 directly with the parameter value of this link address information as predetermined personalized parameter name " src " correspondence, obtains personalizing parameters information " src=blog.sina.com.cn ".
Again for example, the predetermined personalized parameter name comprises " src " for the link address information of sign original web page link, the second deriving means 311 obtains the link address information " blog_671bc " of original web page link except common parameter information, then personality generating apparatus 312 is scheduled to the compression processing to " blog_671bc ", obtain character information " B_#T ", and the character information that will compress gained obtains personalizing parameters information " src=B_#T " as parameter value corresponding to predetermined personalized parameter name " src ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly obtain relevant information according to described personality, generate the implementation of the personalizing parameters information of this web page interlinkage, all should be within the scope of the present invention.
Then, the first sublink generating apparatus 313 generates should web page interlinkage and comprise the relative link information of described personalizing parameters information.
The relative link information that for example, the first sublink generating apparatus 313 personalizing parameters information " src=blog.sina.com.cn " next life of directly obtaining based on personality generating apparatus 312 in pairs should web page interlinkage " ./? src=blog.sina.com.cn ".
Again for example, the filename " 51247.txt " of the personalizing parameters information " src=blog.sina.com.cn " that the first sublink generating apparatus 313 obtains based on personalizing parameters generating apparatus 312 and this web page interlinkage resource information pointed of obtaining in advance, generate to relative link information that should web page interlinkage " ./? src=blog.sina.com.cn/51247.txt ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any generation all should be within the scope of the present invention to should web page interlinkage and comprise the implementation of the relative link information of described personalizing parameters information.
Then, the first adding set 314 should add in the described webpage to be generated by relative link information.
By aforesaid operations is carried out in each web page interlinkage in the relevant described all or part of web page interlinkage of the parameter acquiring relevant information that obtains with the first deriving means 111, the linked web pages generating apparatus can obtain to comprise the webpage of the relative link information of this all or part of web page interlinkage.Wherein, those skilled in the art should be able to determine according to actual conditions and demand the generation of other information in this webpage, do not repeat them here.
As one of preferred version of present embodiment, the linked web pages generating apparatus is also carried out following operation by each web page interlinkage that its first judgment means (not shown) that comprises and the first flip flop equipment (not shown) are treated in the generating web page:
The first judgment means judges whether the web page interlinkage when pre-treatment comprises whole common parameter information.
Particularly, the first judgment means is judged when this web page interlinkage represents with actual link information, whether is needed to comprise whole common parameter information.
For example, the common parameter information that parameter obtaining device 1 obtains comprises " type=1 " and " userid=12345 ", and the definite link information when pre-treatment of the first judgment means does not need to comprise the parameter for the identifying user identity information, namely the link information when pre-treatment does not need to comprise common parameter information " userid=12345 ", and then the first judgment means judges that the web page interlinkage when pre-treatment does not comprise whole common parameter information.
Again for example, the common parameter information that parameter obtaining device 1 obtains comprises " type=1 " and " userid=12345 ", the first judgment means is determined need to comprise for the parameter of identifying user identity information and the parameter that is used for the presentation web page form when the link information of pre-treatment, and then the first judgment means judges that the web page interlinkage when pre-treatment comprises whole common parameter information.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, whether any judgement comprises the implementation of whole common parameter information when the web page interlinkage of pre-treatment, all should be within the scope of the present invention.
When judging that this web page interlinkage comprises whole common parameter information, the first flip flop equipment triggers relatively link generating apparatus 3 execution corresponding operatings, to obtain the relative link information of this web page interlinkage information.
When judging that this web page interlinkage does not comprise whole common parameter information, linked web pages generating apparatus undo; Perhaps, the linked web pages generating apparatus obtains the absolute link information of this web page interlinkage by the absolute link deriving means (not shown) that it comprises, and it is added in the webpage to be generated.Wherein, those skilled in the art should be able to determine that this obtains the mode of absolute link information, does not repeat them here according to actual conditions and demand.
In the present embodiment, can obtain relevant information by getting parms respectively and personality is obtained relevant information, generate link prefix information and relative link information relatively independently.Further, in the present embodiment, can automatic decision and determine the web page interlinkage that represents with relative link information form in the webpage to be generated, and treat in the generating web page web page interlinkage that can not represent with relative link information form, its absolute link information is added in the webpage to be generated.
Fig. 7 is the structural representation of the linked web pages generating apparatus that is used for generating web page and link prefix information thereof of another preferred embodiment of the present invention.Comprise the first actual link deriving means 121 and extraction element 122, the prefix generating apparatus 2 that are contained in the parameter obtaining device 1, be contained in the second sublink generating apparatus 321 and the second adding set 322 in the relative link generating apparatus 3 according to the linked web pages generating apparatus of present embodiment.
The first actual link deriving means 121 obtains the actual link information of all web page interlinkages in the described webpage to be generated.
Wherein, the actual link information of web page interlinkage is carried out any processing for need not to it, namely can directly visit the link information of this web page interlinkage webpage pointed based on it.
For example, when the actual link information of the web page interlinkage in the webpage to be generated had been determined, the first actual link deriving means 121 directly obtained fixed actual link information; Again for example, the actual link information of the web page interlinkage in webpage to be generated is not yet definite, and the actual link information exchange of the web page interlinkage in the predetermined webpage to be generated is crossed the original link information in other webpages is carried out intended conversion when processing to obtain, the first actual link deriving means 121 carries out intended conversion to the original link information in other webpages to be processed, to obtain the actual link information of all web page interlinkages in the described webpage to be generated.
Then, extraction element 122 is by extracting the parameter information that is contained in a plurality of actual link information in all actual absolute link information, as described common parameter information.
Particularly, 122 pairs of all actual absolute link information of extraction element are mated, to obtain the identical parameter information of all or part that a plurality of actual absolute link information comprise as common parameter information.
For example, the first actual link deriving means 121 obtain the actual link information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=3﹠amp; Td=5 " and " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=4﹠amp; Td=5 "; Then extraction element 122 obtains to be contained in the common parameter information " word=%C1﹠amp in above-mentioned two actual link information by the information of argument section in the actual link information is carried out prefix matching; Tn=myie2 ".
Again for example, as above shown in the example, extraction element 122 extracts all identical parameter informations in the actual link information to the first actual link deriving means 121 acquisition actual link information, obtains common parameter information " word=%C 1﹠amp; Tn=myie2 " and " td=5 ".
Again for example, the first actual link deriving means 121 obtain the actual link information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=3﹠amp; Td=5 ", " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=4﹠amp; Td=5 " and " http://www.baidu.com/baidu? word=%PD1﹠amp; Tn=myie5 "; Then the information of argument section is carried out prefix matching in 122 pairs of actual link information of extraction element, obtains the common parameter information " word=%C1﹠amp that is contained in the first two actual link information; Tn=myie2 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any by extracting the parameter information that is contained in a plurality of actual link information in all actual absolute link information, implementation as described common parameter information, for example, judge whether in the individual above actual link information of N (N is predetermined threshold) it as common parameter information etc. by judging whether a parameter information is contained in, all should be within the scope of the present invention.
Then, the 2 performed operations of prefix generating apparatus are described in detail with reference to the embodiment shown in FIG. 5, and are contained in this by reference, repeat no more.
For each the actual link information in a plurality of actual link information that comprise common parameter information, the second sublink generating apparatus 321 generates relative link information based on the information that is not contained in the described link prefix information in this actual link information.
For example, as to the 3rd embodiment described in the explanation of extraction element 122, prefix generating apparatus 2 obtains link prefix informations " http://www.baidu.com/baidu/word=%C1/tn=myie2 ", then for the actual link information that comprises common parameter information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=3﹠amp; Td=5 ", the linked web pages generating apparatus directly will not be contained in the information “ ﹠amp that connects in the prefix information; Ch=3﹠amp; Td=5 " be generated as relative link information " ./? ch=3﹠amp; Td=5 "; Similarly, the linked web pages generating apparatus obtain actual link information " http://www.baidu.com/baidu? word=%C1﹠amp; Tn=myie2﹠amp; Ch=4﹠amp; Td=5 " relative link information " ./? ch=4﹠amp; Td=5 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, anyly generate the implementation of relative link information based on the information in the described link prefix information of not being contained in this actual link information, all should be within the scope of the present invention.
Then, the second adding set 322 should add in the described webpage to be generated by relative link information.
By to comprising each web page interlinkage executable operations of common parameter information, the linked web pages generating apparatus can obtain to comprise the webpage of relative link information.Wherein, those skilled in the art will be understood that for the actual link information that does not comprise whole common parameter information, can directly it be added in the webpage to be generated, those skilled in the art should be able to determine according to actual conditions and demand the generation of other information in this webpage, do not repeat them here.
By aforesaid operations is carried out in each web page interlinkage in the relevant described all or part of web page interlinkage of the parameter acquiring relevant information that obtains with the first deriving means 111, relatively link the webpage that generating apparatus 3 can obtain to comprise the relative link information of this all or part of web page interlinkage.Wherein, those skilled in the art should be able to determine according to actual conditions and demand the generation of other information in this webpage, do not repeat them here.
Fig. 8 provides the structural representation of linked web pages generating apparatus of webpage and link prefix information thereof for a preferred embodiment of the invention to the user.Linked web pages generating apparatus according to present embodiment comprises acquisition request device 6, the 3rd deriving means 7 and the first dispensing device 8.
Acquisition request device 6 obtains the web access requests information from subscriber equipment.
Then, obtain the link prefix information corresponding with the corresponding webpage of this web access requests information and this webpage at the 3rd deriving means 7, wherein, this webpage comprises relative link information.
Particularly, the 3rd deriving means 7 obtain webpage and the link prefix information mode include but not limited to:
1) the 3rd deriving means 7 is by the identification information of the webpage that extracts institute's request access in the web access requests information, and obtains pregenerated and the corresponding webpage of this flag information and prefix information thereof.Wherein, this identification information includes but not limited to: a) predetermined webpage ID number; B) link information of webpage, as comprising the absolute link information of parameter information in the part of path, perhaps, the path part does not comprise the actual link information of any parameter information etc.
2) the 3rd deriving means 7 is by the identification information of the webpage that extracts institute's request access in the web access requests information, and generates and the corresponding webpage of this identification information and prefix information thereof.Preferably, the linked web pages generating apparatus comprises the second flip flop equipment (not shown), its with the webpage of institute's request access as webpage to be generated, trigger earlier figures 1, Fig. 2 or embodiment illustrated in fig. 3 described in parameter obtaining device 1, prefix generating apparatus 2 and relative generating apparatus 3 executable operations that link, to generate and the corresponding webpage of this identification information and prefix information thereof.
Wherein, the 3rd deriving means 7 is determined to include but not limited to the mode of the corresponding webpage of identification information and prefix information thereof:
1) when identification information is predetermined webpage ID, the 3rd deriving means 7 is determined and the corresponding webpage of identification information and prefix information thereof according to the predetermined corresponding relation of predetermined webpage ID and webpage.
2) when identification information is the link information of webpage, the 3rd deriving means 7 obtains the linked web pages generating apparatus by link information being carried out the actual link information that pre-service is determined, then the 3rd deriving means 7 webpage that this actual link information is pointed and prefix information thereof as with the corresponding webpage of identification information and prefix information thereof.This mode will be described in detail in subsequent embodiment, not repeat them here.
Then, the first dispensing device 8 sends described webpage and corresponding relative link information thereof to described subscriber equipment.
As one of preferred version of present embodiment, web access requests information comprises the absolute link information of institute's request access webpage, the linked web pages generating apparatus also is included in the 3rd deriving means 7 before recognition device (not shown) and the second actual link deriving means (not shown) of executable operations, and aforementioned the 3rd deriving means 7 further comprises sub-deriving means (not shown).
Recognition device is by identification common parameter information in this absolute link information.
Particularly, the mode of recognition device identification common parameter information includes but not limited to:
1) recognition device is by judging whether each path unit of path part meets the preset parameter form in the absolute link information, identification common parameter information in the cause absolute link information, wherein, path unit i.e. information between two path separators, for example, information between two "/" etc.; Perhaps, if the path part in the predetermined absolute link information only comprises common parameter information, then recognition device directly with each path unit of comprising in the absolute link information as common parameter information.
For example, the preset parameter form is " parameter name=parameter value ", the linked web pages generating apparatus by the absolute link information that obtains in the web access requests information for " http://www.baidu.com/baidu/word=%C 1/tn=myie2/? ssid=0﹠amp; From=0 "; Then recognition device is by extracting a path unit " baidu " in this absolute link information, and according to not comprising character "=" in this path unit, determines that this path unit does not meet the preset parameter form, judges that it is not common parameter information; Then, recognition device extracts next path unit " word=%C1 ", and comprises character "=" according to this path unit, and this character is front and the rear character information that all comprises, then recognition device determines that it meets the preset parameter form, judges that it is common parameter information; Similarly, recognition device judges that " tn=myie2 " is common parameter information.Then recognition device obtains common parameter information " word=%C1 " and " tn=myie2 " by identification in the absolute link information.
Preferably, when path unit met the preset parameter form, recognition device judged further whether the character information of parameter name position belongs to the preset parameter name, and when character information belongs to the preset parameter name, judged that just this path unit is common parameter information.
For example, when recognition device judges that path unit " word=%C1 " is common parameter information, further judge whether the character information " word " of parameter name position belongs to the preset parameter name, and when " word " belongs to the preset parameter name, judge that " word=%C1 " is common parameter information.
2) recognition device is identified common parameter information based on predetermined identifier in the cause absolute link information.
For example, predetermined identifier is " _ ", all comprises this predetermined identifier before predetermined each common parameter information, then when recognition device judges that the path unit initial character is " _ ", this path unit is identified as common parameter information.
Again for example, predetermined identifying information is " tc_path ", all information that are positioned in the predefined paths part behind the predetermined identifying information are common parameter information, then in the part of the path of absolute link information, identify when obtaining predetermined identifying information " tc_path " when recognition device, will be in the part of path all path unit after should predetermined identifying information be identified as common parameter information.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any implementation by identification common parameter information in the absolute link information, for example, the information of the path portion that satisfies the need is first carried out transcoding, again by identification common parameter information in the information behind the transcoding etc., all should be within the scope of the present invention.
Then, the second actual link deriving means obtains can be used in the actual link information of obtaining corresponding webpage according to the common parameter information of identifying and this absolute link information.
For example, the absolute link information of linked web pages generating apparatus gained be " http://www.baidu.com/baidu/word=%C1/tn=myie2/? ssid=0﹠amp; From=0 "; the common parameter information of recognition device identification gained is " word=%C1 " and " tn=myie2 "; then the second actual link deriving means moves to the parameter position with each common parameter information by path position, and adds predetermined symbol “ ﹠amp before each common parameter information; ", to obtain to satisfy actual link information " the http://www.baidu.com/baidu of link structure call format? word=%C 1﹠amp; Tn=myie2﹠amp; Ssid=0﹠amp; From=0 ".
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, any common parameter information and this absolute link information according to identifying, acquisition can be used in the implementation of the actual link information of obtaining corresponding webpage, all should be within the scope of the present invention.
Then, sub-deriving means obtains the link prefix information corresponding with the corresponding webpage of actual link information and this webpage.Wherein, those skilled in the art should be able to determine to obtain the mode that link prefix information corresponding with the corresponding webpage of actual link information and this webpage according to actual conditions and demand, do not repeat them here.
Need to prove, when recognition device is failed when identifying common parameter information in this absolute link information, the linked web pages generating apparatus as actual link information, and obtains this absolute link information with the corresponding webpage of this actual link information and links prefix information.
Preferably, in the present embodiment linked web pages generating apparatus also be included in after the second actual link deriving means, the second judgment means (not shown) of executable operations before the first dispensing device 8, the first dispensing device 8 further comprises sub-dispensing device (not shown).
The second judgment means judges whether described link prefix information is contained in the described absolute link information.
When the second judgment means judged that described link prefix information is not contained in the described absolute link information, sub-dispensing device sent described webpage and corresponding link prefix information thereof to described subscriber equipment.Then after subscriber equipment receives described webpage and link prefix information, webpage can be presented to the user, and the link prefix information of the current acquiescence of browser changed to the link prefix information that the linked web pages generating apparatus sends, with when the relative link information in user's webpage clicking, browser can merge generation absolute link information with the relative link information that the user clicks with the link prefix information of changing, and sends this absolute link information.
For example, the linked web pages generating apparatus will link prefix information and add in the webpage, and adopt the base label to identify this link prefix information, and the webpage that sub-dispensing device will comprise the link prefix information sends to subscriber equipment.Then when the subscriber equipment analyzing web page, can change according to the base label connection prefix information of acquiescence.
Need to prove, above-mentioned for example only for technical scheme of the present invention is described better, but not limitation of the present invention, those skilled in the art should understand that, it is any when described link prefix information is not contained in the described absolute link information, the linked web pages generating apparatus sends the implementation of described webpage and corresponding link prefix information thereof to described subscriber equipment, all should be within the scope of the present invention.
More preferably, the linked web pages generating apparatus also comprises the second dispensing device (not shown).When the link prefix information comprised in the absolute link information that is contained in the web access requests information, the second dispensing device sent described webpage to described subscriber equipment.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and in the situation that does not deviate from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, therefore is intended to be included in the present invention dropping on the implication that is equal to important document of claim and all changes in the scope.Any Reference numeral in the claim should be considered as limit related claim.In addition, obviously other unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.A plurality of unit of stating in system's claim or device also can be realized by software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.

Claims (27)

1. computer implemented method for obtaining webpage and link prefix information thereof, wherein, the method may further comprise the steps:
A obtains the common parameter information of part or all of web page interlinkage in the webpage to be generated;
B generates the link prefix information of corresponding described webpage to be generated according to described common parameter information;
Wherein, the method also comprises:
What i obtained described part or all of web page interlinkage links relative link information corresponding to prefix with this, and it is added in the described webpage to be generated, wherein, described relative link information is used for and described link prefix merges to generate the absolute link information of described part or all of web page interlinkage.
2. method according to claim 1, wherein, described step b may further comprise the steps:
-described common parameter information is carried out the first predetermined process, obtain link path information, wherein, this first predetermined process makes it possible to by the described common parameter information of identification in the described link path information;
-generation comprises the described link prefix information of described link path information.
3. method according to claim 1 and 2, wherein, described step a may further comprise the steps:
A1 obtains the parameter acquiring relevant information for the treatment of described part or all of web page interlinkage;
A2 obtains described common parameter information according to described parameter acquiring relevant information.
4. method according to claim 3, wherein, in the described step I following steps are carried out in each web page interlinkage in the described all or part of web page interlinkage:
-the personality of obtaining this web page interlinkage is obtained relevant information;
-obtain relevant information according to described personality, generate the personalizing parameters information of this web page interlinkage;
-generate should web page interlinkage and comprise the relative link information of described personalizing parameters information;
-should add in the described webpage to be generated by relative link information.
5. method according to claim 4, wherein, in the method following steps are carried out in each web page interlinkage in the described webpage to be generated:
-judge whether this web page interlinkage needs to comprise whole common parameter information;
-when judging that this web page interlinkage need to comprise described common parameter information, carry out described step I.
6. method according to claim 5, wherein, in the method following steps are also carried out in each web page interlinkage in the described webpage to be generated:
-when judging that this web page interlinkage does not comprise whole common parameter information, obtain the absolute link information of this web page interlinkage, and it is added in the webpage to be generated.
7. method according to claim 1 and 2, wherein, described step a may further comprise the steps:
-obtain the actual link information of all web page interlinkages in the described webpage to be generated;
-by extracting the parameter information that is contained in a plurality of actual link information in all actual absolute link information, as described common parameter information.
8. method according to claim 7, wherein, in the described step I for each the actual link information and executing following steps in described a plurality of actual link information:
-generate relative link information based on the information that is not contained in the described link prefix information in this actual link information;
-should add in the described webpage to be generated by relative link information.
9. each described method in 8 according to claim 1, wherein, the method is further comprising the steps of:
X obtains the web access requests information from subscriber equipment;
Y obtains the link prefix information corresponding with the corresponding webpage of this web access requests information and this webpage, and wherein, this webpage comprises relative link information;
Z sends described webpage and corresponding link prefix information thereof to described subscriber equipment.
10. method according to claim 9, wherein, described web access requests information comprises the absolute link information of the webpage of institute's request access, wherein, the method is further comprising the steps of:
-by identification common parameter information in this absolute link information;
-according to common parameter information and this absolute link information of identification gained, obtain can be used in the actual link information of obtaining corresponding webpage;
Wherein, described step y may further comprise the steps:
-obtain the link prefix information corresponding with the corresponding webpage of described actual link information and this webpage.
11. method according to claim 10, wherein, the method is further comprising the steps of:
-judge whether described link prefix information is contained in the described absolute link information;
Wherein, described step z may further comprise the steps:
-when described link prefix information is not contained in the described absolute link information, send described webpage and corresponding link prefix information thereof to described subscriber equipment.
12. method according to claim 11, wherein, the method is further comprising the steps of:
-when described link prefix information is contained in the described absolute link information, send described webpage to described subscriber equipment.
13. each described method in 12 according to claim 9, wherein, described step y may further comprise the steps:
-with corresponding webpage as described webpage to be generated, carry out described step a, b and i.
14. a linked web pages generating apparatus that is used for generating web page and link prefix information thereof, wherein, this linked web pages generating apparatus comprises:
Parameter obtaining device is used for obtaining the partly or entirely common parameter information of web page interlinkage of webpage to be generated;
The prefix generating apparatus is used for according to described common parameter information, generates the link prefix information of corresponding described webpage to be generated;
Relatively link generating apparatus, what be used for obtaining described part or all of web page interlinkage links relative link information corresponding to prefix with this, and it is added in the described webpage to be generated, wherein, described relative link information is used for and described link prefix merges to generate the absolute link information of described part or all of web page interlinkage.
15. linked web pages generating apparatus according to claim 14, wherein, described prefix generating apparatus comprises:
Parameter processing apparatus is used for described common parameter information is carried out the first predetermined process, obtains link path information, and wherein, this first predetermined process makes it possible to by the described common parameter information of identification in the described link path information;
Sub-prefix generating apparatus is used for generating the described link prefix information that comprises described link path information.
16. according to claim 14 or 15 described linked web pages generating apparatus, wherein, described parameter obtaining device comprises:
The first deriving means is used for obtaining the parameter acquiring relevant information for the treatment of described part or all of web page interlinkage;
The subparameter deriving means is used for according to described parameter acquiring relevant information, obtains described common parameter information.
17. linked web pages generating apparatus according to claim 16, wherein, described relative link generating apparatus is by coming each the web page interlinkage executable operations in the described all or part of web page interlinkage with lower device that it comprises:
The second deriving means obtains relevant information for the personality of obtaining this web page interlinkage;
The personality generating apparatus is used for obtaining relevant information according to described personality, generates the personalizing parameters information of this web page interlinkage;
The first sublink generating apparatus be used for to generate should web page interlinkage and comprise the relative link information of described personalizing parameters information;
The first adding set is used for and should adds described webpage to be generated by relative link information.
18. linked web pages generating apparatus according to claim 17, wherein, this linked web pages generating apparatus is also by coming each the web page interlinkage executable operations in the described webpage to be generated with lower device that it comprises:
The first judgment means is used for judging whether this web page interlinkage needs to comprise whole common parameter information;
The first flip flop equipment is used for triggering described relative link generating apparatus when judging that this web page interlinkage need to comprise described common parameter information.
19. linked web pages generating apparatus according to claim 18, wherein, this linked web pages generating apparatus is also by coming each the web page interlinkage executable operations in the described webpage to be generated with lower device that it comprises:
The absolute link deriving means is used for obtaining the absolute link information of this web page interlinkage, and it being added in the webpage to be generated when judging that this web page interlinkage does not comprise whole common parameter information.
20. according to claim 14 or 15 described linked web pages generating apparatus, wherein, described parameter obtaining device comprises:
The first actual link deriving means is used for obtaining the actual link information of described all web page interlinkages of webpage to be generated;
Extraction element is used for extracting the parameter information that is contained in a plurality of actual link information by all actual absolute link information, as described common parameter information.
21. linked web pages generating apparatus according to claim 20, wherein, described relative link generating apparatus is by coming each the actual link information and executing following steps in described a plurality of actual link information with lower device that it comprises:
The second sublink generating apparatus, the information that is used for not being contained in the described link prefix information based on this actual link information generates relative link information;
The second adding set is used for and should adds described webpage to be generated by relative link information.
22. each described linked web pages generating apparatus in 21 according to claim 14, wherein, this linked web pages generating apparatus also comprises:
The acquisition request device is used for obtaining the web access requests information from subscriber equipment;
The 3rd deriving means is used for obtaining the link prefix information corresponding with the corresponding webpage of this web access requests information and this webpage, and wherein, this webpage comprises relative link information;
The first dispensing device is used for sending described webpage and corresponding link prefix information thereof to described subscriber equipment.
23. linked web pages generating apparatus according to claim 22, wherein, described web access requests information comprises the absolute link information of the webpage of institute's request access, and wherein, this linked web pages generating apparatus also comprises:
Recognition device is used for by this absolute link information identification common parameter information;
The second actual link deriving means is used for common parameter information and this absolute link information according to the identification gained, obtains can be used in the actual link information of obtaining corresponding webpage;
Wherein, described the 3rd deriving means comprises:
Sub-deriving means is used for obtaining the link prefix information corresponding with the corresponding webpage of described actual link information and this webpage.
24. linked web pages generating apparatus according to claim 23, wherein, this linked web pages generating apparatus also comprises:
The second judgment means is used for judging whether described link prefix information is contained in described absolute link information;
Wherein, described dispensing device comprises:
Sub-dispensing device is used for when described link prefix information is not contained in described absolute link information, sends described webpage and corresponding link prefix information thereof to described subscriber equipment.
25. linked web pages generating apparatus according to claim 24, wherein, this linked web pages generating apparatus also comprises:
The second dispensing device is used for sending described webpage to described subscriber equipment when described link prefix information is contained in described absolute link information.
26. each described linked web pages generating apparatus in 25 according to claim 22, wherein, described the 3rd deriving means comprises:
The second flip flop equipment is used for corresponding webpage as described webpage to be generated, to trigger described parameter obtaining device and described relative link generating apparatus executable operations.
27. a computer equipment, wherein, this computer equipment comprises such as at least one described linked web pages generating apparatus in the claim 14 to 26.
CN201110272142.XA 2011-09-14 2011-09-14 A kind of method, device and equipment for obtaining webpage and its link prefix information Active CN102999514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110272142.XA CN102999514B (en) 2011-09-14 2011-09-14 A kind of method, device and equipment for obtaining webpage and its link prefix information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110272142.XA CN102999514B (en) 2011-09-14 2011-09-14 A kind of method, device and equipment for obtaining webpage and its link prefix information

Publications (2)

Publication Number Publication Date
CN102999514A true CN102999514A (en) 2013-03-27
CN102999514B CN102999514B (en) 2017-04-05

Family

ID=47928088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110272142.XA Active CN102999514B (en) 2011-09-14 2011-09-14 A kind of method, device and equipment for obtaining webpage and its link prefix information

Country Status (1)

Country Link
CN (1) CN102999514B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978340A (en) * 2014-04-08 2015-10-14 北京奇虎科技有限公司 Link address generation method and equipment, and server
CN111010456A (en) * 2019-11-22 2020-04-14 哈尔滨工业大学(威海) Main domain name acquisition and verification method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136231A1 (en) * 2005-12-09 2007-06-14 Fatlens Inc. Method for providing access to information in a network
CN101841785A (en) * 2010-06-13 2010-09-22 联信摩贝软件(北京)有限公司 Method for sending encrypted message by cellphone and system thereof
US20110153583A1 (en) * 2009-12-23 2011-06-23 Cbs Interactive, Inc. Url proxy method and apparatus
CN102129428A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Method and device for subscribing information from webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136231A1 (en) * 2005-12-09 2007-06-14 Fatlens Inc. Method for providing access to information in a network
US20110153583A1 (en) * 2009-12-23 2011-06-23 Cbs Interactive, Inc. Url proxy method and apparatus
CN102129428A (en) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 Method and device for subscribing information from webpage
CN101841785A (en) * 2010-06-13 2010-09-22 联信摩贝软件(北京)有限公司 Method for sending encrypted message by cellphone and system thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978340A (en) * 2014-04-08 2015-10-14 北京奇虎科技有限公司 Link address generation method and equipment, and server
WO2015154681A1 (en) * 2014-04-08 2015-10-15 北京奇虎科技有限公司 Link address generation method, device, and server
CN104978340B (en) * 2014-04-08 2020-05-15 北京奇虎科技有限公司 Link address generation method, device and server
CN111010456A (en) * 2019-11-22 2020-04-14 哈尔滨工业大学(威海) Main domain name acquisition and verification method
CN111010456B (en) * 2019-11-22 2022-03-11 哈尔滨工业大学(威海) Main domain name acquisition and verification method

Also Published As

Publication number Publication date
CN102999514B (en) 2017-04-05

Similar Documents

Publication Publication Date Title
CN104915398B (en) A kind of webpage buries method and device a little
US11150874B2 (en) API specification generation
CN103124263B (en) A kind of advertisement push system and advertisement pushing equipment, Advertisement Server
CN102298614B (en) Method for determining collection category of page collection information and device and equipment
CN102333122B (en) Downloaded resource provision method, device and system
CN101510881B (en) Method and device for providing web page
CN102722585B (en) Browser type identification method, device and system
CN105100032A (en) Method and apparatus for preventing resource steal
CN103810268B (en) Search result recommendation information loading method, device and system and URL detection method, device and system
CN104268241B (en) Attribute display method in a kind of configuration database
CN103166917A (en) Method and system for network equipment identity recognition
CN106412034B (en) Method for processing business and device
CN109756584B (en) Domain name resolution method, domain name resolution device and computer readable storage medium
CN106534268B (en) Data sharing method and device
CN106980687B (en) Resource downloading system, method and crawler downloading system
CN101944018A (en) Icon adjustment method and client
CN113676563B (en) Scheduling method, device, equipment and storage medium of content distribution network service
CN104283723A (en) Network access log processing method and device
CN103825919A (en) Method, device and system for data resource caching
CN103093377B (en) A kind of advertisement placement method and system
CN102306184B (en) Method, device and apparatus for obtaining compressed link address information and compressed webpage
CN103793508A (en) Method, device and system for loading recommend information and detecting websites
JP2011043924A (en) Web action history acquisition system, web action history acquisition method, gateway device and program
CN103399968A (en) Microblog information acquisition method and microblog information acquisition system
CN102255969A (en) Representational-state-transfer-based web service security model

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