CN105677699A - Method and apparatus for generating news pages for user - Google Patents

Method and apparatus for generating news pages for user Download PDF

Info

Publication number
CN105677699A
CN105677699A CN201510959368.5A CN201510959368A CN105677699A CN 105677699 A CN105677699 A CN 105677699A CN 201510959368 A CN201510959368 A CN 201510959368A CN 105677699 A CN105677699 A CN 105677699A
Authority
CN
China
Prior art keywords
news
user
news documents
random number
documents template
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
CN201510959368.5A
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.)
Netease Media Technology Beijing Co Ltd
Original Assignee
Netease Media Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Media Technology Beijing Co Ltd filed Critical Netease Media Technology Beijing Co Ltd
Priority to CN201510959368.5A priority Critical patent/CN105677699A/en
Publication of CN105677699A publication Critical patent/CN105677699A/en
Pending legal-status Critical Current

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

Embodiments of the present invention provide a method for generating news pages for a user. The method for generating the news pages for the user comprises the steps of obtaining user information provided by the user, the user information at least comprising a user name; selecting a news document template from a news document template database; and generating the news pages for the user by utilization of the user name and the selected news document template. According to the method for generating the news pages for the user, the news pages can be generated for the user by utilization of the news document template selected from the news document template database according to the user information provided by the user, the requirement of the user to be a news party is satisfied, and good experience is provided for the user. In addition, the embodiments of the present invention provide an apparatus for generating the news pages for the user.

Description

