CN104731817B - A kind of webpage exhibiting method and device - Google Patents

A kind of webpage exhibiting method and device Download PDF

Info

Publication number
CN104731817B
CN104731817B CN201310718142.7A CN201310718142A CN104731817B CN 104731817 B CN104731817 B CN 104731817B CN 201310718142 A CN201310718142 A CN 201310718142A CN 104731817 B CN104731817 B CN 104731817B
Authority
CN
China
Prior art keywords
label
web page
target
link information
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310718142.7A
Other languages
Chinese (zh)
Other versions
CN104731817A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310718142.7A priority Critical patent/CN104731817B/en
Priority to TW103143726A priority patent/TWI519980B/en
Priority to PCT/CN2014/094272 priority patent/WO2015096660A1/en
Publication of CN104731817A publication Critical patent/CN104731817A/en
Application granted granted Critical
Publication of CN104731817B publication Critical patent/CN104731817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Abstract

The embodiment of the invention discloses a kind of webpage exhibiting method and device, wherein method can include: whether the connection label for judging current web page includes target labels for connecting next webpage;It when the judging result, which is, is, obtains that the target labels are corresponding, and meets the target URL link information of similarity rule with the uniform resource position mark URL link information of the current web page;The web page contents of the target URL link information are loaded to local;When receiving the request for being used to connect next webpage of input, from the local web page contents for obtaining the target URL link information, and show the web page contents of the target URL link information.The efficiency that terminal shows webpage can be improved in the embodiment of the present invention.

Description

