CN104978373A - Webpage display method and webpage display device - Google Patents

Webpage display method and webpage display device Download PDF

Info

Publication number
CN104978373A
CN104978373A CN201410253837.7A CN201410253837A CN104978373A CN 104978373 A CN104978373 A CN 104978373A CN 201410253837 A CN201410253837 A CN 201410253837A CN 104978373 A CN104978373 A CN 104978373A
Authority
CN
China
Prior art keywords
web page
page element
files
display device
client
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.)
Pending
Application number
CN201410253837.7A
Other languages
Chinese (zh)
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 CN201410253837.7A priority Critical patent/CN104978373A/en
Publication of CN104978373A publication Critical patent/CN104978373A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a webpage display method, which comprises the following steps of: receiving a subscription browsing request of a client, and obtaining preset subscription information according to the subscription browsing request; obtaining a corresponding webpage file from a webpage server according to uniform resource identifier information; obtaining webpage elements in the webpage file according to a webpage element path of the webpage elements corresponding to subscription contents; and performing display operation on the webpage elements at the client. The invention also provides a webpage display device. The webpage display method and the webpage display device have the advantages that through the preset webpage element path, the display operation of the webpage elements is realized; the webpage browsing efficiency of a user is improved; the network resources are saved; and the technical problems of webpage resource waste and webpage browsing efficiency reduction of the user caused by the existing webpage display method and the existing webpage display device are solved.

Description

