Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
Fig. 1 shows the schematic flow sheet of Webpage method for previewing according to an embodiment of the invention.Such as Fig. 1 institutes
Show, the method is comprised the following steps:
Step S100, receives the web access requests of the URL for carrying webpage that client sends.
URL (Uniform Resource Locator, URL) is commonly called as " web page address ", as in network
On doorplate, be the address (Address) of the resource of standard on Internet (Internet).
Specifically, user can carry out web page access, user end to server by way of being input into URL in address field
Transmission carries the web access requests of the URL of webpage, and server receives the webpage of the URL for carrying webpage that client sends
Access request.For example, user desires access to Taobao's webpage, then http can be input into:https://taobao.com is to Taobao's webpage
Conduct interviews, be merely illustrative here certainly, without any restriction effect, certainly, user can also be defeated as needed
Enter to meet other URL of URL grammer.
Whether step S101, judges include time parameter in URL, if so, then performing step S102.
Wherein, time parameter is used to define the time, and in the present embodiment, user can according to actual needs in inputs domain name
During etc. information, time parameter, and the corresponding temporal information of input time parameter are also defined.Specifically, if user thinks that preview is a certain
The Webpage of time, then can be when URL be input into, input time parameter and the corresponding temporal information of the time parameter;If
User is only that online accesses webpage usually, without preview Webpage sometime, then only inputs domain name etc. can be believed
Breath, and without input time parameter and the corresponding temporal information of the time parameter.
Specifically, after the web access requests of the URL for carrying webpage of client transmission are received, visited from the webpage
Ask and extract URL in request, and whether judge in the URL comprising time parameter, judge whether include time parameter in URL here
Primarily to determining whether user wants preview Webpage sometime, if including time parameter in the URL, illustrate to use
Want the Webpage that preview time is the corresponding temporal information of the time parameter in family;If not including time parameter in the URL, say
Bright user is only normally to access webpage, does not do particular determination to the time for accessing the content of pages of webpage, therefore, it can return
Return Webpage content corresponding with system time.
Step S102, the corresponding temporal information of time parameter is entered as by time variable.
Time variable is pre-defined in program code, and the assignment of time variable is that server returns to net to client
The foundation of page content of pages.In the case of in judging URL comprising time parameter, time variable is entered as time parameter pair
The temporal information answered.
Step S103, according to time variable, searches Webpage content.
After time variable to be entered as the corresponding temporal information of time parameter, server can come according to time variable
Webpage content corresponding with the assignment of the time variable is searched, that is, searches webpage corresponding with the temporal information of user input
Content of pages.
Step S104, returns to Webpage content, so that user carries out Webpage preview to client.
Server is returned in Webpage after corresponding Webpage content is found according to time variable to client
Hold, client represents the Webpage content that server is returned, allows the user to the webpage of preview corresponding time to user
The page.
For example, system time be on November 5th, 2016, but user want in advance preview once Taobao in 2016
The Webpage on November 11, user can be when URL be input into, input time parameter temporal information corresponding with the time parameter
On November 11st, 2016, server please in the web page access for receiving the URL for carrying webpage that client sends
After asking, judge whether include time parameter in URL, if so, time variable then is entered as into November 11 in 2016
Day;According to time variable:On November 11st, 2016, the content of pages of Taobao's webpage is searched, by the Taobao on November 11 in 2016
The content of pages of webpage returns to client, and client represents the content of pages of Taobao's webpage that server is returned to user,
Allow the user to the preview Webpage on November 11 in 2016.
According to the method that the above embodiment of the present invention is provided, by judging whether join comprising the time in URL
Count to determine whether user wants preview Webpage sometime, if including time parameter in URL,
Time variable is entered as the corresponding temporal information of time parameter, according to time variable, Webpage content is searched, to client
Webpage content is returned, the Webpage of preview corresponding time is allowed the user to, realized when can specify any with preview
Between Webpage, can in advance know whether Webpage each several part can normally show, in the case of abnormal, can be with
Change in advance, overcome the Webpage for being only capable of accessing current time in the prior art, and cannot preview webpage sometime
Whether just the defect of the page, additionally, also reducing cost of labor, the Webpage of specified time is monitored without staff always
Often.
Fig. 2 shows the schematic flow sheet of Webpage method for previewing in accordance with another embodiment of the present invention.Such as Fig. 2 institutes
Show, the method is comprised the following steps:
Step S200, receives the web access requests of the URL for carrying webpage that client sends.
Specifically, user can carry out web page access, user end to server by way of being input into URL in address field
Transmission carries the web access requests of the URL of webpage, and server receives the webpage of the URL for carrying webpage that client sends
Access request.For example, user desires access to Taobao's webpage, then http can be input into:https://taobao.com is to Taobao's webpage
Conduct interviews, be merely illustrative here certainly, without any restriction effect, certainly, user can also be defeated as needed
Enter to meet other URL of URL grammer.
Certainly, the URL is not limited only to be input into by the user oneself, can also be sent to the user by other users, the use
Family can access corresponding webpage by triggering URL.
Whether step S201, time parameter is included according to the relevant position of preset format parsing URL, if
It is then to perform step S202;If it is not, then performing step S203.
In embodiments of the present invention, the URL that user is input into address field should meet preset format, for example, for bag
URL containing time parameter, time parameter is generally located on the last of URL, is merely illustrative here certainly, without any
Restriction effect, therefore, judge whether can specifically be adopted comprising time parameter in URL to be judged with the following method:According to default
Whether the relevant position of format analysis URL includes time parameter, judge whether to include time parameter in URL here primarily to
Determine whether user wants preview Webpage sometime, and determine the Webpage content to be returned to client.
If the relevant position of the URL includes time parameter, it is that the time parameter is corresponding to illustrate that user wants preview time
The Webpage of temporal information;If the relevant position of the URL does not include time parameter, illustrate that user is only normally to access net
Page, does not do particular determination to the time for accessing the content of pages of webpage, therefore, it can return to webpage corresponding with system time
Content of pages.
Step S202, the corresponding temporal information of time parameter is entered as by time variable.
Time variable is pre-defined in program code, and the assignment of time variable is that server returns to net to client
The foundation of page content of pages.In the case where the relevant position of URL is parsed comprising time parameter, when time variable is entered as
Between the corresponding temporal information of parameter.
Step S203, null value is entered as by time variable.
In the case where the relevant position for parsing URL does not include time parameter, illustrate that user is only normally to access net
Page, does not do particular determination to the time for accessing the content of pages of webpage, therefore, it can return to webpage corresponding with system time
Content of pages.And know when return to Webpage content corresponding with system time for the ease of server, need
Time variable is entered as null value in the case where the relevant position for parsing URL does not include time parameter.
Step S204, judges whether time variable is null value, if so, then performing step S205;If it is not, then performing step
S206。
After assignment is carried out to time variable, in addition it is also necessary to judge whether time variable is null value, and then determine to need
Search the Webpage content of which time.
Step S205, obtains system time, then searches Webpage content corresponding with system time.
In the case where time variable is null value, illustrate that user is only normally to access webpage, at this point it is possible to obtain system
Time, then look up Webpage content corresponding with system time.
Step S206, obtains the assignment of time variable, then searches in Webpage corresponding with the assignment of time variable
Hold.
In time variable not in the case of null value, the assignment of time variable can be obtained, for example, when in step S202
Between variable be assigned on November 11st, 2016, the assignment of the time variable for getting here is on November 11st, 2016, so
Afterwards, Webpage content corresponding with November 11st, 2016 is searched.
Step S207, returns to Webpage content, so that user browses Webpage to client.
Server is returned in Webpage after corresponding Webpage content is found according to time variable to client
Hold, client represents the Webpage content that server is returned, allows the user to browse the webpage of corresponding time to user
The page, if the Webpage sometime that user browses such that it is able to which it is different whether confirmation Webpage sometime occurs
Often, when occurring abnormal, it is possible to use the time update of family, during ensureing that the time reaches, Webpage represents normally.
For example, system time is on November 5th, 2016, user sends the system for carrying Taobao's webpage using client
The web access requests of one URLs, server receives the unified resource for the carrying Taobao's webpage positioning that client sends
Whether the web access requests of symbol, time parameter is included according to the relevant position of preset format parsing URL, if
It is that time variable is then entered as the corresponding temporal information of time parameter, on November 11st, 1;If it is not, then by the time
Variable assignments is null value, then judges whether time variable is null value, if so, obtaining system time:On November 5th, 2016, and
The content of pages of Taobao's webpage corresponding with November 5th, 2016 is searched afterwards;If it is not, then obtaining the assignment 2016 of time variable
November 11, then search the content of pages of Taobao's webpage corresponding with November 11st, 2016;By on November 11st, 2016 or
Person's content of pages of Taobao's webpage on November 5 in 2016 returns to client, and client represents server return to user
The content of pages of Taobao's webpage on November 5 of on November 11st, 2016 or 2016, allows the user to preview 2016 11
The Webpage on the moon 11, or access Taobao's webpage on November 5 in 2016.
In a kind of optional embodiment of the invention, Webpage content can include loose-leaf content, such as Taobao
Or double 11 shopping Carnivals that the website such as Jingdone district was held on November 11, now Webpage content will include on double
The loose-leaf content of 11 shopping Carnivals.
Wherein, server has prestored movable mark, activity time and loose-leaf content, obtains time variable
After assignment, in addition it is also necessary to judge whether the assignment of time variable matches with the default activity time, if so, then searching and time variable
The activity time corresponding loose-leaf content that matches of assignment, then return to the net comprising loose-leaf content to client
Page content of pages, so that user carries out Webpage preview, that is to say, that user's preview in advance can be made comprising in loose-leaf
The Webpage content of appearance, to determine whether Webpage exception occurs such that it is able to when ensureing that the activity time reaches, webpage page
Face each several part is normal.
According to the method that the above embodiment of the present invention is provided, by the phase that URL is parsed according to preset format
Answer whether position determines whether user wants preview Webpage sometime comprising time parameter, if unified resource is fixed
The relevant position of position symbol includes time parameter, then time variable is entered as into the corresponding temporal information of time parameter, if unified money
The relevant position of source finger URL does not include time parameter, and time variable is entered as into null value, judges whether time variable is null value,
If so, then obtaining system time, Webpage content corresponding with system time is then searched, if it is not, obtaining time variable
Assignment, then searches Webpage content corresponding with the assignment of time variable, and Webpage content is returned to client, so that
User is capable of the Webpage of preview corresponding time, overcomes the Webpage for being only capable of accessing current time in the prior art, and
Cannot the preview specific time Webpage defect.
Fig. 3 shows the structural representation of Webpage pre-viewing device according to an embodiment of the invention.Such as Fig. 3 institutes
Show, the device includes:Receiver module 300, judge module 310, assignment module 320, searching modul 330 and sending module 340.
Receiver module 300, is suitable to receive the web page access of the URL for carrying webpage that client sends
Request.
URL (Uniform Resource Locator, URL) is commonly called as " web page address ", as in network
On doorplate, be the address (Address) of the resource of standard on Internet (Internet).
Specifically, user can carry out web page access, user end to server by way of being input into URL in address field
Transmission carries the web access requests of the URL of webpage, and server receives the webpage of the URL for carrying webpage that client sends
Access request.For example, user desires access to Taobao's webpage, then http can be input into:https://taobao.com is to Taobao's webpage
Conduct interviews, be merely illustrative here certainly, without any restriction effect, certainly, user can also be defeated as needed
Enter to meet other URL of URL grammer.
Whether judge module 310, be suitable to judge in URL comprising time parameter.
Wherein, time parameter is used to define the time, and in the present embodiment, user can according to actual needs in inputs domain name
During etc. information, time parameter, and the corresponding temporal information of input time parameter are also defined.Specifically, if user thinks that preview is a certain
The Webpage of time, then can be when URL be input into, input time parameter and the corresponding temporal information of the time parameter;If
User is only that online accesses webpage usually, without preview Webpage sometime, then only inputs domain name etc. can be believed
Breath, and without input time parameter and the corresponding temporal information of the time parameter.
Specifically, after the web access requests of the URL for carrying webpage of client transmission are received, visited from the webpage
Ask and extract URL in request, and whether judge in the URL comprising time parameter, judge whether include time parameter in URL here
Primarily to determining whether user wants preview Webpage sometime, if including time parameter in the URL, illustrate to use
Want the Webpage that preview time is the corresponding temporal information of the time parameter in family;If not including time parameter in the URL, say
Bright user is only normally to access webpage, does not do particular determination to the time for accessing the content of pages of webpage, therefore, it can return
Return Webpage content corresponding with system time.
Assignment module 320, if being entered as time variable comprising time parameter in being suitable to judge URL
The corresponding temporal information of time parameter.
Time variable is pre-defined in program code, and the assignment of time variable is that server returns to net to client
The foundation of page content of pages.In the case of in judging URL comprising time parameter, time variable is entered as time parameter pair
The temporal information answered.
Searching modul 330, is suitable to, according to time variable, search Webpage content.
After time variable to be entered as the corresponding temporal information of time parameter, server can come according to time variable
Webpage content corresponding with the assignment of the time variable is searched, that is, searches webpage corresponding with the temporal information of user input
Content of pages.
Sending module 340, is suitable to return to Webpage content to client, so that user carries out Webpage preview.
Server is returned in Webpage after corresponding Webpage content is found according to time variable to client
Hold, client represents the Webpage content that server is returned, allows the user to the webpage of preview corresponding time to user
The page.
For example, system time be on November 5th, 2016, but user want in advance preview once Taobao in 2016
The Webpage on November 11, user can be when URL be input into, input time parameter temporal information corresponding with the time parameter
On November 11st, 2016, server please in the web page access for receiving the URL for carrying webpage that client sends
After asking, judge whether include time parameter in URL, if so, time variable then is entered as into November 11 in 2016
Day;According to time variable:On November 11st, 2016, the content of pages of Taobao's webpage is searched, by the Taobao on November 11 in 2016
The content of pages of webpage returns to client, and client represents the content of pages of Taobao's webpage that server is returned to user,
Allow the user to the preview Webpage on November 11 in 2016.
According to the device that the above embodiment of the present invention is provided, by judging whether join comprising the time in URL
Count to determine whether user wants preview Webpage sometime, if including time parameter in URL,
Time variable is entered as the corresponding temporal information of time parameter, according to time variable, Webpage content is searched, to client
Webpage content is returned, the Webpage of preview corresponding time is allowed the user to, is overcome and be only capable of in the prior art access
The Webpage of current time, and cannot the preview specific time Webpage defect.
Fig. 4 shows the structural representation of Webpage pre-viewing device in accordance with another embodiment of the present invention.Such as Fig. 4 institutes
Show, the device includes:Receiver module 400, judge module 410, assignment module 420, searching modul 430 and sending module 440.
Receiver module 400, is suitable to receive the web page access of the URL for carrying webpage that client sends
Request.
Whether judge module 410, be suitable to the relevant position according to preset format parsing URL comprising the time
Parameter.
Assignment module 420, if being entered as time variable comprising time parameter in being suitable to judge URL
The corresponding temporal information of time parameter;If not including time parameter in judging URL, by time variable assignment
It is null value.
Searching modul 430 is specifically included:Judging unit 431, is suitable to judge whether time variable is null value.
Searching unit 432, if being suitable to judge that time variable, for null value, obtains system time, when then searching with system
Between corresponding Webpage content;If judging, time variable, for null value, obtains the assignment of time variable, then search and when
Between variable the corresponding Webpage content of assignment.
Sending module 440, is suitable to return to Webpage content to client, so that user carries out Webpage preview.
Additionally, Webpage content can include loose-leaf content;
Searching unit 432 is further adapted for:Judge whether the assignment of time variable matches with the default activity time;If
It is then to search loose-leaf content corresponding with the activity time that the assignment of time variable matches;
Sending module 440 is further adapted for:The Webpage content comprising loose-leaf content is returned to client, for
User carries out Webpage preview.
According to the device that the above embodiment of the present invention is provided, by the phase that URL is parsed according to preset format
Answer whether position determines whether user wants preview Webpage sometime comprising time parameter, if unified resource is fixed
The relevant position of position symbol includes time parameter, then time variable is entered as into the corresponding temporal information of time parameter, if unified money
The relevant position of source finger URL does not include time parameter, and time variable is entered as into null value, judges whether time variable is null value,
If so, then obtaining system time, Webpage content corresponding with system time is then searched, if it is not, obtaining time variable
Assignment, then searches Webpage content corresponding with the assignment of time variable, and Webpage content is returned to client, so that
User is capable of the Webpage of preview corresponding time, overcomes the Webpage for being only capable of accessing current time in the prior art, and
Cannot the preview specific time Webpage defect.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist
Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any
Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed
One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) realize in Webpage preview device according to embodiments of the present invention
The some or all functions of a little or whole parts.The present invention is also implemented as performing method as described herein
Some or all equipment or program of device (for example, computer program and computer program product).Such realization
Program of the invention can be stored on a computer-readable medium, or can have the form of one or more signal.This
The signal of sample can be downloaded from internet website and obtained, or be provided on carrier signal, or be carried in any other form
For.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.