A kind of webpage exhibiting method and device
Technical field
The present invention relates to Internet technical field more particularly to a kind of webpage exhibiting method and devices.
Background technique
With the development of internet technology, the content of webpage is also more and more abundant.In actual application, webpage is provided Server often because a certain webpage can be issued to terminal by certain reason by way of paging, i.e., server will be originally The web page contents for belonging to a content type webpage are split as multiple webpages, and by the way that these webpages are repeatedly issued to terminal. Such as: the screen of terminal is too small, i.e., when the screen of terminal can not once show all the elements of content type webpage, server will The content type webpage is divided into multiple webpages, and requests this multiple webpage being sent to terminal by the multi-pass operation of terminal; Such as: when the network flow of terminal and the excessively slow rendering speed of browser, i.e., the time of the browser rendering content type webpage compared with Long, which will be divided into multiple webpages by server, and be requested by the multi-pass operation of terminal by this multiple net Page is sent to terminal.Entire content type net can repeatedly be showed to server pull web page contents by above-mentioned technology terminal Page, however, being all after user has browsed one of webpage in this process, terminal just receives the operation of user's input, passes through The operation is to the next webpage of server pull.In this way when receiving the operation for being used to show next webpage of user's input Just to server pull, during pulling often because network cause cause to pull process it is slow, it is seen then that at present eventually The efficiency that end shows webpage is relatively low.
Summary of the invention
The embodiment of the invention provides a kind of webpage exhibiting method and devices, and the efficiency that terminal shows webpage can be improved.
The first aspect of the embodiment of the present invention provides kind of a webpage exhibiting method, comprising:
Whether the connection label for judging current web page includes target labels for connecting next webpage, wherein the company Connecing label is label for connecting webpage, the web page contents of next webpage be located at the current web page web page contents it Afterwards, and it is continuous with the web page contents of the current web page;
It when the judging result, which is, is, obtains that the target labels are corresponding, and is provided with the unified of the current web page Source finger URL (Uniform Resource Locator, URL) link information meets the target URL link letter of similarity rule Breath;
The web page contents of the target URL link information are loaded to local;
When receiving the request for being used to connect next webpage of input, the target URL link is obtained from local The web page contents of information, and show the web page contents of the target URL link information.
The second aspect of the embodiment of the present invention provides kind of a webpage demonstration device, comprising: judgment module obtains module, load Module and display module, in which:
The judgment module, for judging whether the connection label of current web page includes target for connecting next webpage Label, wherein the connection label is the label for connecting webpage, and the web page contents of next webpage are located at described current After the web page contents of webpage, and it is continuous with the web page contents of the current web page;
The acquisition module, for it is corresponding to obtain the target labels when the judging result of the judgment module, which is, is , and the target URL link for meeting similarity rule with the uniform resource position mark URL link information of the current web page is believed Breath;
Loading module, for loading the web page contents for obtaining the target URL link information that module obtains to local;
Display module, for obtaining institute from local when receiving the request for being used to connect next webpage of input The web page contents of the target URL link information of loading module load are stated, and show the webpage of the target URL link information Content.
In above-mentioned technical proposal, judge whether the connection label of current web page includes target mark for connecting next webpage Label;It when the judging result, which is, is, obtains that the target labels are corresponding, and is positioned with the unified resource of the current web page Symbol URL link information meets the target URL link information of similarity rule;In the webpage for loading the target URL link information Hold to local;When receiving the request for being used to connect next webpage of input, the target URL link is obtained from local The web page contents of information, and show the web page contents of the target URL link information.It may be implemented receiving input in this way Before request for connecting next webpage, the web page contents of next webpage are just loaded onto local, are asked when receiving this When asking, so that it may directly from local acquisition, so as to improve the efficiency that terminal shows webpage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of webpage exhibiting method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another webpage exhibiting method provided in an embodiment of the present invention;
Fig. 3 is that the present invention implements a kind of optional web interface schematic diagram provided;
Fig. 4-Fig. 7 is a kind of optional example schematic provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of webpage demonstration device provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another webpage demonstration device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of flow diagram of webpage exhibiting method provided in an embodiment of the present invention, such as Fig. 1 institute Show, comprising the following steps:
Whether S101, the connection label for judging current web page include target labels for connecting next webpage, if so, Step S102 is executed, if it is not, then terminating process;Wherein, the connection label is the label for connecting webpage, next net The web page contents of page are located at after the web page contents of the current web page, and continuous with the web page contents of the current web page.
It specifically can be and show above-mentioned current web page when executing step S101, wherein the current web page can be content The webpage in multiple webpages that type webpage is split, content type webpage refer to that web page contents are more, and server can be by these nets Webpage of the page content arrangement in multiple webpages, i.e. content type webpage refer to that server needs to be split as the webpage of multiple webpages. Such as: content type webpage can disposably show entire webpage when showing in the terminal (such as: computer) of large screen, but The content type webpage in the terminal (such as: mobile phone) of the small screen when showing, it may be necessary to can just be showed by multiple webpages All web page contents of the content type webpage out.In addition, above-mentioned current web page can also be generic web page, that is, fractionation is not needed Webpage.
Optionally, above-mentioned connection label is that can specifically refer to for connecting the label of webpage, be can connect after being clicked The label of one webpage, such as: above-mentioned connection label may include a label and/or button (button) label, the two labels After being clicked, browser can all be connected to another webpage, wherein a label and button label are the middle public affairs of web technologies The technical term known, this does not elaborate.In addition, the above-mentioned target labels for connecting next webpage can specifically refer to It may be coupled to the label of above-mentioned next webpage after being clicked.
Optionally, when above-mentioned current web page is the webpage that content type webpage includes, above-mentioned next webpage can be this The next webpage for the current web page that content type webpage includes.For example, above-mentioned current web page is page 1 of content type webpage, So above-mentioned next webpage can be with page 2 for the content type webpage.When above-mentioned current web page is generic web page, under above-mentioned One webpage can be next webpage of the current web page.Such as: above-mentioned current web page is the net of the 10th chapters and sections of certain novel Page, then above-mentioned next webpage can be with the webpage of the Chapter 11 section for the novel.
S102, the acquisition target labels are corresponding, and meet similar metric to the URL link information of the current web page Target URL link information then.
Optionally, it is above-mentioned meet similarity rule and can be refer to that the domain name that two link informations include is identical, path phase It together, and include at least one identical query argument.
Optionally, above-mentioned URL link information specifically can be the address URL.Wherein, above-mentioned domain name, path and query argument Belong to the parameter in URL link information.Due to the URL link information of above-mentioned target URL link information and above-mentioned current web page Meet above-mentioned similarity rule, i.e., the domain name of above-mentioned target URL link information and the URL link information field famous prime minister of current web page Together, the path of above-mentioned target URL link information and the URL link information path of current web page are identical, and above-mentioned target URL link At least one query argument of information is identical as a query argument of the URL link information of current web page.It thus can be true Fixed above-mentioned next webpage and above-mentioned current web page are the webpage of the same theme or the same content type webpage.In addition, above-mentioned The corresponding link information of target labels can also include other link informations, example in addition to including above-mentioned target URL link information Such as: the link information of advertisement or the link information of interference.And the link information of the link information interference of advertisement and above-mentioned current The URL link information of webpage is unsatisfactory for similarity rule, can also will remove above-mentioned target mark by step s102 in this way Corresponding link information link information in addition to including above-mentioned target URL link information is signed, without obtaining above-mentioned other link letters Breath can achieve the effect saved power consumption and save Internet resources in this way.
S103, the load target URL link information web page contents to local.
The step, which specifically can be, is sent to server for the target URL link information on backstage, then receives server hair The web page contents for the target URL link information sent, and web page contents will be received and cached to local.
S104 obtains the target URL when receiving the request for being used to connect next webpage of input, from local The web page contents of link information, and show the web page contents of the target URL link information.
It can be realized before receiving the request for connecting next webpage through the above steps, it just will be next The content of webpage is loaded onto local, i.e., when user browses above-mentioned current web page, the content of next webpage is loaded onto local.When When receiving the request for connecting next webpage, so that it may directly from local acquisition, due to not needed at this time to service Device obtains the web page contents of next webpage, so as to improve the efficiency for showing webpage.Wherein, above-mentioned described next for connecting The request of webpage, which specifically can be, clicks request caused by above-mentioned target labels, such as: user clicks above-mentioned target labels institute The request of input.
Optionally, the above method specifically can be applied to any equipment for having communication and showing webpage function, i.e., this sets It is standby that the above method may be implemented, such as: tablet computer, mobile phone, electronic reader, remote controler, personal computer (Personal Computer, PC), the smart machine of laptop, mobile unit, Web TV, wearable device etc. with network function.
In above-mentioned technical proposal, judge whether the connection label of current web page includes target mark for connecting next webpage Label;It when the judging result, which is, is, obtains that the target labels are corresponding, and is positioned with the unified resource of the current web page Symbol URL link information meets the target URL link information of similarity rule;In the webpage for loading the target URL link information Hold to local;When receiving the request for being used to connect next webpage of input, the target URL link is obtained from local The web page contents of information, and show the web page contents of the target URL link information.It may be implemented receiving input in this way Before request for connecting next webpage, the web page contents of next webpage are just loaded onto local, are asked when receiving this When asking, so that it may directly from local acquisition, so as to improve the efficiency that terminal shows webpage.
Referring to FIG. 2, Fig. 2 is the flow diagram of another webpage exhibiting method provided in an embodiment of the present invention, such as Fig. 2 It is shown, comprising the following steps:
Whether S201, the connection label for judging the current web page include containing the keyword for indicating the next webpage of connection Target labels, if so, S202 is thened follow the steps, if it is not, thening follow the steps S203.
Optionally, above-mentioned keyword specifically can be pre-set, and step S201 is further according to the pre-set key Word goes whether the connection label for judging the current web page includes the target containing the keyword for indicating to connect next webpage Label.In addition, above-mentioned keyword includes but is not limited to following keywords listed, the present embodiment is not construed as limiting this:
Lower one page, nextpage, lower chapter, next chapter, lower, next, lower section, Xia Yijie, remaining full text etc..
S202, using the target labels as the target labels for being used to connect next webpage.
That is step S202 is using the target labels that step S201 judges as the target labels for being used to connect next webpage.
S203, using the connection label of the default label condition of satisfaction of the current web page as being used to connect next webpage Target labels.
Optionally, above-mentioned default label condition can specifically include:
Hypertext quotes (Hypertext Reference, href) attribute as not actively connection attribute, and click (on Click) script of event is java script (JavaScript), and height is consistent at least one connection height of label, and Only one label includes more than two numbers in the label of father node and the label of the brotgher of node.
That is the href attribute for the target labels that step S203 judges is not actively connection attribute, the on of the target labels The script of click event is java script (JavaScript), and the height of the target labels connect the height of label at least one Degree is consistent, only one label includes more than two numbers in the label of the father node of the target labels and the label of the brotgher of node Word.In addition, it is javascript:(0 that above-mentioned href attribute, which is that actively connection attribute not can be href attribute specifically) or Javascript:: or # etc., wherein javascript:(0) or javascript:: or # is web technologies protocol definition Href attribute.Only one label includes that more than two numbers are specific in the label of above-mentioned father node and the label of the brotgher of node It can be, content included by only one label is two in the label of the father node of target labels and the label of the brotgher of node Above number, the i.e. label only will include two or the number more than two.In addition, above-mentioned father node can be three layers of father Node, the above-mentioned brotgher of node specifically can be three layers of brotgher of node.
Optionally, step S203 can specifically include:
A) obtaining href attribute in the connection label of the current web page is not actively connection attribute, and on click event It is the first candidate label for java script (JavaScript);
D) the candidate label of at least one set second is obtained from the described first candidate label, the described second candidate label includes extremely The candidate label of few two height consistent first;
C) from the candidate label of at least one set of second candidate label selection target second, and the target second is candidate The label of specific position is as the target labels for connecting next webpage in label, wherein the candidate label of the target second The label of the father node and the label of the brotgher of node in only one label include more than two numbers.
Wherein, the above-mentioned second candidate label specifically can be at least two labels, and the height one of at least two label It causes, above-mentioned height specifically can be height of the label the location of in webpage.It in this way can by step a) and step b) It is consistent to select at least one set of height, and href attribute is not actively connection attribute, and on click event is java script (JavaScript) the candidate label of second.By step c) target second can be selected from the candidate label of at least one set second Candidate label, then using the mark of the specific position in target candidate as above-mentioned target labels, wherein above-mentioned specific position is specific It can be pre-set position, such as: the specific position specifically can be the label on the right, i.e., above-mentioned target second is candidate The label of position on the right is as above-mentioned target labels in label.In addition, step c) specifically can be from described at least one set of Only one label includes more than two numbers in the label of two candidate label selection father nodes and the label of the brotgher of node Second candidate label, then by only one label in the label of father node and the label of the brotgher of node include more than two numbers The second candidate label as the candidate label of above-mentioned target second.Due in practical applications, for connecting the mark of next webpage The label of the father node of label and the label of the brotgher of node can all have the label which page display current web page is, such as: it is above-mentioned Current web page is page 1 of content type webpage, and the content type webpage is split as page 7, then, for connecting next webpage Label the label of father node and the label of the brotgher of node just will include one for indicate current web page be content type webpage Page 7 in first page, such as: 1/7 this label, the i.e. label include that " 1 " and " 7 " the two are digital.Specifically it can be As shown in figure 3, webpage shown in Fig. 3 is above-mentioned current web page, 301 and 302 labels indicated are to respectively indicate into page up With the label for entering lower one page, 303 labels indicated are in the label and the brotgher of node of father node including more than two numbers The label of word, the label that such step above-mentioned steps may be selected by out 302 expressions is above-mentioned target labels.
By foregoing description can realize by connect label attribute and position, father node, the brotgher of node spy Sign obtains above-mentioned target labels.
Optionally, above-mentioned default label condition can specifically include:
Hypertext markup language (Hyper Text Mark-up Language, HTML) in href attribute is integer, and Height is consistent at least one connection height of label, and only one label includes more than two numbers in the label of father node Word.
It can be the HTML in the href attribute for the target labels that step S203 judges specifically as integer, and the target mark The height of label is consistent at least one connection height of label, and only one label in the label of the father node of the target labels Including more than two numbers.In addition, the father node specifically can be two layers of father node.
Optionally, step S203 can specifically include:
D) the first candidate label that the HTML in the connection label of the current web page in href attribute is integer is obtained;
E) the candidate label of at least one set second is obtained from the described first candidate label, the described second candidate label includes extremely The candidate label of few two height consistent first;
F) from the candidate label of at least one set of second candidate label selection target second, and the target second is candidate The label of specific position is as the target labels for connecting next webpage in label, wherein the candidate label of the target second The father node label in only one label include more than two numbers.
Wherein, the above-mentioned second candidate label specifically can be at least two labels, and the height one of at least two label It causes, above-mentioned height specifically can be height of the label the location of in webpage.It in this way can by step d) and step e) It is consistent to select at least one set of height, and the HTML in href attribute is the second candidate label of integer.It can by step f) To select the candidate label of target second from the candidate label of at least one set second, then by the mark of the specific position in target candidate As above-mentioned target labels, wherein the specific position specifically can be the label on the right, i.e., by the candidate label of above-mentioned target second The label of middle position on the right is as above-mentioned target labels.
It is above-mentioned can to realize that the feature of attribute and position, father node by connecting label is obtained by foregoing description Target labels.
S204, the acquisition target labels are corresponding, and meet similar metric to the URL link information of the current web page Target URL link information then.
It is optionally, described to meet that the domain name that similarity rule refer to that two link informations include is identical, path is identical, It and include at least one identical query argument.
Optionally, step S204 can specifically include:
Obtain mesh that is that the target labels include and meeting similarity rule with the URL link information of the current web page Mark URL link information.I.e. the target labels include above-mentioned target URL link information, and such step 204 can be directly from the mesh Above-mentioned target URL link information is got in the content that mark label includes.
Optionally, step S204 can specifically include:
Executing the target labels includes that java script (JavaScript) executes function, and intercepts and execute the Java foot This (JavaScript) executes the link information that function obtains, and when being truncated to the link information, stops executing the Java Script execution function;
It is obtained from the link information of the interception and meets similarity rule with the URL link information of the current web page Target URL link information.
I.e. above-mentioned target labels include that above-mentioned java script (JavaScript) executes function, wherein java script (JavaScript) executing function is that well known function does not elaborate herein in web technologies.Step S204 is actively executed should Java script (JavaScript) executes function, will obtain above-mentioned link information in the functional procedure of execution, work as step When S204 is truncated to the link information, it will stop executing the java script (JavaScript) and execute function, then from the link Above-mentioned target URL link information is got in information.It specifically can be to open when executing step S204 and monitor network request, with Ajax request is monitored to execute the function when step S204, which executes above-mentioned java script (JavaScript), executes function and obtain As a result it can all be monitored, it can interception in time executes above-mentioned java script (JavaScript) and executes the link that function obtains Information, when being truncated to the link information, so that it may stop executing the java script (JavaScript) execution function.Wherein, Above-mentioned Ajax request is well known technology in web technologies, is not elaborated herein.
It can realize through target labels to include that java script (JavaScript) executes function call through the above steps To above-mentioned target URL link information.
S205, when receive input for connecting the request of next webpage when, obtain the target URL from local The web page contents of link information, and show the web page contents of the target URL link information.
Optionally, after executing the step S204, before executing step S205, the method can also include:
Modify the image of above-mentioned target labels.To prompt the web page contents of next webpage of user's target labels to add It is loaded onto local.
Optionally, the above method specifically can be applied to any equipment for having communication and showing webpage function, i.e., this sets It is standby that the above method may be implemented, such as: tablet computer, electronic reader, remote controler, PC, laptop, vehicle-mounted is set mobile phone Standby, Web TV, wearable device etc. have the smart machine of network function.
In above-mentioned technical proposal, realize that first passing through keyword judges target labels on the basis of above example, when logical When target labels can not be judged by crossing keyword, then target labels are judged by above-mentioned default label condition, is mentioned in this way in realization While high terminal shows the efficiency of webpage, it can also realize and judge target labels by a variety of different embodiments.
It is illustrated below with a specific application example, please refers to Fig. 4, Fig. 5 and Fig. 6.
S401, terminal show certain webpage, i.e. user browses certain webpage;
S402, background program starting pre-read identification;
S403, judge whether containing keyword is pre-read, if so, S405 is thened follow the steps, if it is not, thening follow the steps S404; Wherein, the keyword that keyword can be equal to above example description is pre-read;
S404, judgement are to pre-read label, if so, S405 is thened follow the steps, if it is not, then terminating;
S405, relevant link information is obtained, that is, obtains above-mentioned keyword or pre-reads the corresponding link information of label;It should Link information specifically can be the target URL link information of above example description;
S406, the corresponding web page contents of the link information are loaded;
S407, the web page contents being loaded into are added to page browsing control device;
S408, page browsing apparatus show the web page contents of load, i.e. user passes through page browsing apparatus browsing load Web page contents.
Wherein, as shown in figure 5, step S403 may include:
S501, all a labels or button label for obtaining webpage;
S502, judge whether all a labels or button label include to pre-read keyword, if so, execute step S503, if It is no, then terminate;
S503, the link information for obtaining the label comprising pre-reading keyword;
Whether S504, the link information for judging label are URL link information, if so, S5010 is thened follow the steps, if it is not, then Execute step S505;
S505, judge label link information whether be URL link information java script execution function, if so, holding Row step S506, if it is not, then terminating;
S506, it monitors network request and monitors Ajax request;
S507, java script execution function is actively executed;
S508, the request for executing java script execution function is intercepted and captured, then cancels the request;
S509, the address information for executing the request that java script executes function, i.e. URL link information are obtained;
The similarity of S5010, the URL link information and current link that will acquire;
S5011, judge whether the URL link information obtained and current link judge similarity rule, if so, executing step Rapid S5012, if it is not, then terminating;
S5012, determine that the URL link information obtained is legal pre- read address.
Wherein, as shown in fig. 6, above-mentioned steps S404 can specifically include:
S601, all a or button labels for obtaining the acquisition of the webpage webpage;
S602, reservation href attribute are javascript:(0) either javascript:: or the label of #, and on The script of click event is a the and/or button label of java script (JavaScript);
S603, selection height equally only have 2 a or button labels, and traverse the father node of three layers of these labels And the brotgher of node;
Whether S607, the father node for judging above-mentioned selection and the brotgher of node judge digital judgement strategy, if so, executing step Rapid S608, if it is not, then terminating;Wherein, in the node that digital judgement strategy refers to the label of only one node only include two with On number;
S608, the above-mentioned height of execution equally only have the java script of the label on the right of 2 a or button labels to execute Function;
S609, it monitors network request and monitors Ajax request;
S6010, the address information that java script executes the request of function, i.e. URL link information are actively executed;
S6011, the request for executing java script execution function is intercepted and captured, then cancels the request;
S6012, the address information for executing the request that java script executes function, i.e. URL link information are obtained;
The similarity of S6013, the URL link information and current link that will acquire;
S6014, judge whether the URL link information obtained and current link judge similarity rule, if so, executing step Rapid S6015, if it is not, then terminating;
S6015, determine that the URL link information obtained is legal pre- read address.
Wherein, as shown in fig. 6, above-mentioned steps S404 specifically can also include:
S601, all a or button labels for obtaining the acquisition of the webpage webpage;
S604, retain the label that innerHTML is integer;
2 layers of S605, inquiry father node, it is height is consistent and tactic label preserves;
The consistent a or button label of S606, the label height also preserved, and traverse the father of three layers of these labels Node and the brotgher of node;
Whether S607, the father node for judging above-mentioned selection and the brotgher of node judge digital judgement strategy, if so, executing step Rapid S608, if it is not, then terminating;Wherein, in the node that digital judgement strategy refers to the label of only one node only include two with On number;
S608, the above-mentioned height of execution equally only have the java script of the label on the right of 2 a or button labels to execute Function;
S609, it monitors network request and monitors Ajax request;
S6010, the address information that java script executes the request of function, i.e. URL link information are actively executed;
S6011, the request for executing java script execution function is intercepted and captured, then cancels the request;
S6012, the address information for executing the request that java script executes function, i.e. URL link information are obtained;
The similarity of S6013, the URL link information and current link that will acquire;
S6014, judge whether the URL link information obtained and current link judge similarity rule, if so, executing step Rapid S6015, if it is not, then terminating;
S6015, determine that the URL link information obtained is legal pre- read address.
Wherein, as shown in fig. 7, step S407 may include:
S701, it pre-reads the page and pulls and finish;
S702, it is controlled in caching page cache to the page is pre-read;
S703, the forwarding button for updating browser, and that label that webpage is pre-read is modified by highlighted or shade;
S704, when the user clicks forwarding button or when pre-reading label, then show the page is pre-read, and current page It stashes.Wherein, " webpage " and " page " does not distinguish in the embodiment of the present invention, i.e. webpage " and " page " indicate content It is identical.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is for executing embodiment of the present invention method one to two The method of realization, for ease of description, only parts related to embodiments of the present invention are shown, and particular technique details does not disclose , please refer to the embodiment of the present invention one and embodiment two.
Referring to FIG. 8, Fig. 8 is a kind of structural schematic diagram of webpage demonstration device provided in an embodiment of the present invention, such as Fig. 8 institute Show, comprising: judgment module 81 obtains module 82, loading module 83 and display module 84, in which:
Judgment module 81, for judging whether the connection label of current web page includes target mark for connecting next webpage Label, wherein the connection label is the label for connecting webpage, and the web page contents of next webpage are located at the current net After the web page contents of page, and it is continuous with the web page contents of the current web page;
Module 82 is obtained, for it is corresponding to obtain the target labels when the judging result of the judgment module 81, which is, is , and meet with the URL link information of the current web page target URL link information of similarity rule.
It is optionally, above-mentioned to meet that the domain name that similarity rule refer to that two link informations include is identical, path is identical, It and include at least one identical query argument;
Loading module 83, for loading the web page contents for the target URL link information that the acquisition module 83 obtains to originally Ground;
Display module 84, for when receive input for connect next webpage request when, from local acquisition The web page contents of the target URL link information of the loading module load, and show the net of the target URL link information Page content.
Optionally, above-mentioned connection label may include a label and/or button label.
Optionally, as shown in figure 9, the judgment module 81 may include:
First judging unit 811, for judging whether the connection label of the current web page includes containing under expression connection The target labels of the keyword of one webpage;
First determination unit 812, for when the judging result of first judgment sub-unit 811 be when, by the mesh Label is marked as the target labels for connecting next webpage;
Second determination unit 813 is used for when 811 judging result of the first judgment sub-unit is no, will be described current The connection label of the default label condition of the satisfaction of webpage is as the target labels for connecting next webpage.
Optionally, obtain module 82, for when the judging result of second judgment unit 813 be when or determination unit 812 is corresponding as the target labels when target labels for being used to connect next webpage, are obtained using the target labels, and with The uniform resource position mark URL link information of the current web page meets the target URL link information of similarity rule.
Optionally, the default label condition may include:
Href attribute is not actively connection attribute, and the script of on click event is java script, and height and at least One connection label height it is consistent, and in the label of father node and the label of the brotgher of node only one label include two with On number;
Second determination unit 813 may include:
First obtains subelement (being not drawn into attached drawing), href attribute in the connection label for obtaining the current web page For not actively connection attribute, and it is the first candidate label that on click event, which is java script,;
Second obtains subelement (being not drawn into attached drawing), for obtaining at least one set second from the described first candidate label Candidate label, the described second candidate label include at least two the consistent first candidate labels of height;
First determines subelement (being not drawn into attached drawing), waits from the described at least one set of second candidate label selection target second Label is selected, and using the label of specific position in the candidate label of the target second as the target labels, wherein the target Only one label includes more than two numbers in the label of the father node and the label of the brotgher of node of second candidate label Word.
By foregoing description can realize by connect label attribute and position, father node, the brotgher of node spy Sign obtains above-mentioned target labels.
Optionally, the default label condition may include:
HTML in href attribute is integer, and height is consistent at least one connection height of label, and father node Only one label includes more than two numbers in label;
Second determination unit 813 may include:
Third obtains subelement (being not drawn into attached drawing), and hypertext draws in the connection label for obtaining the current web page With the first candidate label that the HTML in href attribute is integer;
4th obtains subelement (being not drawn into attached drawing), for obtaining at least one set second from the described first candidate label Candidate label, the described second candidate label include at least two the consistent first candidate labels of height;
Second determines subelement (being not drawn into attached drawing), for from least one set of second candidate label selection target the Two candidate labels, and using the label of specific position in the candidate label of the target second as the target labels, wherein it is described Only one label includes more than two numbers in the label of the father node of the candidate label of target second.
It is above-mentioned can to realize that the feature of attribute and position, father node by connecting label is obtained by foregoing description Target labels.
Optionally, the acquisition module 82 can be also used for obtaining it is that the target labels include and with the current web page URL link information meet the target URL link information of similarity rule;Or
The acquisition module 82 can be also used for executing the target labels including that java script executes function, and intercepts and hold The row java script executes the link information that function obtains, and when being truncated to the link information, stops executing the Java Script execution function;And it is obtained from the link information of the interception and meets phase with the URL link information of the current web page Like the target URL link information of metric then.
It can realize through target labels to include that java script (JavaScript) executes function call through the above steps To above-mentioned target URL link information.
In above-mentioned technical proposal, judge whether the connection label of current web page includes target mark for connecting next webpage Label;It when the judging result, which is, is, obtains that the target labels are corresponding, and is positioned with the unified resource of the current web page Symbol URL link information meets the target URL link information of similarity rule;In the webpage for loading the target URL link information Hold to local;When receiving the request for being used to connect next webpage of input, the target URL link is obtained from local The web page contents of information, and show the web page contents of the target URL link information.It may be implemented receiving input in this way Before request for connecting next webpage, the web page contents of next webpage are just loaded onto local, are asked when receiving this When asking, so that it may directly from local acquisition, so as to improve the efficiency that terminal shows webpage.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (9)