Web page display method and web page display device
Technical field
The present invention relates to internet arena, particularly relate to a kind of web page display method and web page display device.
Background technology
Along with advancing by leaps and bounds of development of Mobile Internet technology, people understand information in time by browsing webpage and carry out social entertainment.
Current user is generally by inputting or click the page of URL (Uniform Resoure Locator: URL(uniform resource locator)) website access in a browser, browser is as browser, by the content of Network Capture to the corresponding URL page, then by showing user after browser kernel engine renders, its displaying unit is a complete page, and the page is designed by the provider of web site contents and safeguarded.
The process of existing web page display is simple, user easily operates and understands, but for certain user, often full page can not be browsed, but the local content only paid close attention in the page, thus have in the page obtained by certain URL and there is a large amount of " invalid or redundancy " information, thus reduce the webpage browsing efficiency of user and cause the waste of Internet resources.
Summary of the invention
The embodiment of the present invention provides a kind of and improves the webpage browsing efficiency of user and save the web page display method of Internet resources, to solve the webpage browsing efficiency that existing web page display method reduces user and the technical matters causing web page resources to waste.
The embodiment of the present invention also provides a kind of and improves the webpage browsing efficiency of user and save the web page display device of Internet resources, to solve the webpage browsing efficiency that existing web page display device reduces user and the technical matters causing web page resources to waste.
For solving the problem, technical scheme provided by the invention is as follows:
The embodiment of the present invention provides a kind of web page display method, and it comprises:
Receive the subscription browse request of client, obtain preset subscription information according to described subscription browse request, described default subscription information comprises the web page element path of URL information and web page element corresponding to subscribed content;
According to described URL information, obtain corresponding web page files from web page server;
According to the web page element path of web page element corresponding to described subscribed content, obtain the web page element in described web page files; And
In described client, displaying operation is carried out to described web page element.
The embodiment of the present invention also provides a kind of web page display device, and it comprises:
Subscribe to browse request receiver module, for receiving the subscription browse request of client, obtain according to described subscription browse request and preset subscription information, described default subscription information comprises the web page element path of URL information and web page element corresponding to subscribed content;
Web page files acquisition module, for according to described URL information, obtains corresponding web page files from web page server;
Web page element acquisition module, for the web page element path according to web page element corresponding to described subscribed content, obtains the web page element in described web page files; And
Show operational module, for carrying out displaying operation in described client to described web page element.
The embodiment of the present invention provides a kind of web page display method, and it comprises:
Client receives the subscription instruction of user, generates corresponding subscribe request and is sent to web page display device;
Described web page display device obtains corresponding web page files according to described subscribe request from web page server, and according to the DOM Document Object Model of described web page files, described web page files is split, obtain all web page elements in the DOM Document Object Model of described web page files;
Described web page display device is according to the subscribed content in described subscribe request, and described web page files is resolved, and according to the web page element path of web page element corresponding to described subscribed content, obtains web page element corresponding in described web page files; And
Described web page display device, according to subscription browse request, carries out displaying operation to web page element corresponding in described web page files.
Compared to web page display method and the web page display device of prior art, web page display method of the present invention and web page display device pass through the displaying operation of the web page element path implement preset web page element, improve the webpage browsing efficiency of user, save Internet resources; Solve the webpage browsing efficiency that existing web page display method and web page display device reduce user and the technical matters causing web page resources to waste.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the first preferred embodiment of web page display method of the present invention;
Fig. 2 is the process flow diagram of the second preferred embodiment of web page display method of the present invention;
Fig. 3 is the process flow diagram of the 3rd preferred embodiment of web page display method of the present invention;
Fig. 4 is the structural representation of the first preferred embodiment of web page display device of the present invention;
Fig. 5 is the structural representation of the second preferred embodiment of web page display device of the present invention;
Fig. 6 is the structural representation of the 3rd preferred embodiment of web page display device of the present invention;
Fig. 7 is the sequential chart of the specific embodiment of web page display method of the present invention and web page display device.
Embodiment
Web page display method of the present invention and web page display device can be arranged in corresponding service server, this web page display device can obtain the web page element in web page files according to preset web element path, and this web page element is sent to client carries out displaying operation, thus improve user's webpage browsing efficiency and saved Internet resources.Certainly also the members of web page display device can be arranged on here there is browser client on or on web page server, therefore the concrete setting position of web page display device does not limit the scope of the invention.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, Fig. 1 is the process flow diagram of the first preferred embodiment of web page display method of the present invention.The web page display method of this preferred embodiment comprises:
Step S101, receives the subscription browse request of client, obtains preset subscription information according to subscription browse request, and this default subscription information comprises the web page element path of URL information and web page element corresponding to subscribed content;
Step S102, according to URL information, obtains corresponding web page files from web page server;
Step S103, according to the web page element path of web page element corresponding to subscribed content, obtains the web page element in web page files;
Step S104, carries out displaying operation in client to web page element;
The web page display method of this preferred embodiment ends at step S104.
The following detailed description of the idiographic flow of each step of the web page display method of this preferred embodiment.
In step S101, web page display device receives the subscription browse request that user is sent by client, and this subscription browse request can be the browse request of user's access subscription content.Such web page display device obtains according to this subscription browse request and corresponding presets subscription information, and this default subscription information can comprise the web page element path of URL information and web page element corresponding to subscribed content.
Wherein URL information is the URL of the web page files that user's subscribed content is corresponding.The web page element path of web page element can be web page element xpath corresponding in this web page files.The web page element path of corresponding web page element in the web page files of user's subscription can be obtained so accurately by presetting subscription information.Certain default subscription information here can be the set in the web page element path of multiple web page elements of web page files under unified URL.Forward step S102 to subsequently.
In step s 102, web page display device, according to the URL information obtained in step S101, obtains web page files corresponding to user's subscribed content from server.Forward step S103 to subsequently.
In step s 103, web page display device, according to the web page element path of presetting in subscription information, obtains specific web page element in the DOM Document Object Model of this web page files.This web page element can be under DOM Document Object Model one or more separate (div), form (table) or window (form) etc.Forward step S104 to subsequently.
In step S104, web page display device shows operation accordingly to above-mentioned web page element on the client, and display form can set according to the requirement of user.
So namely, complete the web page display process of the web page display method of this preferred embodiment.
The web page display method of this preferred embodiment passes through the displaying operation of the web page element path implement preset web page element, improves the webpage browsing efficiency of user, has saved Internet resources.
Please refer to Fig. 2, Fig. 2 is the process flow diagram of the second preferred embodiment of web page display method of the present invention.The web page display method of this preferred embodiment comprises:
Step S201, receives the subscribe request of client, and obtains corresponding web page files according to subscribe request from web page server;
Step S202, resolves web page files, obtains the web page element in the DOM Document Object Model of web page files and DOM Document Object Model;
Step S203, according to the subscribed content in subscribe request, web page element path and the URL information of web page element client selected are stored as default subscription information;
Step S204, receives the subscription browse request of client, obtains preset subscription information according to subscription browse request;
Step S205, according to uniform resource position mark URL information, obtains corresponding web page files from web page server;
Step S206, according to the web page element path of web page element corresponding to subscribed content, obtains the web page element in web page files;
Step S207, carries out displaying operation in client to web page element.
The web page display method of this preferred embodiment ends at step S207.
The following detailed description of the idiographic flow of each step of the web page display method of this preferred embodiment.
In step S201, step S202 and step S203, achieve the subscription to web page files upper part web page element, thus user is follow-up realizes browsing of effective information on web page files by browsing subscribed content, and do not need to obtain whole web page files, to browse above-mentioned web page element.Concrete:
In step s 201, user sends URL request (Uniform Resoure Locator, URL(uniform resource locator) request) to web page server by client, and this URL request can be the request that user wants to access particular webpage.User, when browsing this particular webpage, can subscribe to the partial content in this particular webpage, can send subscribe request according to the partial content in the web page files of particular webpage to web page display device.
Web page display device receives the subscribe request that user is sent by client, and obtains corresponding web page files according to subscribe request from web page server.Here web page files is generally the full content in the entire Web page of a corresponding URL (UniformResource Location, URL(uniform resource locator)).Forward step S202 to subsequently.
In step S202, web page display device is resolved the web page files that step S201 obtains, here parsing can be the parsing of the source code to web page files, thus obtains the DOM Document Object Model (dom tree, Document Object Model) of web page files; According to the DOM Document Object Model of web page files, web page files is split subsequently, obtain all web page elements in the DOM Document Object Model of web page files.Forward step S203 to subsequently.
In step S203, web page display device can according to the subscribed content in subscribe request, determine the web page element path of the web page element that client is selected, and the web page element path of web page element client selected and the URL information of this web page files are stored as default subscription information.Forward step S204 to subsequently.
Step S204 is identical with the flow process in above-mentioned step S101, and the idiographic flow of step S204 please refer to the associated description in above-mentioned steps S101.
Step S205 is identical with the flow process in above-mentioned step S102, and the idiographic flow of step S205 please refer to the associated description in above-mentioned steps S102.
Step S206 is identical with the flow process in above-mentioned step S103, and the idiographic flow of step S206 please refer to the associated description in above-mentioned steps S103.
Step S207 is identical with the flow process in above-mentioned step S104, and the idiographic flow of step S207 please refer to the associated description in above-mentioned steps S104.
So namely, complete the web page display process of the web page display method of this preferred embodiment.
Preferably, as in step s 201, client is resolved the web page files of particular webpage according to subscription instruction, thus the web page element path of the web page element client after resolving selected and URL information are set in subscribe request.When such web page display device receives the subscribe request of client, get web page element path and the URL information of the web page element that client is selected.Therefore do not need carry out step 202, obtain corresponding web page files from web page server and resolve, only need the web page element path of the web page element directly client selected and URL information to be stored as default subscription information.Analytical capabilities by web page display device has been set in client.
The web page display method of this preferred embodiment is on the basis of the first preferred embodiment, the subscription of web page element in web page files is realized by analyzing web page file and setting preset web element path, further increase the webpage browsing efficiency of user, save web page resources.
Please refer to Fig. 3, Fig. 3 is the process flow diagram of the 3rd preferred embodiment of web page display method of the present invention.The web page display method of this preferred embodiment comprises:
Step S301, receives the subscription browse request of client, obtains preset subscription information according to subscription browse request, and this default subscription information comprises the web page element path of URL information and web page element corresponding to subscribed content;
Step S302, according to URL information, obtains corresponding web page files from web page server;
Step S303, according to the web page element path of web page element corresponding to subscribed content, obtains the web page element in web page files;
Step S304, judges whether to obtain the web page element in web page files; As obtained the web page element in web page files, then forward step S306 to; As do not obtained the web page element in web page files, then forward step S305 to;
Step S305, carries out miscue;
Step S306, carries out displaying operation in client to web page element;
Step S307, receives the feedback of showing operation;
Step S308, what operate as displaying is fed back to web page element mistake, then delete and preset subscription information;
The web page display method of this preferred embodiment ends at step S308.
The following detailed description of the idiographic flow of each step of the web page display method of this preferred embodiment.
Step S301 is identical with the flow process in above-mentioned step S101, and the idiographic flow of step S301 please refer to the associated description in above-mentioned steps S101.
Step S302 is identical with the flow process in above-mentioned step S102, and the idiographic flow of step S302 please refer to the associated description in above-mentioned steps S102.
Step S303 is identical with the flow process in above-mentioned step S103, and the idiographic flow of step S303 please refer to the associated description in above-mentioned steps S103.
In step s 304, web page display device judges whether to obtain the web page element in web page files, as obtained the web page element in web page files, then forwards step S306 to; As do not obtained the web page element in web page files, then forward step S305 to.
In step S305, web page display device does not obtain the web page element web page files from web page server, namely the DOM Document Object Model of this web page files may change, this preset web element path lost efficacy, then web page display device carries out miscue, prompting user subscribes to inefficacy and maybe cannot obtain web page element etc., and user can re-start the subscription of web page element according to the second preferred embodiment.
In step S306, web page display device obtains the web page element in web page files, then show operation accordingly to above-mentioned web page element on the client, display form can set according to the requirement of user.Concrete:
In displaying process, as received the refresh requests of client, then web page display device carries out displaying operation according to this refresh requests pair web page element corresponding with default subscription information;
If this refresh requests is the automatic refreshing instruction that client browser sends, then web page display device can judge whether the content of web page element changes, and the content as web page element changes, then carry out displaying operation to web page element; Content as web page element does not change, then stop carrying out displaying operation to web page element.Because the object automatically refreshed is in time the web page element after content change to be showed corresponding user, the content therefore as web page element does not change, then do not show the web page element in client.
If this refresh requests is the artificial refreshing instruction (namely user to carry out the refreshing of web page element by client) that user is sent by client, then web page display device directly carries out displaying operation to web page element, in time lastest imformation is fed back to user.Forward step S307 to subsequently.
In step S307, web page display device receives the feedback of the displaying operation of client, this feedback can be the feedback (or do not receive feedback in setting-up time also can think that user accepts this displaying content) that user accepts this displaying content, also can be the feedback (i.e. user think the web page element mistake of showing) etc. that user does not accept this displaying content.The feedback that such web page display device can operate according to this displaying adjusts subscribed content.Forward step S308 to subsequently.
In step S308, web page display device judges whether the feedback of showing operation is web page element mistake, that thinks that displaying operates as web page display device is fed back to web page element mistake, then this preset web element path is invalid, web page display device can delete this preset web element path, and points out user again to subscribe to web page element.
So namely, complete the web page display process of the web page display method of this preferred embodiment.
The web page display method of this preferred embodiment is on the basis of the first preferred embodiment, carry out initiatively (server end) and passive (client) to the validity in web page element path to detect, further increase the webpage browsing efficiency of user, save web page resources.
The present invention also provides a kind of web page display device, please refer to Fig. 4, and Fig. 4 is the structural representation of the first preferred embodiment of web page display device of the present invention.The web page display device 40 of this preferred embodiment comprises to be subscribed to browse request receiver module 41, web page files acquisition module 42, web page element acquisition module 43 and shows operational module 44.Subscribe to browse request receiver module 41 for receiving the subscription browse request 45 of client, obtain according to subscription browse request 45 and preset subscription information 46, this default subscription information 46 comprises the web page element path of URL information and web page element corresponding to subscribed content.Web page files acquisition module 42, for according to URL information, obtains corresponding web page files from web page server.Web page element acquisition module 43, for the web page element path according to web page element corresponding to subscribed content, obtains the web page element in web page files.Show that operational module 44 is for carrying out displaying operation in client to web page element.
When the web page display device 40 of this preferred embodiment uses, first subscription browse request receiver module 41 receives the subscription browse request 45 that user is sent by client, and this subscription browse request 45 can be the browse request of user's access subscription content.Such subscription browse request receiver module 41 obtains according to this subscription browse request 45 and corresponding presets subscription information 46, and this default subscription information 46 can comprise the web page element path of URL information and web page element corresponding to subscribed content.
Wherein URL information is the URL of the web page files that user's subscribed content is corresponding.The web page element path of web page element can be web page element xpath corresponding in this web page files.The web page element path of corresponding web page element in the web page files of user's subscription can be obtained so accurately by presetting subscription information.Certain default subscription information here can be the set in the web page element path of multiple web page elements of web page files under unified URL.
Web page files acquisition module 42 is according to the URL information subscribing to the acquisition of browse request receiver module 41 subsequently, obtains web page files corresponding to user's subscribed content from web page server.
Then web page element acquisition module 43 is according to the web page element path in default subscription information, obtains specific web page element in the DOM Document Object Model of this web page files.This web page element can be under DOM Document Object Model one or more separate (div), form (table) or window (form) etc.
Finally show that operational module 44 shows operation accordingly to above-mentioned web page element on the client, display form can set according to the requirement of user.
So namely, complete the web page display process of the web page display device 40 of this preferred embodiment.
The web page display device of this preferred embodiment passes through the displaying operation of the web page element path implement preset web page element, improves the webpage browsing efficiency of user, has saved Internet resources.
Please refer to Fig. 5, Fig. 5 is the structural representation of the second preferred embodiment of web page display device of the present invention.The web page display device 50 of this preferred embodiment comprises subscribes to browse request receiver module 51, web page files acquisition module 52, web page element acquisition module 53, displaying operational module 54, subscribe request receiver module 57, parsing module 58 and subscription information setting module 59.The web page display device 50 of this preferred embodiment also comprises subscribe request receiver module 57, parsing module 58 and subscription information setting module 59 on the basis of the first preferred embodiment.Subscribe request receiver module 57 for receiving the subscribe request 55B of client, and obtains corresponding web page files according to subscribe request 55B from web page server.Parsing module 58, for resolving web page files, obtains the web page element in the DOM Document Object Model of web page files and DOM Document Object Model.The web page element path of the web page element of client selection and URL information, for according to the subscribed content in subscribe request 55B, are stored as default subscription information 56 by subscription information setting module 59.
When the web page display device 50 of this preferred embodiment uses, user sends URL request (Uniform Resoure Locator by client, URL(uniform resource locator) request) to web page server, this URL request can be the request that user wants to access particular webpage.User, when browsing this particular webpage, can subscribe to the partial content in this particular webpage, can send subscribe request 55B according to the partial content in the web page files of particular webpage to web page display device 50.
Subscribe request receiver module 57 receives the subscribe request 55B that user is sent by client, and obtains corresponding web page files according to subscribe request 55B from web page server.Here web page files is generally the full content in the entire Web page of a corresponding URL (Uniform Resource Location, URL(uniform resource locator)).
The web page files that parsing module 58 pairs of subscribe request receiver modules 57 obtain subsequently is resolved, here parsing can be the parsing of the source code to web page files, thus obtain the DOM Document Object Model (dom tree, Document Object Model) of web page files; According to the DOM Document Object Model of web page files, web page files is split subsequently, obtain all web page elements in the DOM Document Object Model of web page files.
Then subscription information setting module 59 can according to the subscribed content in subscribe request 55B, determine the web page element path of the web page element that client is selected, and the web page element path of web page element client selected and the URL information of this web page files are stored as default subscription information 56.
Subscription browse request receiver module 51 receives the subscription browse request 55A that user is sent by client, and this subscription browse request 55A can be the browse request of user's access subscription content.Such subscription browse request receiver module 51 obtains according to this subscription browse request 55A and corresponding presets subscription information 56, and this default subscription information 56 can comprise the web page element path of URL information and web page element corresponding to subscribed content.
Wherein URL information is the URL of the web page files that user's subscribed content is corresponding.The web page element path of web page element can be web page element xpath corresponding in this web page files.The web page element path of corresponding web page element in the web page files of user's subscription can be obtained so accurately by presetting subscription information 56.Certain default subscription information 56 here can be the set in the web page element path of multiple web page elements of web page files under unified URL.
Web page files acquisition module 52 is according to the URL information subscribing to the acquisition of browse request receiver module 51 subsequently, obtains web page files corresponding to user's subscribed content from web page server.
Then web page element acquisition module 53 is according to the web page element path in default subscription information 56, obtains specific web page element in the DOM Document Object Model of this web page files.This web page element can be under DOM Document Object Model one or more separate (div), form (table) or window (form) etc.
Finally show that operational module 54 shows operation accordingly to above-mentioned web page element on the client, display form can set according to the requirement of user.
So namely, complete the web page display process of the web page display device 50 of this preferred embodiment.
Preferably, the subscribe request 55B as the client of subscribe request receiver module 57 reception has included web page element path and the URL information of the web page element that the client after parsing is selected.Then subscribe request receiver module 57 does not need to obtain corresponding web page files from web page server and resolves.Web page element path and the URL information of the web page element only needing subscription information setting module 59 directly client to be selected are stored as default subscription information 56.Parsing module 58 by web page display device 50 has been set in client.
The web page display device of this preferred embodiment is on the basis of the first preferred embodiment, the subscription of web page element in web page files is realized by analyzing web page file and setting preset web element path, further increase the webpage browsing efficiency of user, save web page resources.
Please refer to Fig. 6, Fig. 6 is the structural representation of the 3rd preferred embodiment of web page display device of the present invention.The web page display device 60 of this preferred embodiment comprises subscribes to browse request receiver module 61, web page files acquisition module 62, web page element acquisition module 63, displaying operational module 64 and feedback module 67.The web page display device 60 of this preferred embodiment also comprises feedback module 67 on the basis of the first preferred embodiment.Wherein web page element acquisition module 63 comprises acquisition judging unit 631 and miscue unit 632, and obtain judging unit 631 and obtain the web page element in web page files for judging whether, miscue unit 632 is for carrying out miscue.Feedback module 67 comprises feedback judging unit 671 and delete cells 672, and feedback judging unit 671 for receiving the feedback of displaying operation, and judges whether the feedback of showing operation is web page element mistake; Delete cells 672 is for deleting default subscription information.Showing that operational module 64 comprises upgrade judging unit 641 and show operating unit 642, upgrading judging unit 641 for judging whether the content of web page element changes; Show that operating unit 642 is for carrying out displaying operation to web page element.
When the web page display device 60 of this preferred embodiment uses, first subscription browse request receiver module 61 receives the subscription browse request 65 that user is sent by client, and this subscription browse request 65 can be the browse request of user's access subscription content.Such subscription browse request receiver module 61 obtains according to this subscription browse request 65 and corresponding presets subscription information 66, and this default subscription information 66 can comprise the web page element path of URL information and web page element corresponding to subscribed content.
Web page files acquisition module 62 is according to the URL information subscribing to the acquisition of browse request receiver module 61 subsequently, obtains web page files corresponding to user's subscribed content from web page server.
Then web page element acquisition module 63 is according to the web page element path in default subscription information 66, obtains specific web page element in the DOM Document Object Model of this web page files.This web page element can be under DOM Document Object Model one or more separate (div), form (table) or window (form) etc.
Acquisition judging unit 631 as web page element acquisition module 63 judges whether to obtain the web page element in web page files, judge that web page element acquisition module 63 does not obtain the web page element in web page files from web page server as obtained judging unit 631, namely the DOM Document Object Model of this web page files may change, this preset web element path lost efficacy, then the miscue unit 632 of web page element acquisition module 63 carries out miscue, prompting user subscribes to inefficacy and maybe cannot obtain web page element etc., user can re-start the subscription of web page element according to the second preferred embodiment.
Judge that web page element acquisition module 63 to obtain the web page element in web page files from web page server as obtained judging unit 631, then show that the displaying operating unit 642 of operational module 64 shows operation accordingly to above-mentioned web page element on the client, display form can set according to the requirement of user.Concrete:
In displaying process, as received the refresh requests of client, then show that operational module 642 carries out displaying operation according to this refresh requests pair web page element corresponding with default subscription information 66;
If this refresh requests is the automatic refreshing instruction that client browser sends, then show that the renewal judging unit 641 of operational module 64 can judge whether the content of web page element changes, content as web page element changes, then show that displaying operating unit 642 pairs of web page elements of operational module 64 carry out displaying operation; Judge that the content of web page element does not change as upgraded judging unit 641, then show that the displaying operating unit 642 of operational module 64 stops carrying out displaying operation to web page element.Because the object automatically refreshed is in time the web page element after content change to be showed corresponding user, the content therefore as web page element does not change, then show that operating unit 642 is not shown the web page element in client.
If this refresh requests is the artificial refreshing instruction (namely user to carry out the refreshing of web page element by client) that user is sent by client, then show that operating unit 642 directly carries out displaying operation to web page element, in time lastest imformation is fed back to user.
Last feedback module 67 receives the feedback of the displaying operation of client, this feedback can be the feedback (or do not receive feedback in setting-up time also can think that user accepts this displaying content) that user accepts this displaying content, also can be the feedback (i.e. user think the web page element mistake of showing) etc. that user does not accept this displaying content.The feedback that such feedback module 67 can operate according to this displaying adjusts subscribed content.
The feedback judging unit 671 of feedback module 67 judges whether the feedback of showing operation is web page element mistake, what as fed back, judging unit 671 thought that displaying operates is fed back to web page element mistake, then this preset web element path is invalid, the delete cells 672 of feedback module 67 can delete this preset web element path, and points out user again to subscribe to web page element.
So namely, complete the web page display process of the web page display device 60 of this preferred embodiment.
The web page display device of this preferred embodiment is on the basis of the first preferred embodiment, carry out initiatively (server end) and passive (client) to the validity in web page element path to detect, further increase the webpage browsing efficiency of user, save web page resources.
The specific works principle of web page display method of the present invention and web page display device is described below by a specific embodiment.Please refer to Fig. 7, Fig. 7 is the sequential chart of the specific embodiment of web page display method of the present invention and web page display device.
Displaying process:
In step 1.1-step 1.2, user initiates to subscribe to browse request to web page display device by the browser of client, and web page display device is according to subscribing to browse request to certain web page files of web server request.
In step 1.3, web page files can be sent to web page display device by web page server.
In step 1.4, web page display device splits web page files according to the Dom structure of web page files, obtain all web page elements under the Dom structure of web page files, this web page element can be any one or one group of label, such as div, a table or form etc. under Dom tree.
In step 1.5, web page element after fractionation can be showed user by certain visual pattern according to default subscription information by web page display device, and visual pattern does not limit.
Subscription procedure:
In step 2.1, user carries out selection to the web page element in web page files and subscribes to, and will subscribe to result feedback to web page display device.
In step 2.2, web page display device is preserved user subscription information, and this subscription information comprises the web page element path corresponding to web page element of user profile, the URL of current web page files and subscription, is convenient to searching and locating of subsequent web pages element.This subscription information is preserved on web page server, and this subscription information also can be preserved on the browser of client certainly.
In step 2.3, web page display device will subscribe to result feedback to user.
Artificial refresh process:
In step 3.1 and step 3.2, as user manually refreshes corresponding web page element, then web page display device refresh to web server request after web page files.
In step 3.3, the web page files after refreshing is sent to web page display device by web page server, and web page display device, according to subscription information, obtains the web page element subscribed to.
In step 3.4, web page display device is shown specific web page element in client.
Automatic refresh process:
In step 4.1-step 4.2, web page display device carries out periodically automatically refreshing (web page files after namely periodically refreshing to web server request), the refresh interval time can be set by the user (as 24 hours), and this detection also can be initiated by client automatically certainly.
In step 4.3, as web page display device detects that the content of web page element changes, proactive notification user check, as do not detected, the content of web page element changes, then return step 4.1.
Lost efficacy as detected that in step 3.3 and step 4.3 web page element of web page files obtains, then notified that user deleted subscribed content or again subscribes to.
Web page display method of the present invention and web page display device pass through the displaying operation of the web page element path implement preset web page element, improve the webpage browsing efficiency of user, have saved Internet resources; Solve the webpage browsing efficiency that existing web page display method and web page display device reduce user and the technical matters causing web page resources to waste.
Each functional unit in the embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Above-mentioned each device or system, can perform the method in correlation method embodiment.
In sum; although the present invention discloses as above with preferred embodiment; but above preferred embodiment is also not used to limit the present invention; those of ordinary skill in the art; without departing from the spirit and scope of the present invention; all can do various change and retouching, the scope that therefore protection scope of the present invention defines with claim is as the criterion.