A kind of method and apparatus generating news pages for user
Technical field
Embodiments of the present invention relate to Internet technical field, more specifically, embodiments of the present invention are related to the method and apparatus that user generates news pages.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context. Description herein is not because including just admitting in this part to be prior art.
Along with the development of mobile Internet, increasing user browses news by mobile equipment. Demand is browsed in order to meet different users, content supplier is supplied to user by the news client installed in mobile equipment after generally news being classified, so, user can quickly position oneself news interested, such as, sports news, entertainment news, social news, financial and economic news etc.
News is usually furnished with the document of picture, includes personage, time, place, event etc. in news, and wherein the personage in news is also referred to as news client, refers to the personage directly relevant with media event.
Summary of the invention
But, the news that user browses is all others' news, i.e. news client non-user oneself, if the user desired that the client oneself become in news, experiences the sense of attracting attention becoming the newsmaker, then cannot realize according to prior art.
For this, it is also very desirable to a kind of method generating the news pages belonging to their own for user, meeting user becomes the demand of news client.
In the present context, embodiments of the present invention expectation provides a kind of method and apparatus generating news pages for user.
In the first aspect of embodiment of the present invention, it is provided that a kind of method generating news pages for user, including:
Obtaining the user profile that user provides, described user profile at least includes user name;
A news documents template is selected from news documents template base;
Utilizing described user name and the news documents template selected is that described user generates news pages.
In the second aspect of embodiment of the present invention, it is provided that a kind of device generating news pages for user, including:
Obtaining unit, for obtaining the user profile that user provides, described user profile at least includes user name;
First selects unit, for selecting a news documents template from news documents template base;
First generates unit, is that described user generates news pages for utilizing described user name and the news documents template selected.
In the third aspect of embodiment of the present invention, provide a kind of device generating news pages for user, such as, memorizer and processor can be included, wherein, processor may be used for reading the program in memorizer, performs following process: obtaining the user profile that user provides, described user profile at least includes user name; A news documents template is selected from news documents template base; Utilizing described user name and the news documents template selected is that described user generates news pages.
In the fourth aspect of embodiment of the present invention, providing a kind of program product, it includes program code, when described program product runs, described program code is used for performing procedure below: obtaining the user profile that user provides, described user profile at least includes user name; A news documents template is selected from news documents template base; Utilizing described user name and the news documents template selected is that described user generates news pages.
The method and apparatus generating news pages for user according to embodiment of the present invention, the user name that can provide according to user, the news documents template selected in news documents template base is utilized to generate news pages for user, meet user and become the demand of news client, bring better experience for user.
Accompanying drawing explanation
Reading detailed description below by reference accompanying drawing, above-mentioned and other purposes of exemplary embodiment of the invention, feature and advantage will become prone to understand. In the accompanying drawings, illustrate some embodiments of the present invention by way of example, and not by way of limitation, wherein:
Fig. 1 schematically shows the application scenarios schematic diagram according to embodiment of the present invention;
Fig. 2 a schematically shows according to embodiment of the present invention, the server implementation method implementing procedure schematic diagram generating news pages for user;
Fig. 2 b schematically shows the homepage face schematic diagram generating news pages for user according to embodiment of the present invention;
Fig. 2 c schematically shows the news pages schematic diagram generated for user that the news client according to embodiment of the present invention shows;
Fig. 2 d schematically shows the implementing procedure schematic diagram randomly choosing news documents template according to embodiment of the present invention;
Fig. 2 e schematically shows the schematic diagram of the corresponding relation between device identification, user name and the random number that the server according to embodiment of the present invention stores;
Fig. 2 f schematically shows the method implementing procedure schematic diagram of the server update news documents template according to embodiment of the present invention;
Fig. 3 a schematically shows the method implementing procedure schematic diagram generating news pages for user of news client implementation according to another embodiment of the present invention;
Fig. 3 b schematically shows news client according to another embodiment of the present invention and randomly chooses the implementing procedure schematic diagram of a news documents template;
Fig. 3 c schematically shows the schematic diagram of the corresponding relation between user name and the random number of news client storage according to another embodiment of the present invention;
Fig. 3 d schematically shows the schematic diagram sharing the news pages generated for user that news client according to another embodiment of the present invention shows;
Fig. 4 schematically shows the structural representation of the device generating news pages for user according to further embodiment of this invention.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Detailed description of the invention
Principles of the invention and spirit are described below with reference to some illustrative embodiments. Should be appreciated that providing these embodiments is only used to make those skilled in the art better understood when and then realize the present invention, and the scope being not intended to limit the present invention in any manner. On the contrary, it is provided that these embodiments are to make the disclosure more thorough and complete, and the scope of the present disclosure can intactly convey to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method or computer program. Therefore, the disclosure can be implemented as following form, it may be assumed that the form that hardware, completely software (including firmware, resident software, microcode etc.), or hardware and software completely combines.
According to the embodiment of the present invention, it is proposed that a kind of method and apparatus generating news pages for user.
In this article, it is to be understood that any number of elements in accompanying drawing is all unrestricted for example, and any name is only used for distinguishing, and does not have any limitation.
Below with reference to some representative embodiments of the present invention, explaination principles of the invention and spirit in detail.
Summary of the invention
The inventors discovered that, in prior art, user can only browse others' news when browsing news, if the user desired that become the news client browsed in news, then cannot meet the demand of user according to prior art.
In the embodiment of the present invention, the user name that can provide according to user, selecting a news documents template from news documents template base, utilize user name that user provides and news documents template to generate news pages for this user, meeting user becomes the demand of news client.
After the ultimate principle describing the present invention, introduce the various non-limiting embodiment of the present invention in detail below.
The user that the embodiment of the present invention provides generates the method for news pages both can by being installed on the news client implementation that user moves in equipment, it is also possible to by the server implementation of network side, introduces it individually below.
One, the method generating news pages for user that the server implementation embodiment of the present invention provides
Application scenarios overview
With reference first to Fig. 1, the application scenarios schematic diagram of its method generating news pages for user provided for the server implementation embodiment of the present invention. Including mobile equipment 11 and news browsing server 12. Wherein, described mobile equipment 11 is provided with news client, the news that user 10 is provided by news Client browse news browsing server 12. Wherein, the process that user 10 browses news is as follows: the news list that user 10 shows according to news client, select oneself news interested, the news that news client selects according to user sends resource acquisition request to news browsing server 12, wherein carry user and select the URL (UniformResourceLocator of news, URL), the URL that news browsing server 12 carries in asking according to resource acquisition, return corresponding resource to news client.
Mobile equipment 11 and news browsing server 12 are communicatively coupled by communication network, and this network can be LAN, wide area network etc.Mobile equipment 11 can be mobile phone, panel computer etc., and news browsing server 12 can for any server apparatus that can provide news browsing business.
Illustrative methods
Below in conjunction with the application scenarios of Fig. 1, with reference to Fig. 2 a-Fig. 2 e, the method for generating news pages for user according to exemplary embodiment of the invention is described. It should be noted that above-mentioned application scenarios is for only for ease of the spirit and principle of understanding the present invention and illustrates, embodiments of the present invention are unrestricted in this regard. On the contrary, embodiments of the present invention can apply to any scene of being suitable for.
As shown in Figure 2 a, it is the implementing procedure schematic diagram that user generates the method for news pages for server implementation, it is possible to comprise the following steps:
S21, server obtain the user profile that user provides.
When being embodied as, user is in browsing news process, when being it desired to generate one's own news pages, the news pages button triggering news client generating me provided by clicking news client is shown as user and generates the homepage face of news pages, homepage face is used for gathering user profile, as shown in Figure 2 b, the homepage face schematic diagram shown for news client.
Concrete, user inputs user name in information editing's frame that homepage face provides, and this user name can be the Real Name of user oneself, it is also possible to spending name etc. for the pet name of user, english name or user, this is not limited by the embodiment of the present invention. After input, what user clicked homepage face generates my news pages button, triggers news client and generates request to the news browsing server page of transmitting news, wherein, carrying the user name of user's input in this request, thus, server obtains the user name that user provides.
S22, server select a news documents template from news documents template base.
Wherein, announced news documents can be processed and obtain by the news documents template in news documents template base, for example, it is possible to the hot news document (news that namely user's amount of reading is high) issued in 24 hours is carried out process obtain news documents template. Wherein, news documents template includes headline and news content, in headline and news content, is provided with the position that can fill in user name. It is also preferred that the left news documents template can also include news figure etc.
User name and the news documents template selected that S23, utilization obtain generate news pages for user.
Such as, server headline in the template selected and filling in of arranging in news content can fill in the user name obtained on the position of user name, thus generates the news pages belonging to this user. The news pages of generation is returned to news client by server, news client show user, as shown in Figure 2 c, and its news pages schematic diagram generated for user shown for news client.
Preferably, when being embodied as, in order to make the news pages generated for user more accurate, server is when storing news documents template, according to user's sex, news documents template can also be carried out classification to store, such as, news documents template base includes the second news documents template base that the first news documents template base corresponding to male user is corresponding with female user.
Based on this, the homepage face that news client shows may be provided for user's sex options for user select, selection according to user, generate in request in news pages and can also carry user's sex, so, in step S22, server can randomly choose a news documents template according to user's sex from corresponding news documents template base, the actual demand of the user that thus more fits for the page of user's generation.
It is also preferred that the left as shown in Figure 2 d, in step S22, server can randomly choose a news documents template according to below scheme from news documents template base:
S221, it is that described user generates a random number according to the news documents quantity comprised in news documents template base.
When being embodied as, server is when generating random number, need the news documents quantity considering to comprise in news documents template base, such as, the news documents quantity comprised in news documents template base is 50, the random number that then server generates not can exceed that 50, and namely server generates random number between 1~50. Wherein, server can utilize any Generating Random Number to generate random number for this user, as long as the random number generated is not more than in news documents template base the news documents quantity comprised.
S222, server select the news documents template of document identification and the nonces match generated for user from news documents template base.
Such as, server can select the news documents template that document identification is identical with the random number of generation. Certainly, server can also according to default mapping relations, it is determined that the document identification that the random number of generation is corresponding, and select news documents template corresponding to the document identification determined etc.
It is to be understood that, if news pages generates in request and carries user's sex, then server can randomly choose a news documents template according to above-mentioned flow process in the news documents template base that user's sex is corresponding, and it is similar with above-mentioned flow process that it is embodied as flow process, repeats no more here.
When being embodied as, there is likely to be following application scenarios, same user repeatedly asks to generate one's own news pages, in this case, in order to avoid the request that server sends at different time for this user, the request that particularly user's continuous several times at short notice sends generates identical news pages, reduce Consumer's Experience, in the embodiment of the present invention, server is after generating random number for user each time, it is also possible to record this user send the device identification of request, user name and for its generation random number between corresponding relation. As shown in Figure 2 e, for the schematic diagram of the corresponding relation between the three of server storage.
Based on this, the news pages that news user end to server sends generates the device identification that can also carry mobile equipment in request, server is before performing step S222, in the corresponding relation of storage, the random number generated is searched for this user according to device identification and user name, and judge that whether the random number generated in step S221 is identical with the random number generated for this user, if it is different, then perform step S222.
If the same can process according to following either type:
Processing mode one,
After regenerating a random number according to the news documents quantity comprised in news documents template base for this user, performing step S222.
When being certainly embodied as, whether identical with the random number generated as this user can also continue to judge to be currently generated random number after regenerating random number, if the same a random number is regenerated again according to the news documents quantity comprised in news documents template base for this user, the like, until the random number generated is different from the random number generated for this user, then perform step S222.
Processing mode two,
Step S221 is generated random number process according to default processing rule, for instance, the step S221 random number basis generated adds 1 or subtracts 1 after obtaining new random number, then perform step S222.
More preferably, can also determine whether that the new random number obtained random number that is no and that generate for this user is identical, if the same again newly obtained random number is processed according to default processing rule, until the random number obtained is different from the random number generated for this user, then perform step S222.
Such as, step S221 is the random number that D1, user A1 by name generate for device identification it is S1, the Article 1 data stored due to itself and server record identical, then server needs to regenerate a random number for this user, or S1 is processed according to the processing rule preset, until the random number obtained is all different from S1, S2, S3 and S4.
Preferably, when being embodied as, server can also arrange the effect duration of each data record in the corresponding relation between the device identification of its storage, user name and random number, after effect duration arrives, server can delete the data record of correspondence, for instance, this effect duration could be arranged to 24 hours, namely each data record server only stores 24 hours, and after 24 hours, this data record will be deleted.
It should be noted that, in the embodiment of the present invention, for situations below: device identification is different, and user name is identical with random number, this kind of situation can not be processed by server, namely selects news documents template according to the random number generated in step S221 in step S222.
When being embodied as, in order to improve Consumer's Experience further, the news documents template base of storage can also be classified by server according to news content, such as, sports news can be divided into, entertainment news, financial and economic news, the various classification of science and technology news etc., the news documents template base that each classification is corresponding different, based on this, may be provided for news category to select for user in homepage face, news client generates in the news pages sent and carries the news category that user selects in request, the news category that server selects according to user, from the news documents template base of corresponding classification, the flow process shown in Fig. 2 d selects news documents template for user.
It is also preferred that the left when being embodied as, ageing for the news pages that ensures to generate for user, in the embodiment of the present invention, as shown in figure 2f, server can also update the news documents template in news documents template base according in the following manner:
The news documents issued on S201, acquisition network.
When being embodied as, server can obtain current online announced news documents, it is advantageous to, server can obtain online hot news.
S202, according to the issuing time of news documents order from the near to the remote, select the news documents of predetermined number.
S203, generate the news documents template of its correspondence for each news documents selected.
Existing news documents template in the news documents template renewal news documents template base that S204, utilization generate.
Hereby it is achieved that the renewal of the news documents template in news documents template base, thus ensure that the ageing of the news pages that generates into user.
When being embodied as, server is after selecting news documents template, it is also possible to returns the template selected to news client, news client generates news pages for this user.
Above-mentioned is the method that user generates news pages by server, news browsing server be that user generates news pages and is sent to news client according to the request that news client is initiated, news client show to user. In said process, being undertaken by network alternately between news browsing server and news client, on the one hand, the response speed of news browsing server response news client request depends on network transfer speeds, if network environment is severe, it is likely to result in response speed relatively slow, reduces Consumer's Experience; On the other hand, will producing network traffics alternately between server and client, if be connected by cellular network between server with client, the network traffics of generation also can produce corresponding expense. But, the advantage of server implementation it being in that, server memory capacity is unrestricted, the quantity of the news documents template of its storage can be more, can also be more rich, it is also possible to according to the news of real-time release on network, the news documents template in real-time update news documents template base.
Two, the method generating news pages for user that the client implementation embodiment of the present invention provides
As shown in Figure 3 a, it is the implementing procedure schematic diagram that user generates the method for news pages for client implementation, it is possible to comprise the following steps:
S31, news client obtain the user profile that user provides.
When being embodied as, user is in browsing news process, when being it desired to generate one's own news pages, the news pages button triggering news client generating me provided by clicking news client is shown as user and generates the homepage face of news pages, homepage face is used for gathering user profile, equally, the homepage face schematic diagram that news client shows is as shown in Figure 2 b.
Concrete, user inputs user name in information editing's frame that homepage face provides, and this user name can be the Real Name of user oneself, it is also possible to spending name etc. for the pet name of user, english name or user, this is not limited by the embodiment of the present invention. After input, client obtains user name, clicks the news pages button generating me in homepage face, triggers news client and generates news pages for user.
S32, news client select a news documents template in news documents template base.
Wherein, the news documents template in news documents template base can prestore for news client, and announced news documents can be processed and obtain by it. Wherein, news documents template includes headline and news content, in headline and news content, is provided with the position that can fill in user name.
S33, news client utilize the user name obtained and the news documents template selected to generate news pages for user.
Such as, news client headline in the template selected and filling in of arranging in news content can fill in the user name obtained on the position of user name, thus generate the news pages belonging to this user, after generating the news pages belonging to this user, the news pages that the display of news client generates, the news pages generated also referred to as news client in the embodiment of the present invention is details page, and its schematic diagram is as shown in Figure 2 c.
Preferably, when being embodied as, in order to make the news pages generated for user more accurate, news client is when storing news documents template, according to user's sex, news documents template can also be carried out classification to store, such as, news documents template base includes the second news documents template base that the first news documents template base corresponding to male user is corresponding with female user.
Based on this, the homepage face that news client shows may be provided for user's sex options for user select, selection according to user, in step s 32, news client can select a news documents template according to user's sex from corresponding news documents template base, with this, news pages generated for user is more fitted the actual demand of user.
It is also preferred that the left as shown in Figure 3 b, in step s 32, news client can randomly choose a news documents template according to below scheme from news documents template base:
S321, news client are that described user generates a random number according to the news documents quantity comprised in news documents template base.
When being embodied as, news client is when generating random number, it is necessary to consider the news documents quantity comprised in news documents template base, such as, the news documents quantity comprised in news documents template base is 50, then the random number generated not can exceed that 50, namely generates random number between 1~50. Wherein, news client can utilize any Generating Random Number to generate random number for this user, as long as the random number generated is not more than in news documents template base the news documents quantity comprised.
S322, news client select the news documents template of document identification and the nonces match generated for user from news documents template base.
Such as, news client can select the news documents template that document identification is identical with the random number of generation. Certainly, news client can also according to default mapping relations, it is determined that the document identification that the random number of generation is corresponding, and select news documents template corresponding to the document identification determined etc.
It is to be understood that, if news pages generates in request and carries user's sex, then news client can select a news documents template according to above-mentioned flow process in the news documents template base that user's sex is corresponding, and it is similar with above-mentioned flow process that it is embodied as flow process, repeats no more here.
It should be noted that news client implementation generate, for user, the mutual realization that the method for news pages can be passed through between homepage face and details page, concrete, have following two embodiment:
The first embodiment,
Homepage face is used for gathering user profile, such as user name, after acquiring user name, news documents quantity according to comprising in news documents template base generates a random number, and by the random number pass of the user name gathered and generation to details page, from news documents template base, selected news documents template by details page according to the random number generated, and the relevant position user name that homepage face passes over filled in the template selected displays.
The second embodiment,
Homepage face only gathers user profile, such as user name, the user name of collection is passed to details page, a random number is generated according to the quantity of news documents template by details page, and select a news documents template according to the random number generated, finally, the relevant position user name that homepage face passes over filled in the template selected displays.
When being embodied as, there is likely to be following application scenarios, same user repeatedly asks to generate one's own news pages, in this case, in order to avoid generating identical news pages for user at different time, reduce Consumer's Experience, in the embodiment of the present invention, news client is after generating random number for user each time, it is also possible to record this user provide user name and for its generation random number between corresponding relation. As shown in Figure 3 c, for the schematic diagram of the corresponding relation between user name and the random number of the storage of news client.
Based on this, news client is before performing step S322, according to the corresponding relation between user name and the random number of record, it is judged that whether the random number generated in step S321 is identical with the random number generated for this user, if it is different, then perform step S322.
If the same can process according to following either type:
Processing mode one,
After regenerating a random number according to the news documents quantity comprised in news documents template base for this user, performing step S322.
When being certainly embodied as, whether identical with the random number generated as this user can also continue to judge to be currently generated random number after regenerating random number, if the same a random number is regenerated again according to the news documents quantity comprised in news documents template base for this user, the like, until the random number generated is different from the random number generated for this user, then perform step S322.
Processing mode two,
Step S321 is generated random number process according to default processing rule, for instance, the step S321 random number basis generated adds 1 or subtracts 1 after obtaining new random number, then perform step S322.
More preferably, can also determine whether that the new random number obtained random number that is no and that generate for this user is identical, if the same again newly obtained random number is processed according to default processing rule, until the random number obtained is different from the random number generated for this user, then perform step S322.
Such as, in step S321, the random number for user's A1 generation by name is S1, the Article 1 data stored due to itself and server record identical, then news client needs to regenerate a random number for this user, or S1 is processed according to the processing rule preset, until the random number obtained is all different from S1, S2, S3 and S4.
It should be noted that, the operation whether above-mentioned random number judging to generate in step S321 is identical with the random number generated for this user can be performed by the homepage face or details page performing step S321, if random number is generated by homepage face, then judged, by homepage face, the operation whether random number generated in step S321 is identical with the random number generated for this user; If random number is generated by details page, then judged, by details page, the operation whether random number generated in step S321 is identical with the random number generated for this user.
Preferably, when being embodied as, news client can also arrange the effect duration of each data record in the corresponding relation between the user name of its storage and random number, after effect duration arrives, news client can delete the data record of correspondence, for instance, this effect duration could be arranged to 24 hours, namely each data record server only stores 24 hours, and after 24 hours, this data record will be deleted.
When being embodied as, in order to improve Consumer's Experience further, the news documents template base of storage can also be classified by news client according to news content, such as, the various classification of sports news, entertainment news, financial and economic news, science and technology news etc. can be divided into, the news documents template base that each classification is corresponding different, based on this, may be provided for news category to select for user in homepage face, the news category that news client selects according to user, from the news documents template base of corresponding classification, the flow process shown in Fig. 3 b selects news documents template for user.
It is also preferred that the left when being embodied as, ageing for the news pages that ensures to generate for user, in the embodiment of the present invention, it is also possible to the news documents template base of news client storage is updated. Concrete, it is possible to the news documents template after being issued renewal by server to news client, news client uses the news documents template that news documents template renewal self that server issues is currently stored. Wherein, server obtains the flow process of the news documents template after updating and is referred to Fig. 2 f, repeats no more here.
News client can be passed through active mode or passive mode and obtain the news documents template after updating to server, wherein, active mode refers to, news client sends, to server, the request of acquisition according to certain acquisition cycle, updates the news documents template of self storage according to the response of server; Passive mode refers to, when server has a news documents template of renewal after notice news client, news client sends, to server, the request of acquisition again, to update the news documents template of self storage.
It is also preferred that the left in the embodiment of the present invention, the news pages for its generation can also be shared to different social platform by user. Concrete, news client end response, in user operation, shares the news pages generated for user. Wherein it is possible to the news pages generated for user is shared to the social platform providing access interface. As shown in Figure 3 d, in response to user operation, what news client showed shares the schematic diagram of the news pages generated for user.
Above-mentioned is the method that user generates news pages by news client, only need can realize alternately between homepage face and details page, due to without carrying out network interaction with server, therefore, the response speed generating news pages for user is relatively fast, it can in addition contain avoid producing network traffics, improve Consumer's Experience.
Example devices
After the method describing exemplary embodiment of the invention, it follows that with reference to Fig. 4 to exemplary embodiment of the invention, illustrate for generating the device of news pages for user.
As shown in Figure 4, the structural representation of the device generating news pages for user provided for the embodiment of the present invention, it is possible to including:
Obtaining unit 41, for obtaining the user profile that user provides, described user profile at least includes user name.
First selects unit 42, for selecting a news documents template from news documents template base.
First generates unit 43, is that described user generates news pages for utilizing described user name and the news documents template selected.
It is also preferred that the left the user profile that provides of user can also include user's sex, if user provides user's sex, then first unit 42 is selected to may be used for randomly choosing a news documents template from news documents template base corresponding to user's sex.
It is also preferred that the left first selects subelement can include generating random number subelement 421 and select subelement 422, wherein:
Generating random number subelement 421, being used for according to the news documents quantity comprised in described news documents template base is that described user generates a random number.
Select subelement 422, for selecting the news documents template of document identification and the nonces match generated for user from described news documents template base.
Optionally, first selects unit 42 can also include judgment sub-unit 423, wherein:
Described judgment sub-unit 423, for described selection subelement 422 select from described news documents template base document identification with for user generate nonces match news documents template before, it is judged that whether the corresponding relation between user name and the random number of record exists described user provide user name and for user generation random number between corresponding relation;
Described selection subelement 422, specifically for when the judged result of described judgment sub-unit 423 is no, selecting the news documents template of document identification and the nonces match generated for user from described news documents template base;
Described generating random number subelement 421, is additionally operable to when the judged result of described judgment sub-unit 423 is for being, is that described user regenerates a random number according to the news documents quantity comprised in described news documents template base; Or according to default processing rule, the random number generated is processed.
Optionally, what the embodiment of the present invention provided generate the device of news pages for user can also include:
Acquiring unit 44, for obtaining the news documents issued on network;
Second selects unit 45, is used for the order from the near to the remote of the issuing time according to news documents, selects the news documents of predetermined number;
Second generates unit 46, for selecting each news documents that unit 45 is selected to generate the news documents template of its correspondence for second;
Updating block 47, for utilizing described in the news documents template renewal that the second generation unit 46 generates existing news documents template in news documents template base.
Optionally, what the embodiment of the present invention provided generate the device of news pages for user can also include: shares unit 48, is used for the operation in response to user, shares described news pages.
In the embodiment that some are possible, generating the device of news pages for user and can include at least one processing unit and at least one memory element according to the present invention. Wherein, described memory element has program stored therein code, when described program code is performed by described processing unit so that described processing unit perform described in this specification above-mentioned " illustrative methods " part according to the various steps in the method generating news pages for user of the various illustrative embodiments of the present invention. Such as, described processing unit can perform step S21 as shown in Figure 2 a, and server obtains the user profile that user provides, step S22, and server selects a news documents template from news documents template base; And step S23, utilize the user name obtained and the news documents template selected to generate news pages for user. Or, described processing unit can perform step S31 as shown in fig. 3a, and news client obtains the user profile that user provides, step S32, and news client selects a news documents template from news documents template base; And step S33, news client utilizes the user name obtained and the news documents template selected to generate news pages for user.
Although it should be noted that, be referred to some unit or the subelement of device in above-detailed, but this division is merely exemplary not enforceable. It practice, according to the embodiment of the present invention, the feature of two or more unit above-described and function can embody in a unit. Otherwise, the feature of an above-described unit and function can Further Division for be embodied by multiple unit.
Although additionally, describe the operation of the inventive method in the accompanying drawings with particular order, but, this does not require that or implies and must operate to perform these according to this particular order, or having to carry out all shown operation could realize desired result. Additionally or alternatively, it is convenient to omit some step, multiple steps are merged into a step and performs, and/or a step is decomposed into the execution of multiple step.
Although describe spirit and the principle of the present invention by reference to some detailed description of the invention, however, it should be understood that, the present invention is not limited to disclosed detailed description of the invention, the division of each side is not meant that the feature in these aspects can not combine to be benefited yet, this division merely to statement convenience. It is contemplated that contain various amendments included in the spirit and scope of claims and equivalent arrangements.

Claims (12)

1. the method generating news pages for user, including:
Obtaining the user profile that user provides, described user profile at least includes user name;
A news documents template is selected from news documents template base;
Utilizing described user name and the news documents template selected is that described user generates news pages.
2. method according to claim 1, also includes user's sex in described user profile; And
From news documents template base, select a news documents template, specifically include:
A news documents template is randomly choosed from the news documents template base that described user's sex is corresponding.
3. method according to claim 2, randomly chooses a news documents template from the news documents template base that described user's sex is corresponding, specifically includes:
It is that described user generates a random number according to the news documents quantity comprised in the news documents template base that described user's sex is corresponding;
The news documents template of document identification and the nonces match generated for user is selected from the news documents template base that described user's sex is corresponding.
4. method according to claim 3, selects document identification and for, before the news documents template of the nonces match of user's generation, also including from the news documents template base that described user's sex is corresponding:
Judge record user name and random number between corresponding relation in whether exist described user provide user name and for user generation random number between corresponding relation;
If it is determined that record user name and random number between corresponding relation in exist described user provide user name and for user generation random number between corresponding relation, it is then that described user regenerates a random number according to the news documents quantity comprised in news documents template base corresponding to described user's sex, or according to default processing rule, the random number generated is processed.
5. method according to claim 1, updates the news documents template in described news documents template base in such a way:
Obtain the news documents issued on network;
Issuing time according to news documents order from the near to the remote, selects the news documents of predetermined number;
The news documents template of its correspondence is generated for each news documents selected;
Utilize existing news documents template in news documents template base described in the news documents template renewal generated.
6. the method according to Claims 1 to 5 any claim, also includes:
In response to the operation of user, share described news pages.
7. a device for news pages is generated for user, including:
Obtaining unit, for obtaining the user profile that user provides, described user profile at least includes user name;
First selects unit, for selecting a news documents template from news documents template base;
First generates unit, is that described user generates news pages for utilizing described user name and the news documents template selected.
8. device according to claim 7, described user profile also includes user's sex; And
Described first selects unit, specifically for randomly choosing a news documents template in the news documents template base corresponding from described user's sex.
9. device according to claim 8, described first selects unit, including:
Generating random number subelement, is that described user generates a random number for the news documents quantity comprised in the news documents template base corresponding according to described user's sex;
Select subelement, for the news documents template base corresponding from described user's sex selects the news documents template of document identification and the nonces match generated for user.
10. device according to claim 9, described first selects unit also to include judgment sub-unit, wherein:
Described judgment sub-unit, for the news documents template base corresponding from described user's sex at described selection subelement select document identification with for user generate nonces match news documents template before, it is judged that whether the corresponding relation between user name and the random number of record exists described user provide user name and for user generation random number between corresponding relation;
Described selection subelement, specifically for when the judged result of described judgment sub-unit is no, selecting the news documents template of document identification and the nonces match generated for user from the news documents template base that described user's sex is corresponding;
Described generating random number subelement, is additionally operable to when the judged result of described judgment sub-unit is for being, is that described user regenerates a random number according to the news documents quantity comprised in the news documents template base that described user's sex is corresponding; Or according to default processing rule, the random number generated is processed.
11. device according to claim 7, also include:
Acquiring unit, for obtaining the news documents issued on network;
Second selects unit, is used for the order from the near to the remote of the issuing time according to news documents, selects the news documents of predetermined number;
Second generates unit, for generating the news documents template of its correspondence for each news documents selected;
Updating block, for utilizing existing news documents template in news documents template base described in the news documents template renewal of generation.
12. according to the device described in claim 7~11 any claim, also include:
Share unit, for the operation in response to user, share described news pages.
CN201510959368.5A 2015-12-18 2015-12-18 Method and apparatus for generating news pages for user Pending CN105677699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510959368.5A CN105677699A (en) 2015-12-18 2015-12-18 Method and apparatus for generating news pages for user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510959368.5A CN105677699A (en) 2015-12-18 2015-12-18 Method and apparatus for generating news pages for user

Publications (1)

Publication Number Publication Date
CN105677699A true CN105677699A (en) 2016-06-15

Family

ID=56189614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510959368.5A Pending CN105677699A (en) 2015-12-18 2015-12-18 Method and apparatus for generating news pages for user

Country Status (1)

Country Link
CN (1) CN105677699A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407343A (en) * 2016-09-06 2017-02-15 首都师范大学 Automatic generation method for NBA competition news
CN106951493A (en) * 2017-03-14 2017-07-14 北京搜狐新媒体信息技术有限公司 Automatic figure methods of exhibiting and device without figure news
CN107590118A (en) * 2017-08-03 2018-01-16 天脉聚源(北京)传媒科技有限公司 A kind of method and device of the intelligent typesetting of news
CN107832041A (en) * 2017-11-01 2018-03-23 中国平安人寿保险股份有限公司 Thematic page animation method, apparatus, equipment and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
光明网: "《朋友圈恶搞网页"你上头条了" 输入真名或泄隐私》", 11 August 2014, HTTP://DL.SOHU.COM/20140811/N403307759.SHTML *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407343A (en) * 2016-09-06 2017-02-15 首都师范大学 Automatic generation method for NBA competition news
CN106407343B (en) * 2016-09-06 2019-09-13 首都师范大学 The automatic generation method of NBA race news
CN106951493A (en) * 2017-03-14 2017-07-14 北京搜狐新媒体信息技术有限公司 Automatic figure methods of exhibiting and device without figure news
CN107590118A (en) * 2017-08-03 2018-01-16 天脉聚源(北京)传媒科技有限公司 A kind of method and device of the intelligent typesetting of news
CN107832041A (en) * 2017-11-01 2018-03-23 中国平安人寿保险股份有限公司 Thematic page animation method, apparatus, equipment and readable storage medium storing program for executing
CN107832041B (en) * 2017-11-01 2020-10-30 中国平安人寿保险股份有限公司 Method, device and equipment for making thematic page and readable storage medium

Similar Documents

Publication Publication Date Title
CN1692354B (en) Information management system, information processing device, information processing method
US20180191798A1 (en) Methods and systems for server-side rendering of native content for presentation
CN106407371A (en) User comment data displaying method and system, server and client
JP5559295B2 (en) Information providing apparatus, information providing method, information providing program, and network system
CN104156390A (en) Comment recommendation method and system
CN104572084B (en) User interface generation and data distributing method, device in card business
CN103207873A (en) Method and system for displaying exclusive user page
CN104462534A (en) Network information sharing method and device
CN103618774A (en) Resource recommending method, device and system based on network behaviors
US10698958B2 (en) Method and system for processing information in social network system
CN105677699A (en) Method and apparatus for generating news pages for user
CN107665237B (en) Data structure classification device, and unstructured data publishing and subscribing system and method
CN103841154B (en) Network media information dissemination method, system and client
CN105162697A (en) Microblog system and data control method thereof
CN102122281A (en) Method, device and system for generating page form
CN102857530A (en) Picture uploading method and system
CN106156189A (en) A kind of label generating method and device, information getting method and device
CN101873581A (en) Contact person information updating and display method and device
CN103078782B (en) A kind of recommendation remarks implementation method of good friend's remarks and system
CN108363749B (en) Method and apparatus for information processing
CN104808891A (en) Page information processing method and device
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device
CN102063458B (en) Method and device for user clustering in network equipment in computer network
CN102929636A (en) Method and device for creating human-computer interaction interface
CN102289479A (en) Method, device and equipment for determining image showing mode and showing image

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: 20160615