1. a kind of webpage exhibiting method characterized by comprising
Whether the connection label for judging current web page includes the target labels containing the keyword for indicating to connect next webpage, if It is, then using the target labels as the target labels for being used to connect next webpage;If it is not, then by the satisfaction of the current web page The connection label of default label condition is as the target labels for connecting next webpage, wherein the default label condition packet Include: it is not actively connection attribute that hypertext, which quotes href attribute, and the script for clicking on click event is java script, and high Degree is consistent at least one connection height of label, and only one label packet in the label of father node and the label of the brotgher of node Include more than two numbers;The current web page is a webpage in multiple webpages that content type webpage is split, the connection Label is label for connecting webpage, the web page contents of next webpage be located at the current web page web page contents it Afterwards, and it is continuous with the web page contents of the current web page;
Obtain target that is that the target labels include and meeting similarity rule with the URL link information of the current web page URL link information, the condition for meeting similarity rule includes: the domain name of the target URL link information and the URL of current web page Link information domain name is identical, and the path of the target URL link information and the URL link information path of current web page are identical, and One query argument phase of at least one query argument of the target URL link information and the URL link information of current web page Together;Or executing the target labels includes that java script executes function, and intercepts and execute the java script execution function call The link information arrived, and when being truncated to the link information, stop executing the java script execution function;From the interception The target URL link information for meeting similarity rule with the URL link information of the current web page is obtained in link information;
The web page contents of the target URL link information are loaded to local;
When receiving the request for being used to connect next webpage of input, the target URL link information is obtained from local Web page contents, and show the web page contents of the target URL link information.
2. the method as described in claim 1, it is characterised in that:
It is described that the satisfaction of the current web page is preset into the connection label of label condition as the target for being used to connect next webpage Label, comprising:
Obtaining in the connection label of the current web page href attribute is not actively connection attribute, and on click event is Java Script is the first candidate label;
The candidate label of at least one set second is obtained from the described first candidate label, the described second candidate label includes at least two Highly consistent first candidate label;
From the described at least one set of second candidate label of candidate label selection target second, and will be in the candidate label of the target second The label of specific position is as the target labels for connecting next webpage, wherein the candidate label of the target second it is described Only one label includes more than two numbers in the label of father node and the label of the brotgher of node.
3. the method as described in claim 1, which is characterized in that the default label condition includes:
It is integer that hypertext, which quotes the hypertext markup language HTML in href attribute, and height connect label at least one Height is consistent, and only one label includes more than two numbers in the label of father node;
It is described that the satisfaction of the current web page is preset into the connection label of label condition as the target for being used to connect next webpage Label, comprising:
Obtain the first candidate mark that the HTML in the connection label of the current web page in hypertext reference href attribute is integer Label;
The candidate label of at least one set second is obtained from the described first candidate label, the described second candidate label includes at least two Highly consistent first candidate label;
From the described at least one set of second candidate label of candidate label selection target second, and will be in the candidate label of the target second The label of specific position is as the target labels for connecting next webpage, wherein the candidate label of the target second it is described Only one label includes more than two numbers in the label of father node.
4. method as claimed in any one of claims 1-3, which is characterized in that the connection label includes:
A label and/or button button label.
5. method as claimed in any one of claims 1-3, which is characterized in that the similarity rule that meets refers to two chains It connects that the domain name that information includes is identical, path is identical, and includes at least one identical query argument.
6. a kind of webpage demonstration device characterized by comprising judgment module obtains module, loading module and display module, Wherein:
The judgment module, for judging whether the connection label of current web page includes target mark for connecting next webpage Label, wherein default label condition includes: that hypertext quotes href attribute as not actively connection attribute, and click on click thing The script of part is java script, and height is consistent at least one connection height of label, and the label of father node and brother's section Only one label includes more than two numbers in the label of point;The current web page is multiple nets that content type webpage is split A webpage in page, the connection label are the label for connecting webpage, and the web page contents of next webpage are located at institute After the web page contents for stating current web page, and it is continuous with the web page contents of the current web page;
The judgment module includes:
First judging unit, for judging whether the connection label of the current web page includes connecting next webpage containing expression The target labels of keyword;
First determination unit, for when the judging result of first judgment sub-unit be when, using the target labels as For connecting the target labels of next webpage;
Second determination unit is used for when the first judgment sub-unit judging result is no, by the satisfaction of the current web page The connection label of default label condition is as the target labels for connecting next webpage;
The acquisition module meets for obtaining URL link information that the target labels include and with the current web page The target URL link information of similarity rule, the condition for meeting similarity rule includes: the domain of the target URL link information Name, the path of the target URL link information and the URL chain of current web page identical as the URL link information field name of current web page Connect that information path is identical, and the URL link information of at least one query argument of the target URL link information and current web page A query argument it is identical;Or the acquisition module includes that java script executes function for executing the target labels, And it intercepts and executes the link information that the java script execution function obtains, and when being truncated to the link information, stop executing The java script executes function;And it obtains from the link information of the interception and believes with the URL link of the current web page Breath meets the target URL link information of similarity rule;
The loading module, for loading the web page contents for obtaining the target URL link information that module obtains to local;
The display module, for obtaining institute from local when receiving the request for being used to connect next webpage of input The web page contents of the target URL link information of loading module load are stated, and show the webpage of the target URL link information Content.
7. device as claimed in claim 6, it is characterised in that:
Second determination unit, comprising:
First obtains subelement, and href attribute is not actively connection attribute in the connection label for obtaining the current web page, And it is the first candidate label that on click event, which is java script,;
Second obtains subelement, for obtaining the candidate label of at least one set second from the described first candidate label, described second Candidate label includes at least two the consistent first candidate labels of height;
First determines subelement, from the candidate label of at least one set of second candidate label selection target second, and by the mesh The label of specific position is as the target labels for connecting next webpage in the candidate label of mark second, wherein the target the Only one label includes more than two numbers in the label of the father node and the label of the brotgher of node of two candidate labels.
8. device as claimed in claim 6, which is characterized in that the default label condition includes:
It is integer that hypertext, which quotes the hypertext markup language HTML in href attribute, and height connect label at least one Height is consistent, and only one label includes more than two numbers in the label of father node;
Second determination unit, comprising:
Third obtains subelement, the HTML in the connection label for obtaining the current web page in hypertext reference href attribute For the first candidate label of integer;
4th obtains subelement, for obtaining the candidate label of at least one set second from the described first candidate label, described second Candidate label includes at least two the consistent first candidate labels of height;
Second determines subelement, from the candidate label of at least one set of second candidate label selection target second, and by the mesh The label of specific position is as the target labels for connecting next webpage in the candidate label of mark second, wherein the target the Only one label includes more than two numbers in the label of the father node of two candidate labels.
9. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, institute It states computer program to be performed, to realize the method according to claim 1 to 5.
CN201310718142.7A 2013-12-23 2013-12-23 A kind of webpage exhibiting method and device Active CN104731817B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310718142.7A CN104731817B (en) 2013-12-23 2013-12-23 A kind of webpage exhibiting method and device
TW103143726A TWI519980B (en) 2013-12-23 2014-12-15 Method and device for displaying web page and computer-readable storage medium
PCT/CN2014/094272 WO2015096660A1 (en) 2013-12-23 2014-12-18 Methods and devices for displaying a webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310718142.7A CN104731817B (en) 2013-12-23 2013-12-23 A kind of webpage exhibiting method and device