Claims (17)

1. a web page display method, is characterized in that, comprising:
Receive the subscription browse request of client, obtain preset subscription information according to described subscription browse request, described default subscription information comprises the web page element path of URL information and web page element corresponding to subscribed content;
According to described URL information, obtain corresponding web page files from web page server;
According to the web page element path of web page element corresponding to described subscribed content, obtain the web page element in described web page files; And
In described client, displaying operation is carried out to described web page element.
2. web page display method according to claim 1, is characterized in that, described web page display method also comprises:
Receive the subscribe request of described client, and obtain corresponding web page files according to described subscribe request from described web page server;
Described web page files is resolved, obtains the web page element in the DOM Document Object Model of described web page files and described DOM Document Object Model; And
According to the described subscribed content in described subscribe request, web page element path and the described URL information of the described web page element described client selected are stored as default subscription information.
3. web page display method according to claim 1, is characterized in that, described web page display method also comprises:
Receive the subscribe request of described client, described subscribe request comprises the web page element path of the described web page element that described client is selected and described URL information; And
According to described subscribe request, web page element path and the described URL information of the described web page element described client selected are stored as default subscription information.
4. web page display method according to claim 1, is characterized in that, the web page element path of the described web page element corresponding according to described subscribed content, and the step obtaining the web page element in described web page files comprises:
Judge whether to obtain the web page element in described web page files, the web page element in web page files as described in obtaining as failed, then carry out miscue.
5. web page display method according to claim 1, is characterized in that, described web page display method also comprises:
Receive described show operation feedback, and judge described show operation feedback whether be web page element mistake, as described in show operation be fed back to web page element mistake, then delete described default subscription information.
6. web page display method according to claim 1, is characterized in that, described web page display method also comprises:
Receive the refresh requests of described client, carry out displaying operation according to the described refresh requests pair web page element corresponding with described default subscription information;
As described in refreshing instruction be automatic refreshing instruction, then judge whether the content of described web page element changes, as described in the content of web page element change, then displaying operation is carried out to described web page element; As described in the content of web page element do not change, then stop carrying out displaying operation to described web page element.
7. web page display method according to claim 1, is characterized in that, described web page display method also comprises:
Receive the refresh requests of described client, carry out displaying operation according to the described refresh requests pair web page element corresponding with described default subscription information;
As described in refreshing instruction be artificial refreshing instruction, directly displaying operation is carried out to described web page element.
8. a web page display device, is characterized in that, comprising:
Subscribe to browse request receiver module, for receiving the subscription browse request of client, obtain according to described subscription browse request and preset subscription information, described default subscription information comprises the web page element path of URL information and web page element corresponding to subscribed content;
Web page files acquisition module, for according to described URL information, obtains corresponding web page files from web page server;
Web page element acquisition module, for the web page element path according to web page element corresponding to described subscribed content, obtains the web page element in described web page files; And
Show operational module, for carrying out displaying operation in described client to described web page element.
9. web page display device according to claim 8, is characterized in that, described web page display device also comprises:
Subscribe request receiver module, for receiving the subscribe request of described client, and obtains corresponding web page files according to described subscribe request from described web page server;
Parsing module, for resolving described web page files, obtains the web page element in the DOM Document Object Model of described web page files and described DOM Document Object Model; And
Subscription information setting module, for according to the described subscribed content in described subscribe request, web page element path and the described URL information of the described web page element described client selected are stored as default subscription information.
10. web page display device according to claim 8, is characterized in that, described web page display device also comprises:
Subscribe request receiver module, receives the subscribe request of described client, and described subscribe request comprises the web page element path of the described web page element that described client is selected and described URL information; And
Subscription information setting module, according to described subscribe request, web page element path and the described URL information of the described web page element described client selected are stored as default subscription information.
11. web page display devices according to claim 8, is characterized in that, described web page element acquisition module comprises:
Obtaining judging unit, obtaining the web page element in described web page files for judging whether; And
Miscue unit, for carrying out miscue.
12. web page display devices according to claim 8, is characterized in that, described web page display device also comprises feedback module, and described feedback module comprises:
Feedback judging unit, for receiving described feedback of showing operation, and judges whether described feedback of showing operation is web page element mistake; And
Delete cells, for deleting described default subscription information.
13. web page display devices according to claim 8, is characterized in that, described displaying operational module comprises:
Upgrade judging unit, for judging whether the content of described web page element changes; And
Show operating unit, for carrying out displaying operation to described web page element.
14. 1 kinds of web page display methods, is characterized in that, comprising:
Client receives the subscription instruction of user, generates corresponding subscribe request and is sent to web page display device;
Described web page display device obtains corresponding web page files according to described subscribe request from web page server, and according to the DOM Document Object Model of described web page files, described web page files is split, obtain all web page elements in the DOM Document Object Model of described web page files;
Described web page display device is according to the subscribed content in described subscribe request, and described web page files is resolved, and according to the web page element path of web page element corresponding to described subscribed content, obtains web page element corresponding in described web page files; And
Described web page display device, according to subscription browse request, carries out displaying operation to web page element corresponding in described web page files.
15. web page display methods according to claim 14, is characterized in that, the described DOM Document Object Model according to described web page files comprises the step that described web page files splits:
Described web page files is resolved, obtains the DOM Document Object Model of described web page files.
16. web page display methods according to claim 14, is characterized in that, the step of web page element corresponding in the described web page files of described acquisition comprises:
Web page element path and the described URL information of the described web page element described client selected are stored as default subscription information.
17. web page display methods according to claim 16, is characterized in that, described web page display device is according to subscription browse request, and the step of web page element corresponding in described web page files being carried out to displaying operation comprises:
Described web page display device receives the subscription browse request of described client, obtains described default subscription information according to described subscription browse request;
Described web page display device, according to described URL information, obtains corresponding web page files from web page server;
Described web page display device, according to the web page element path of web page element corresponding to described subscribed content, obtains the web page element in described web page files; And
In described client, displaying operation is carried out to described web page element.
CN201410253837.7A 2014-06-09 2014-06-09 Webpage display method and webpage display device Pending CN104978373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410253837.7A CN104978373A (en) 2014-06-09 2014-06-09 Webpage display method and webpage display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410253837.7A CN104978373A (en) 2014-06-09 2014-06-09 Webpage display method and webpage display device

Publications (1)

Publication Number Publication Date
CN104978373A true CN104978373A (en) 2015-10-14

Family

ID=54274885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410253837.7A Pending CN104978373A (en) 2014-06-09 2014-06-09 Webpage display method and webpage display device

Country Status (1)

Country Link
CN (1) CN104978373A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512281A (en) * 2015-12-07 2016-04-20 北京奇虎科技有限公司 Display method and device for official website type research result page
CN106570071A (en) * 2016-10-14 2017-04-19 上海斐讯数据通信技术有限公司 Method and system for loading front end page of cloud access controller
CN106776634A (en) * 2015-11-23 2017-05-31 北京搜狗科技发展有限公司 A kind of method for network access, device and terminal device
CN107704464A (en) * 2016-08-08 2018-02-16 北京国双科技有限公司 Parse the method and device in the path of static resource
CN107885561A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 The method and device of message interface information is provided
CN108701130A (en) * 2015-10-20 2018-10-23 维尔塞特公司 Hints model is updated using auto-browsing cluster
CN108763544A (en) * 2018-05-31 2018-11-06 维沃移动通信有限公司 A kind of display methods and terminal
CN110535904A (en) * 2019-07-19 2019-12-03 浪潮电子信息产业股份有限公司 A kind of asynchronous push method, system and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250510A1 (en) * 2006-04-19 2007-10-25 George Nachman Dynamic RSS services
CN101894138A (en) * 2010-06-25 2010-11-24 优视科技有限公司 Visual page content subscription processing method and system thereof
CN102609412A (en) * 2011-01-07 2012-07-25 华东师范大学 RSS (Really Simple Syndication)-based multi-thread graphic information synchronization crawling control method and system
CN103678549A (en) * 2013-12-04 2014-03-26 新浪网技术(中国)有限公司 Webpage table data sharing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070250510A1 (en) * 2006-04-19 2007-10-25 George Nachman Dynamic RSS services
CN101894138A (en) * 2010-06-25 2010-11-24 优视科技有限公司 Visual page content subscription processing method and system thereof
CN102609412A (en) * 2011-01-07 2012-07-25 华东师范大学 RSS (Really Simple Syndication)-based multi-thread graphic information synchronization crawling control method and system
CN103678549A (en) * 2013-12-04 2014-03-26 新浪网技术(中国)有限公司 Webpage table data sharing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108701130A (en) * 2015-10-20 2018-10-23 维尔塞特公司 Hints model is updated using auto-browsing cluster
US11200292B2 (en) 2015-10-20 2021-12-14 Viasat, Inc. Hint model updating using automated browsing clusters
CN106776634A (en) * 2015-11-23 2017-05-31 北京搜狗科技发展有限公司 A kind of method for network access, device and terminal device
CN105512281A (en) * 2015-12-07 2016-04-20 北京奇虎科技有限公司 Display method and device for official website type research result page
CN107704464A (en) * 2016-08-08 2018-02-16 北京国双科技有限公司 Parse the method and device in the path of static resource
CN107704464B (en) * 2016-08-08 2021-05-07 北京国双科技有限公司 Method and device for analyzing path of static resource
CN107885561A (en) * 2016-09-30 2018-04-06 阿里巴巴集团控股有限公司 The method and device of message interface information is provided
CN106570071A (en) * 2016-10-14 2017-04-19 上海斐讯数据通信技术有限公司 Method and system for loading front end page of cloud access controller
CN108763544A (en) * 2018-05-31 2018-11-06 维沃移动通信有限公司 A kind of display methods and terminal
CN110535904A (en) * 2019-07-19 2019-12-03 浪潮电子信息产业股份有限公司 A kind of asynchronous push method, system and device
CN110535904B (en) * 2019-07-19 2022-02-18 浪潮电子信息产业股份有限公司 Asynchronous pushing method, system and device