Publications (2)

Publication Number Publication Date
CN104731817A CN104731817A (en) 2015-06-24
CN104731817B true CN104731817B (en) 2019-11-22

Family

ID=53455714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310718142.7A Active CN104731817B (en) 2013-12-23 2013-12-23 A kind of webpage exhibiting method and device

Country Status (3)

Country Link
CN (1) CN104731817B (en)
TW (1) TWI519980B (en)
WO (1) WO2015096660A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557529B (en) * 2015-09-30 2020-09-08 阿里巴巴集团控股有限公司 Display method and device for jump page in page jump
CN106815269A (en) * 2015-12-02 2017-06-09 北京国双科技有限公司 A kind of method for exhibiting data and device
CN107451160B (en) * 2016-06-01 2020-10-16 阿里巴巴(中国)有限公司 Page pre-reading method and device
CN106375869B (en) * 2016-08-30 2019-06-14 北京奇艺世纪科技有限公司 A kind of audio and video playing method and device based on HTML5 player
CN109327530B (en) * 2018-10-31 2023-05-23 网易(杭州)网络有限公司 Information processing method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222086A (en) * 2011-05-18 2011-10-19 广州市动景计算机科技有限公司 Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal
CN103154937A (en) * 2010-10-04 2013-06-12 三星电子株式会社 Method and apparatus for inserting address of hyperlink into bookmark
CN103390050A (en) * 2013-07-24 2013-11-13 北京小米科技有限责任公司 Webpage prefetching method and device, and terminal equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694008B2 (en) * 2005-05-04 2010-04-06 Venturi Wireless Method and apparatus for increasing performance of HTTP over long-latency links
US7659905B2 (en) * 2006-02-22 2010-02-09 Ebay Inc. Method and system to pre-fetch data in a network
CN101325602A (en) * 2008-07-30 2008-12-17 广州市动景计算机科技有限公司 Method and system for pre-reading web page by micro-browser intelligently
CN102122283A (en) * 2010-01-07 2011-07-13 宏碁股份有限公司 Method for turning web pages and electronic device
CN102123168B (en) * 2011-01-14 2012-07-18 广州市动景计算机科技有限公司 Web page pre-reading and integration method and system based on relay server
CN102446222B (en) * 2011-12-22 2014-12-10 华为技术有限公司 Method, device and system of webpage content preloading
CN102591943B (en) * 2011-12-27 2017-02-08 厦门雅迅网络股份有限公司 Page data processing method for mobile terminal
CN103020156B (en) * 2012-11-23 2016-02-03 小米科技有限责任公司 A kind of disposal route for webpage, device and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103154937A (en) * 2010-10-04 2013-06-12 三星电子株式会社 Method and apparatus for inserting address of hyperlink into bookmark
CN102222086A (en) * 2011-05-18 2011-10-19 广州市动景计算机科技有限公司 Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal
CN103390050A (en) * 2013-07-24 2013-11-13 北京小米科技有限责任公司 Webpage prefetching method and device, and terminal equipment