Similar Documents

Publication Publication Date Title
CN104978373A (en) Webpage display method and webpage display device
EP3491544B1 (en) Web page display systems and methods
CN106708899B (en) Automatic point burying method and device
CN103389969B (en) A kind of methods, devices and systems for mobile terminal preview pdf document
CN106598972B (en) Information display method and device and intelligent terminal
CN105843815B (en) Page comment processing method and device and browser
US20150248302A1 (en) Method, apparatus, server and system for implementing web application
WO2015043428A1 (en) Method, system, browser and proxy server for loading webpage
CN103034716A (en) Subscribing method and device for page content
CN101894138B (en) Visual page content subscription processing method and system thereof
CN103810176A (en) Pre-fetching accessing method and device of webpage information
CN103873918A (en) Picture processing method, device and terminal
CN106951270B (en) Code processing method, system and server
CN102541853A (en) Method and device which are capable of obtaining application information by utilizing browser address bar
CN103036970A (en) Method and system for page frame content subscription
WO2015000383A1 (en) Method, apparatus and system for information recommending
CN102314516A (en) Webpage processing method and mobile terminal and electronic device thereof
CN110929183A (en) Data processing method, device and machine readable medium
CN104601672A (en) Method and device for sharing network resources based on different application clients
CN103246699A (en) Method and device for data access control based on browser
US9465814B2 (en) Annotating search results with images
CN101488154B (en) Words input implementing method used for web page
CN105528369A (en) Webpage transcoding method and device and server
US11477158B2 (en) Method and apparatus for advertisement anti-blocking
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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151014