Also Published As

Publication number Publication date
WO2015096660A1 (en) 2015-07-02
CN104731817A (en) 2015-06-24
TWI519980B (en) 2016-02-01
TW201525740A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN104239298B (en) Text message recommends method, server, browser and system
US20080228910A1 (en) Method for monitoring user interaction to maximize internet web page real estate
US9223895B2 (en) System and method for contextual commands in a search results page
CN104731817B (en) A kind of webpage exhibiting method and device
US20170154013A9 (en) Ad blocking page display method and device
CN104426925B (en) Web page resources acquisition methods and device
CN106528657A (en) Control method and device for browser skipping to application program
CN104572777B (en) Webpage loading method and device based on UIWebView component
US20140006487A1 (en) Methods for making ajax web applications bookmarkable and crawable and devices thereof
US20080104024A1 (en) Highlighting results in the results page based on levels of trust
CN104035753A (en) Double-WebView customized page display method and system
CN103412890A (en) Webpage loading method and device
CN105260424B (en) The processing method and processing device that user browses web-page histories record and most frequentation is asked
CN103078967B (en) A kind of generate conventional network address client terminal, server, system and method
US10205678B2 (en) Systems and methods for client-side dynamic information resource activation and deactivation
Schubert Influence of mobile-friendly design to search results on Google search
CN106339414A (en) Webpage rendering method and device
CN102831150B (en) Browser and local exchange method, system and the terminal applied
CN105528369B (en) Webpage code-transferring method, device and server
CN109829121A (en) A kind of method and apparatus clicking behavioral data and reporting
CN104899217B (en) A kind of implementation method and device of custom feature
CN106936727A (en) A kind of Webpage display process and device
JP2010146332A (en) Information processing apparatus, system, method and program for providing information and recording medium
CN106354792A (en) Webpage display method and device
US10095791B2 (en) Information search method and apparatus

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