Data push method and device
Technical field
The present invention relates to computer realm, in particular to a kind of data push method and device.
Background technology
With the fast development of network, network has been increasingly becoming the main channel that people obtain information, thus, enterprise pair
The influence power analysis of itself product on the internet also begins to increasingly pay attention to.Wherein, because many enterprises are in marketing process
The user group that different age group can be directed to makes different marketing strategies, therefore, for different age group push and user's year
The information that age is adapted just becomes particularly important, and further, how to obtain age of user by internet just turns into one urgently
Need to solve the problems, such as.
At present, by internet come to obtain the usual way of the age information of user included by crawlers
The user data of userspersonal information, therefrom directly parses age of user.However, as user anticipates for personal information security
The continuous improvement of knowledge, most of user select the underground sensitive information of oneself, wherein just including age, birthday etc., thus
It can, due to can not accurately know age of user, to lead to not accurately push the data for meeting user preferences for user.With micro-
Exemplified by rich, because the user of disclosed personal birthday or age information accounts for smaller, basic number in whole microblog users colony
Be not enough to react the situation of whole microblogging colony according to amount, so as to cause for user's propelling data when, it is impossible to according to user not
The data for meeting user preferences are accurately pushed with the age.
The problem of in correlation technique, effective solution is not yet proposed at present.
The content of the invention
It is a primary object of the present invention to provide a kind of data push method and device, to solve due to using existing number
According to the inaccurate technical problem of the data-pushing caused by push mode.
According to an aspect of the invention, there is provided a kind of data push method, including:Obtain the registration of the first client
Information, wherein, the log-on message of above-mentioned first client is used to identify registered first user;Judge above-mentioned first client
Log-on message in whether include be used for indicate above-mentioned first user age target information;If judge above-mentioned first client
The log-on message at end includes above-mentioned target information, then the age of above-mentioned first user is calculated according to above-mentioned target information;Push
The data to match with the age of above-mentioned first user.
Alternatively, whether include being used to indicate above-mentioned first user in the above-mentioned log-on message for judging above-mentioned first client
The target information at age include:Judge whether include the first configured information and second in the log-on message of above-mentioned first client
Configured information, wherein, above-mentioned first configured information is used for the admission time for indicating above-mentioned first user, above-mentioned second configured information
For indicating the hiring date of above-mentioned first user;If the above-mentioned log-on message for judging above-mentioned first client includes above-mentioned
Target information, then the age of above-mentioned first user is calculated according to above-mentioned target information to be included:If judge above-mentioned first client
Log-on message include above-mentioned first configured information and above-mentioned second configured information, then perform following steps:According to above-mentioned
One configured information calculates the first age value of above-mentioned first user;Calculate above-mentioned first user's according to above-mentioned second configured information
Second age value;The age of above-mentioned first user is calculated using above-mentioned first age value and/or above-mentioned second age value.
Alternatively, above-mentioned the first age value that above-mentioned first user is calculated according to above-mentioned first configured information includes:Pass through
Below equation calculates above-mentioned first age value:Wherein, above-mentioned A1For identifying above-mentioned first age
Value, above-mentioned T are used to identify current time, above-mentioned tiFor identifying above-mentioned first user indicated by above-mentioned first configured information
The admission time of i sections admission experience, above-mentioned xiFor identifying admission time of above-mentioned first user in above-mentioned i-th section admission experience
When the default age, above-mentioned n is used for the n sections admission experience for identifying above-mentioned first user indicated by above-mentioned first configured information.
Alternatively, above-mentioned the second age value that above-mentioned first user is calculated according to above-mentioned second configured information includes:Pass through
Below equation calculates above-mentioned second age value:A2=T-tw+xw, wherein, above-mentioned A2For identifying above-mentioned second age value, above-mentioned T
For identifying current time, above-mentioned twTaken office for identifying the above-mentioned first user first paragraph indicated by above-mentioned second configured information
The hiring date of experience, above-mentioned xwIt is pre- in the hiring date of the inaugural experience of above-mentioned first paragraph for identifying above-mentioned first user
If the age.
Alternatively, in the log-on message of the above-mentioned client of acquisition first, in addition to:Obtain and closed with above-mentioned first client
The log-on message of multiple second clients of connection;Obtained from the log-on message of above-mentioned multiple second clients and above-mentioned multiple the
The age of multiple second users corresponding to two clients;The age of above-mentioned multiple second users is counted according to all ages and classes size
Number, and using statistical number of person most age as the 3rd age value;Above-mentioned first is calculated at least with above-mentioned 3rd age value
The age of user.
Alternatively, it is above-mentioned at least with above-mentioned 3rd age value calculate above-mentioned first user age include it is following at least it
One:Age using above-mentioned 3rd age value as above-mentioned first user;Utilize above-mentioned 3rd age value and above-mentioned first age value
Calculate the age of above-mentioned first user;The year of above-mentioned first user is calculated using above-mentioned 3rd age value and above-mentioned second age value
Age;The age of above-mentioned first user is calculated using above-mentioned 3rd age value and above-mentioned first age value and above-mentioned second age value.
Alternatively, the data that the age of above-mentioned push and above-mentioned first user match include:Obtain and used with above-mentioned first
The above-mentioned data that the age at family matches;Above-mentioned first client above-mentioned data-pushing given where above-mentioned first user.
According to another aspect of the present invention, there is provided a kind of data-pushing device, including:First acquisition unit, for obtaining
The log-on message of the first client is taken, wherein, the log-on message of above-mentioned first client is used to identify registered first user;
Judging unit, whether include in the log-on message for judging above-mentioned first client being used for the age for indicating above-mentioned first user
Target information;First computing unit, for including above-mentioned target letter in the log-on message for judging above-mentioned first client
During breath, the age of above-mentioned first user is calculated according to above-mentioned target information;Push unit, for pushing with above-mentioned first user's
The data that age matches.
Alternatively, above-mentioned judging unit includes:Judge module, it is in the log-on message for judging above-mentioned first client
It is no including the first configured information and the second configured information, wherein, above-mentioned first configured information is used to indicate above-mentioned first user's
Enter a school the time, above-mentioned second configured information is used for the hiring date for indicating above-mentioned first user;Above-mentioned first computing unit includes:
First computing module, for including above-mentioned first configured information and above-mentioned in the log-on message for judging above-mentioned first client
During the second configured information, the age of above-mentioned first user is calculated according to above-mentioned target information by being realized with lower module:First meter
Operator module, for calculating the first age value of above-mentioned first user according to above-mentioned first configured information;Second calculating sub module,
For calculating the second age value of above-mentioned first user according to above-mentioned second configured information;3rd calculating sub module, for utilizing
Above-mentioned first age value and/or above-mentioned second age value calculate the age of above-mentioned first user.
Alternatively, above-mentioned first calculating sub module is realized above-mentioned according to the calculating of above-mentioned first configured information by following steps
The first age value of above-mentioned first user includes:Above-mentioned first age value is calculated by below equation:Wherein, above-mentioned A1For identifying above-mentioned first age value, above-mentioned T is used to identify current time, on
State tiFor identifying the admission time of i-th section of admission experience of above-mentioned first user indicated by above-mentioned first configured information, above-mentioned xi
For identify above-mentioned first user above-mentioned i-th section admission experience admission the time when the default age, above-mentioned n be used for identify
State the n sections admission experience of above-mentioned first user indicated by the first configured information.
Alternatively, above-mentioned second calculating sub module is realized above-mentioned according to the calculating of above-mentioned second configured information by following steps
The second age value of above-mentioned first user includes:Above-mentioned second age value is calculated by below equation:A2=T-tw+xw, wherein,
Above-mentioned A2For identifying above-mentioned second age value, above-mentioned T is used to identify current time, above-mentioned twFor identifying above-mentioned second instruction
The hiring date of the inaugural experience of above-mentioned first user first paragraph indicated by information, above-mentioned xwExist for identifying above-mentioned first user
The default age during hiring date of the inaugural experience of above-mentioned first paragraph.
Alternatively, said apparatus also includes:Second acquisition unit, for the log-on message in the above-mentioned client of acquisition first
When, obtain the log-on message with multiple second clients of above-mentioned first client associate;3rd acquiring unit, for from above-mentioned
The age of multiple second users corresponding with above-mentioned multiple second clients is obtained in the log-on message of multiple second clients;System
Unit is counted, for the age to above-mentioned multiple second users according to all ages and classes size statistical number of person, and statistical number of person is most
Age as the 3rd age value;Second computing unit, for calculating above-mentioned first user at least with above-mentioned 3rd age value
Age.
Alternatively, above-mentioned second computing unit includes at least one of:Second computing module, for by above-mentioned 3rd year
Age is worth the age as above-mentioned first user;3rd computing module, for utilizing above-mentioned 3rd age value and above-mentioned first age
Value calculates the age of above-mentioned first user;4th computing module, for utilizing above-mentioned 3rd age value and above-mentioned second age value
Calculate the age of above-mentioned first user;5th computing module, for using above-mentioned 3rd age value and above-mentioned first age value and
Above-mentioned second age value calculates the age of above-mentioned first user.
Alternatively, above-mentioned push unit includes:Second acquisition module, for obtaining the age phase with above-mentioned first user
The above-mentioned data matched somebody with somebody;Pushing module, for by above-mentioned data-pushing give above-mentioned first user where above-mentioned first client.
By the application provide embodiment, obtain be used for identify the first user the first client log-on message it
Afterwards, the target information at the age for indicating the first user is obtained from above-mentioned log-on message, and then according to above-mentioned target information
The age of the first user is calculated, and pushes the data to match with the age of the first user, the year of user is being obtained so as to realize
After age, accurate data are pushed for it for the user of different age group, enterprise is not only convenient for and standard is formulated according to the age of user
True marketing strategy, additional income, and Consumer's Experience is also improved, user is received the data for more meeting user preferences.
Further, after not getting target information in log-on message, then according to multiple the with the first client associate
The log-on message of two clients obtains the age of the first user, so as to realize the situation in the log-on message of default first client
Under, age of the first user is gone out using the female thyroid cartilage of the user in the second client of association, and then according to obtained above
Age is that user pushes the data related to user, and then improves Consumer's Experience, improves the efficiency of data-pushing.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of optional data push method according to embodiments of the present invention;
Fig. 2 is the flow chart of the optional data push method of another kind according to embodiments of the present invention;And
Fig. 3 is a kind of schematic diagram of optional data-pushing device according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of data push method, as shown in figure 1, this method includes:
S102, the log-on message of the first client is obtained, wherein, the log-on message of the first client is registered for identifying
The first user;
S104, judge whether include the target letter for being used to indicate the age of the first user in the log-on message of the first client
Breath;
S106, include target information if judging the log-on message of the first client, the is calculated according to target information
The age of one user;
The data that the age of S108, push and the first user match.
Alternatively, in the present embodiment, what above-mentioned data push method can be, but not limited to be applied to install in terminal answers
During the data-pushing of client, wherein, above-mentioned terminal can include but is not limited at least one of:Mobile phone, notes
This computer, tablet personal computer, PC, wherein, above-mentioned client can include but is not limited to:Microblogging, wechat, news application, community
Space.By taking microblogging as an example, the log-on message of microblog users is obtained, wherein, the log-on message includes being used to identify user's body
The information of part, judge whether include the target information for being used to indicate the age of the user in above- mentioned information, it is assumed that above-mentioned registration letter
Breath includes being used to indicate the target information at the age of the user, then the age of the user is calculated according to above-mentioned target information, and
The microblog data to match to user push with its age.The example above is a kind of example, and the present embodiment is not appointed to this
What is limited.
It should be noted that it can include but is not limited in above-mentioned target information:Birthday for identifying age of user believes
Breath, for indicate the first user admission the time the first configured information, for indicate the first user hiring date second
Configured information.If directly getting birthday by information from the log-on message of client, the age of the user can be directly obtained,
Without the judgement after carrying out again, so similar with the scheme that prior art provides, the present embodiment will not be repeated here.
Alternatively, in the present embodiment, if the above-mentioned log-on message for judging the first client includes target information,
The age that the first user is calculated according to target information includes but is not limited to:The first configured information and second in log-on message
Configured information draws two age values respectively, and then further according to predetermined weight, two age value weighted sums are calculated
The age of first user.
Alternatively, in the present embodiment, if not including target information in judging the log-on message of the first client, obtain
Taking the log-on message with multiple second clients of the first client associate includes:
S1, if not including target information in judging the log-on message of the first client, obtain and closed with the first client
The log-on message of multiple second clients of connection;
S2, the age of the first user according to corresponding to the log-on message of multiple second clients obtains the first client.
Alternatively, in the present embodiment, the incidence relation of above-mentioned multiple second clients and the first client can include
But it is not limited to:Unidirectional association, bi-directional association, wherein, by taking microblogging as an example, the first user can be by way of concern with multiple the
Two users form unidirectional association, by obtaining the age of multiple second users, so as to realize the age for extrapolating the first user.
Further, it is necessary to which explanation, in the present embodiment, before propelling data, is also needed according to the use being calculated
At the age at family, the data to match with the age of user are obtained, by taking microblogging as an example, it is assumed that user is calculated as 20 years old, then takes
Topic content that to often be paid close attention to from the Network Capture user of -22 years old 18 years old of business device, and by above-mentioned 20 years old of these content active push
User, so as to realize after accurately the age of user is drawn, the data matched with user are accurately pushed according to the age of user.
By the application provide embodiment, obtain be used for identify the first user the first client log-on message it
Afterwards, the target information at the age for indicating the first user is obtained from above-mentioned log-on message, and then according to above-mentioned target information
The age of the first user is calculated, and pushes the data to match with the age of the first user, the year of user is being obtained so as to realize
After age, accurate data are pushed for it for the user of different age group, enterprise is not only convenient for and standard is formulated according to the age of user
True marketing strategy, additional income, and Consumer's Experience is also improved, user is received the data for more meeting user preferences,
Improve the efficiency of data-pushing.
As a kind of optional scheme,
S1, judge whether include the target information for being used to indicate the age of the first user in the log-on message of the first client
Including:Judge whether include the first configured information and the second configured information in the log-on message of the first client, wherein, first refers to
Show information be used for indicate the first user the admission time, the second configured information be used for instruction the first user hiring date;
S2, include target information if judging the log-on message of the first client, first is calculated according to target information
The age of user includes:Include the first configured information and the second configured information if judging the log-on message of the first client,
Then perform following steps:
S22, the first age value of the first user is calculated according to the first configured information;
S24, the second age value of the first user is calculated according to the second configured information;
S26, the age of the first user is calculated using the first age value and/or the second age value.
It should be noted that in the present embodiment, can be according to the instruction of at least one of admission experience and registration experience
Information calculates the age of the first user.For example, will only include the first configured information in the log-on message of student, i.e. admission is undergone
Relevant information, and default second configured information, then the weight of the first configured information will be configured to 1 when calculating, by second
The weight of configured information is configured to 0, and then calculates the age of the first user.Wherein, the configuration of above-mentioned weight can with but it is unlimited
Determined according to the information integrity of the first configured information and the second configured information.
Alternatively, in the present embodiment, can include but is not limited in above-mentioned first configured information:Multistage admission experience
Enter a school the time, for example, junior middle school (2003 admission), senior middle school's (2006 admission), university's (2009 admission), above-mentioned second configured information can
To include but is not limited to:The hiring date of the inaugural experience of multistage, for example, first job (registration in 2013), second part of work
(registration in 2015).Further, in the present embodiment, can be, but not limited to ask flat to the age that multistage admission experience is calculated
Average, to obtain the first age value.
Alternatively, in the present embodiment, above-mentioned default weight can include but is not limited to:Random arrangement, according to first refer to
Show the integrity degree configuration of information and the second configured information.For example, it is assumed that the first instruction letter in the log-on message of the first client
The integrity degree 90% of breath, the integrity degree of the second configured information only have 40%, then in the default weight of configuration, can be, but not limited to by
The weight of first configured information is configured to 70%, the weight of the second configured information is configured into 30%, and then utilize above-mentioned weight
And first age value and the second age value age of the first user is calculated.For example, the first age value is 24 years old, the second age
It is worth for 23 years old, then the age that can obtain the first user according to above-mentioned default weight is:24*70%+23*30%=23.7 year.
The embodiment provided by the application, by obtaining the first configured information and the in the first client registers information
Two configured informations, wherein, the first configured information is used for the admission time for indicating the first user, and the second configured information is used to indicate the
The hiring date of one user, the first age value and second are calculated respectively using above-mentioned first configured information and the second configured information
Age value, so according to default weight by the first age value and the second age value weighted sum to draw the age of the first user,
Realize using the time is entered a school and hiring date accurately obtains age of user, so as to realize according to different age segment informations,
Meet the data of user preferences for user's push of different age group, reach the effect of accurate propelling data.
As a kind of optional scheme, the first age value of the first user is calculated according to the first configured information to be included:
S1, the first age value is calculated by below equation:
Wherein, A1For identifying the first age value, T is used to identify current time, tiIt is signified for identifying the first configured information
The admission time of i-th section of admission experience of the first user shown, xiFor identifying the first user in the admission that i-th section of admission is undergone
Between when the default age, n be used for identify the first configured information indicated by the first user n sections admission experience.
Alternatively, in the present embodiment, can by the use of according to the average value that the historical information of client calculates as upper
The default age is stated, corresponding numerical value can also be pre-configured with as the above-mentioned default age, this is not limited only in the present embodiment.
Specifically illustrated with reference to the example below, it is assumed that got in the log-on message of the first client (by taking microblogging as an example)
First configured information is as follows:
User name:User A
Admission experience:Junior middle school:2003, senior middle school:2006, university:2009.
As shown in the above, totally three sections of the admission experience that user A is registered on microblogging, it is assumed that current time 2014
Year, default age when junior middle school enters a school is 13 years old, and default age when senior middle school enters a school is 16 years old, default age during college entrance
For 19 years old, then the first age value of the user A can be calculated using above-mentioned formula (1):A1=[(2014-2003+13)+
(2014-2006+16)+(2014-2009+19)]/3=24, then it is 24 years old that can calculate above-mentioned first age value.
The embodiment provided by the application, First Year is calculated by above-mentioned formula (1) according to the first configured information
Age is worth, and so as to realize at the age that can not directly learn user, calculates the age of user indirectly using the first configured information
Value, user's accurate age is extrapolated further combined with the second age value, meets its age so as to be embodied as user's push
The data of section.
As a kind of optional scheme, the second age value of the first user is calculated according to the second configured information to be included:
S1, the second age value is calculated by below equation:
A2=T-tw+xw (2)
Wherein, A2For identifying the second age value, T is used to identify current time, twIt is signified for identifying the second configured information
The hiring date for the inaugural experience of first user's first paragraph shown, xwFor identifying registration of first user in the inaugural experience of first paragraph
The default age during time.
Alternatively, in the present embodiment, can by the use of according to the average value that the historical information of client calculates as upper
The default age is stated, corresponding numerical value can also be pre-configured with as the above-mentioned default age, this is not limited only in the present embodiment.
Specifically illustrated with reference to the example below, it is assumed that got in the log-on message of the first client (by taking microblogging as an example)
Second configured information is as follows:
User name:User A
Registration is undergone:First job:2013 so far
As shown in the above, the inaugural experience that user A is registered on microblogging only has one section, it is assumed that current time 2014
Year, the age during registration of the inaugural experience of first paragraph is 22 years old, then can calculate the of the user A using above-mentioned formula (1)
One age value:A2=[(2014-2013+22)=23, then it is 23 years old that can calculate above-mentioned second age value.
It should be noted that even if user A includes, multistage is inaugural to be undergone, but due to each section of inaugural time span not
Unanimously, thus using the inaugural experience of multistage the user A calculated age is inaccurate, so preferably using in the present embodiment
The hiring date of the inaugural experience of first paragraph, however, may also include the year that user is calculated using the inaugural experience of multistage in the present invention
Age, the present embodiment are not limited only to this.
The embodiment provided by the application, Second Year is calculated by above-mentioned formula (2) according to the second configured information
Age is worth, and so as to realize at the age that can not directly learn user, calculates the age of user indirectly using the second configured information
Value, user's accurate age is extrapolated further combined with the first age value, meets its age so as to be embodied as user's push
The data of section, so that user receives the data for more conforming to user preferences, further also allow for enterprise according to the different ages
Different marketing strategies is formulated, and then improves enterprise income.
As a kind of optional scheme, when obtaining the log-on message of the first client, in addition to:
S1, obtain the log-on message with multiple second clients of the first client associate;
S2, multiple second users corresponding with multiple second clients are obtained from the log-on message of multiple second clients
Age;
S3, to ages of multiple second users according to all ages and classes size statistical number of person, and by statistical number of person most year
Age is as the 3rd age value;
S4, the age of the first user is calculated at least with the 3rd age value.
Alternatively, in the present embodiment, the incidence relation between above-mentioned second client and the first client can include
But it is not limited at least one of:Unidirectional association, multidirectional association, wherein, by taking microblogging as an example, the second client can be the first visitor
Client corresponding to the user of family end concern, by taking news application as an example, the second client can be that the first client is often clear
The news client look at.
It should be noted that due to when most of users are checked by Network Capture data, can all select contemporary
The information issued.For example, by taking microblogging as an example, the young man of 23 years old or so is identical due to liking, thus selects the most of concern
Number and the microblog users of 20 years old or so.
Specifically illustrated with reference to the example below, by taking microblogging as an example, it is assumed that user A in the first client concern 50 the
Two clients, the age of multiple second users according to corresponding to obtaining the log-on message of multiple second clients, for example, from multiple
The age of 50 users is got in the log-on message of second client, wherein, 7 of 15 years old, 18 of 23 years old, the 12 of 27 years old
How much position, 3 of 60 years old, sort according to the statistical number of person of all ages and classes by 10 of 30 years old, wherein, most is 23 years old, totally 18
Position, minimum 60 years old, totally 3.Thus, by the age of the second user in above-mentioned multiple second clients, analysis calculates the
Three age values are 23 years old, further calculate the age of the first user using the 3rd age value.
The embodiment provided by the application, by obtaining the registration with multiple second clients of the first client associate
Information, further according to all ages and classes statistical number of person, using shared number most age as the 3rd age value, so as to realize profit
The age of the first user is extrapolated with the 3rd age value on associated client end, and then is pushed away according to the age obtained above for user
The data related to user are sent, and then improve Consumer's Experience.
As a kind of optional scheme, the above-mentioned age that the first user is calculated at least with the 3rd age value is included below extremely
It is one of few:
1) age using the 3rd age value as the first user;
2) age of the first user is calculated with the first age value using the 3rd age value;
3) age of the first user is calculated with the second age value using the 3rd age value;
4) age of the first user is calculated with the first age value and the second age value using the 3rd age value.
, can be directly as the age of the first user, i.e., using the City Age III it should be noted that in the present embodiment
The first client is set to have paid close attention to the microblog users that some are not same age brackets, but because quantity is also fewer, thus, will not be right
Calculate that the age of user impacts.Further, in the present embodiment, can with but be not limited to utilize the City Age III and first
Age bracket and the second age bracket are combined, and then go out year of accurate first user according to the different weight calculations of configuration
Age.Wherein, the weight configuration of above-mentioned first age value and the second age value can be, but not limited to be passed through according to admission experience and registration
The information integrity gone through determines that the weight configuration of the 3rd age value can be, but not limited to be pre-configured with according to demand.
Specifically it is described with reference to the example below, it is assumed that the first age value is 24 years old, and the second age value is 23 years old, the 3rd year
Age value is 23 years old, wherein, the weight to the configuration of above-mentioned age value is respectively 50%, 30%, 20%, then can calculate the first use
The age at family is:24*50%+23*30%+23*20%=23.5 year.
The embodiment provided by the application, by by the difference of the 3rd age value and the first age value and the second age value
Combination, it is achieved thereby that the age of the first user can be calculated using various ways.Further so that the age of the first user
What is calculated is more accurate.
As a kind of optional scheme, pushing the data to match with the age of the first user includes:
S1, obtain the data to match with the age of the first user;
S2, the first client data-pushing given where the first user.
Alternatively, in the present embodiment, before the data to match with the age of the first user are obtained, in addition to:It is right
The age of all users got is divided, to obtain multiple different age brackets.So as to realize for the different ages
Duan Tongyi carries out data-pushing, wherein, above-mentioned age bracket can be, but not limited to be divided into according to different application scenarios different
Span, for example, divide within every five years old an age bracket into, or, an age bracket is divided within every 3 years old into, so as to belonging to same age bracket
User push same or analogous data, and the user to being not belonging to same age bracket then pushes different data.To reach
It is the data that user's push meets user preferences according to the age of user so that user is more easily accepted by pushed data, reaches
The effect of data-pushing.
The embodiment provided by the application, by first obtaining the data to match with it according to the age of user, and then
By the data-pushing matched to user, so as to realize accurate data-pushing to relative users, the effect of data-pushing is improved
Rate.
Specifically it is described with reference to shown in Fig. 2 steps S202-S216, first, such as step S202, obtains the first client hair
The log-on message sent, further, judge whether include target information in above-mentioned log-on message, such as step S204, if judging to wrap
Target information is included, then performs step S206, otherwise performs step S212.Judge whether include in log-on message in step S206
The birthday by information of first user, if judging to include above-mentioned birthday by information, the first use is immediately arrived at according to above-mentioned birthday by information
At the age at family, such as step S216, step S208 is otherwise performed, judges whether include the first configured information and second in log-on message
Configured information, if judging to include above-mentioned first configured information and the second configured information, step S210 is performed, is referred to according to first
Show that information and the second configured information calculate the age of the first user, to enter step S216.Further, if judging above-mentioned registration
Do not include target information in information, then execution step S212-S214, the log-on message of multiple second clients of acquisition, and according to
The log-on message of above-mentioned multiple second clients obtains the age of the first user.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
Embodiment 2
According to embodiments of the present invention, a kind of data-pushing device for being used to implement above-mentioned data push method is additionally provided,
As shown in figure 3, the device includes:
1) first acquisition unit 302, for obtaining the log-on message of the first client, wherein, the registration of the first client
Information is used to identify registered first user;
2) judging unit 304, whether include in the log-on message for judging the first client being used to indicate the first user
Age target information;
3) the first computing unit 306, during for including target information in the log-on message for judging the first client, root
The age of the first user is calculated according to target information;
4) push unit 308, for pushing the data to match with the age of the first user.
Alternatively, in the present embodiment, what above-mentioned data-pushing device can be, but not limited to be applied to install in terminal answers
During the data-pushing of client, wherein, above-mentioned terminal can include but is not limited at least one of:Mobile phone, notes
This computer, tablet personal computer, PC, wherein, above-mentioned client can include but is not limited to:Microblogging, wechat, news application, community
Space.By taking microblogging as an example, the log-on message of microblog users is obtained, wherein, the log-on message includes being used to identify user's body
The information of part, judge whether include the target information for being used to indicate the age of the user in above- mentioned information, it is assumed that above-mentioned registration letter
Breath includes being used to indicate the target information at the age of the user, then the age of the user is calculated according to above-mentioned target information, and
The microblog data to match to user push with its age.The example above is a kind of example, and the present embodiment is not appointed to this
What is limited.
It should be noted that it can include but is not limited in above-mentioned target information:Birthday for identifying age of user believes
Breath, for indicate the first user admission the time the first configured information, for indicate the first user hiring date second
Configured information.If directly getting birthday by information from the log-on message of client, the age of the user can be directly obtained,
Without the judgement after carrying out again, so similar with the scheme that prior art provides, the present embodiment will not be repeated here.
Alternatively, in the present embodiment, if the above-mentioned log-on message for judging the first client includes target information,
The age that the first user is calculated according to target information includes but is not limited to:The first configured information and second in log-on message
Configured information draws two age values respectively, and then further according to predetermined weight, two age value weighted sums are calculated
The age of first user.
Alternatively, in the present embodiment, if not including target information in judging the log-on message of the first client, obtain
Taking the log-on message with multiple second clients of the first client associate includes:
S1, if not including target information in judging the log-on message of the first client, obtain and closed with the first client
The log-on message of multiple second clients of connection;
S2, the age of the first user according to corresponding to the log-on message of multiple second clients obtains the first client.
Alternatively, in the present embodiment, the incidence relation of above-mentioned multiple second clients and the first client can include
But it is not limited to:Unidirectional association, bi-directional association, wherein, by taking microblogging as an example, the first user can be by way of concern with multiple the
Two users form unidirectional association, by obtaining the age of multiple second users, so as to realize the age for extrapolating the first user.
Further, it is necessary to which explanation, in the present embodiment, before propelling data, is also needed according to the use being calculated
At the age at family, the data to match with the age of user are obtained, by taking microblogging as an example, it is assumed that user is calculated as 20 years old, then takes
Topic content that to often be paid close attention to from the Network Capture user of -22 years old 18 years old of business device, and by above-mentioned 20 years old of these content active push
User, so as to realize after accurately the age of user is drawn, the data matched with user are accurately pushed according to the age of user.
By the application provide embodiment, obtain be used for identify the first user the first client log-on message it
Afterwards, the target information at the age for indicating the first user is obtained from above-mentioned log-on message, and then according to above-mentioned target information
The age of the first user is calculated, and pushes the data to match with the age of the first user, the year of user is being obtained so as to realize
After age, accurate data are pushed for it for the user of different age group, enterprise is not only convenient for and standard is formulated according to the age of user
True marketing strategy, additional income, and Consumer's Experience is also improved, user is received the data for more meeting user preferences,
Improve the efficiency of data-pushing.
As a kind of optional scheme,
1) judging unit 304 includes:Judge module, whether include first in the log-on message for judging the first client
Configured information and the second configured information, wherein, the first configured information is used for the admission time for indicating the first user, the second instruction letter
Cease the hiring date for indicating the first user;
2) the first computing unit 306 includes:First computing module, in the log-on message for judging the first client
Including the first configured information and during the second configured information, pass through the year realized with lower module and the first user is calculated according to target information
Age:
(1) first calculating sub module, for calculating the first age value of the first user using the first configured information;
(2) second calculating sub modules, for calculating the second age value of the first user using the second configured information;
(3) the 3rd calculating sub modules, for calculating the year of the first user using the first age value and/or the second age value
Age.
It should be noted that in the present embodiment, can be according to the instruction of at least one of admission experience and registration experience
Information calculates the age of the first user.For example, will only include the first configured information in the log-on message of student, i.e. admission is undergone
Relevant information, and default second configured information, then the weight of the first configured information will be configured to 1 when calculating, by second
The weight of configured information is configured to 0, and then calculates the age of the first user.Wherein, the configuration of above-mentioned weight can with but it is unlimited
Determined according to the information integrity of the first configured information and the second configured information.
Alternatively, in the present embodiment, can include but is not limited in above-mentioned first configured information:Multistage admission experience
Enter a school the time, for example, junior middle school (2003 admission), senior middle school's (2006 admission), university's (2009 admission), above-mentioned second configured information can
To include but is not limited to:The hiring date of the inaugural experience of multistage, for example, first job (registration in 2013), second part of work
(registration in 2015).Further, in the present embodiment, can be, but not limited to ask flat to the age that multistage admission experience is calculated
Average, to obtain the first age value.
Alternatively, in the present embodiment, above-mentioned default weight can include but is not limited to:Random arrangement, according to first refer to
Show the integrity degree configuration of information and the second configured information.For example, it is assumed that the first instruction letter in the log-on message of the first client
The integrity degree 90% of breath, the integrity degree of the second configured information only have 40%, then in the default weight of configuration, can be, but not limited to by
The weight of first configured information is configured to 70%, the weight of the second configured information is configured into 30%, and then utilize above-mentioned weight
And first age value and the second age value age of the first user is calculated.For example, the first age value is 24 years old, the second age
It is worth for 23 years old, then the age that can obtain the first user according to above-mentioned default weight is:24*70%+23*30%=23.7 year.
The embodiment provided by the application, by obtaining the first configured information and the in the first client registers information
Two configured informations, wherein, the first configured information is used for the admission time for indicating the first user, and the second configured information is used to indicate the
The hiring date of one user, the first age value and second are calculated respectively using above-mentioned first configured information and the second configured information
Age value, so according to default weight by the first age value and the second age value weighted sum to draw the age of the first user,
Realize using the time is entered a school and hiring date accurately obtains age of user, so as to realize according to different age segment informations,
Meet the data of user preferences for user's push of different age group, reach the effect of accurate propelling data.
As a kind of optional scheme, the first calculating sub module is realized by following steps and calculated according to the first configured information
The first age value of first user includes:
S1, the first age value is calculated by below equation:
Wherein, A1For identifying the first age value, T is used to identify current time, tiIt is signified for identifying the first configured information
The admission time of i-th section of admission experience of the first user shown, xiFor identifying the first user in the admission that i-th section of admission is undergone
Between when the default age, n be used for identify the first configured information indicated by the first user n sections admission experience.
Alternatively, in the present embodiment, can by the use of according to the average value that the historical information of client calculates as upper
The default age is stated, corresponding numerical value can also be pre-configured with as the above-mentioned default age, this is not limited only in the present embodiment.
Specifically illustrated with reference to the example below, it is assumed that got in the log-on message of the first client (by taking microblogging as an example)
First configured information is as follows:
User name:User A
Admission experience:Junior middle school:2003, senior middle school:2006, university:2009.
As shown in the above, totally three sections of the admission experience that user A is registered on microblogging, it is assumed that current time 2014
Year, default age when junior middle school enters a school is 13 years old, and default age when senior middle school enters a school is 16 years old, default age during college entrance
For 19 years old, then the first age value of the user A can be calculated using above-mentioned formula (1):A1=[(2014-2003+13)+
(2014-2006+16)+(2014-2009+19)]/3=24, then it is 24 years old that can calculate above-mentioned first age value.
The embodiment provided by the application, First Year is calculated by above-mentioned formula (1) according to the first configured information
Age is worth, and so as to realize at the age that can not directly learn user, calculates the age of user indirectly using the first configured information
Value, user's accurate age is extrapolated further combined with the second age value, meets its age so as to be embodied as user's push
The data of section.
As a kind of optional scheme, the second calculating sub module is realized by following steps and calculated according to the second configured information
The second age value of first user includes:
S1, the second age value is calculated by below equation:
A2=T-tw+xw (4)
Wherein, A2For identifying the second age value, T is used to identify current time, twIt is signified for identifying the second configured information
The hiring date for the inaugural experience of first user's first paragraph shown, xwFor identifying registration of first user in the inaugural experience of first paragraph
The default age during time.
Alternatively, in the present embodiment, can by the use of according to the average value that the historical information of client calculates as upper
The default age is stated, corresponding numerical value can also be pre-configured with as the above-mentioned default age, this is not limited only in the present embodiment.
Specifically illustrated with reference to the example below, it is assumed that got in the log-on message of the first client (by taking microblogging as an example)
Second configured information is as follows:
User name:User A
Registration is undergone:First job:2013 so far
As shown in the above, the inaugural experience that user A is registered on microblogging only has one section, it is assumed that current time 2014
Year, the age during registration of the inaugural experience of first paragraph is 22 years old, then can calculate the of the user A using above-mentioned formula (1)
One age value:A2=[(2014-2013+22)=23, then it is 23 years old that can calculate above-mentioned second age value.
It should be noted that even if user A includes, multistage is inaugural to be undergone, but due to each section of inaugural time span not
Unanimously, thus using the inaugural experience of multistage the user A calculated age is inaccurate, so preferably using in the present embodiment
The hiring date of the inaugural experience of first paragraph, however, may also include the year that user is calculated using the inaugural experience of multistage in the present invention
Age, the present embodiment are not limited only to this.
The embodiment provided by the application, Second Year is calculated by above-mentioned formula (2) according to the second configured information
Age is worth, and so as to realize at the age that can not directly learn user, calculates the age of user indirectly using the second configured information
Value, user's accurate age is extrapolated further combined with the first age value, meets its age so as to be embodied as user's push
The data of section, so that user receives the data for more conforming to user preferences, further also allow for enterprise according to the different ages
Different marketing strategies is formulated, and then improves enterprise income.
As a kind of optional scheme, said apparatus also includes:
1) second acquisition unit, for when obtaining the log-on message of the first client, obtaining and the first client associate
Multiple second clients log-on message;
2) the 3rd acquiring unit, for being obtained and multiple second clients pair from the log-on message of multiple second clients
The age for the multiple second users answered;
3) statistic unit, for the age to multiple second users according to all ages and classes size statistical number of person, and will statistics
Number most age is as the 3rd age value;
4) the second computing unit, for calculating the age of the first user at least with the 3rd age value.
Alternatively, in the present embodiment, the incidence relation between above-mentioned second client and the first client can include
But it is not limited at least one of:Unidirectional association, multidirectional association, wherein, by taking microblogging as an example, the second client can be the first visitor
Client corresponding to the user of family end concern, by taking news application as an example, the second client can be that the first client is often clear
The news client look at.
It should be noted that due to when most of users are checked by Network Capture data, can all select contemporary
The information issued.For example, by taking microblogging as an example, the young man of 23 years old or so is identical due to liking, thus selects the most of concern
Number and the microblog users of 20 years old or so.
Specifically illustrated with reference to the example below, by taking microblogging as an example, it is assumed that user A in the first client concern 50 the
Two clients, the age of multiple second users according to corresponding to obtaining the log-on message of multiple second clients, for example, from multiple
The age of 50 users is got in the log-on message of second client, wherein, 7 of 15 years old, 18 of 23 years old, the 12 of 27 years old
How much position, 3 of 60 years old, sort according to the statistical number of person of all ages and classes by 10 of 30 years old, wherein, most is 23 years old, totally 18
Position, minimum 60 years old, totally 3.Thus, by the age of the second user in above-mentioned multiple second clients, analysis calculates the
Three age values are 23 years old, further calculate the age of the first user using the 3rd age value.
The embodiment provided by the application, by obtaining the registration with multiple second clients of the first client associate
Information, further according to all ages and classes statistical number of person, using shared number most age as the 3rd age value, so as to realize profit
The age of the first user is extrapolated with the 3rd age value on associated client end, and then is pushed away according to the age obtained above for user
The data related to user are sent, and then improve Consumer's Experience.
As a kind of optional scheme, the second computing unit includes at least one of:
1) the second computing module, for the age using the 3rd age value as the first user;
2) the 3rd computing module, for calculating the age of the first user with the first age value using the 3rd age value;
3) the 4th computing module, for calculating the age of the first user with the second age value using the 3rd age value;
4) the 5th computing module, for calculating the first user using the 3rd age value and the first age value and the second age value
Age.
, can be directly as the age of the first user, i.e., using the City Age III it should be noted that in the present embodiment
The first client is set to have paid close attention to the microblog users that some are not same age brackets, but because quantity is also fewer, thus, will not be right
Calculate that the age of user impacts.Further, in the present embodiment, can with but be not limited to utilize the City Age III and first
Age bracket and the second age bracket are combined, and then go out year of accurate first user according to the different weight calculations of configuration
Age.Wherein, the weight configuration of above-mentioned first age value and the second age value can be, but not limited to be passed through according to admission experience and registration
The information integrity gone through determines that the weight configuration of the 3rd age value can be, but not limited to be pre-configured with according to demand.
Specifically it is described with reference to the example below, it is assumed that the first age value is 24 years old, and the second age value is 23 years old, the 3rd year
Age value is 23 years old, wherein, the weight to the configuration of above-mentioned age value is respectively 50%, 30%, 20%, then can calculate the first use
The age at family is:24*50%+23*30%+23*20%=23.5 year.
The embodiment provided by the application, by by the difference of the 3rd age value and the first age value and the second age value
Combination, it is achieved thereby that the age of the first user can be calculated using various ways.Further so that the age of the first user
What is calculated is more accurate.
As a kind of optional scheme, push unit 308 includes:
1) the second acquisition module, for obtaining the data to match with the age of the first user;
2) pushing module, for by data-pushing give the first user where the first client.
Alternatively, in the present embodiment, before the data to match with the age of the first user are obtained, in addition to:It is right
The age of all users got is divided, to obtain multiple different age brackets.So as to realize for the different ages
Duan Tongyi carries out data-pushing, wherein, above-mentioned age bracket can be, but not limited to be divided into according to different application scenarios different
Span, for example, an age bracket is turned within every five years old, or, an age bracket is turned within every 3 years old, so as to belonging to same age bracket
User push same or analogous data, and the user to being not belonging to same age bracket then pushes different data.To reach
It is the data that user's push meets user preferences according to the age of user so that user is more easy to receive pushed data, reaches
The effect of data-pushing.
The embodiment provided by the application, by first obtaining the data to match with it according to the age of user, and then
By the data-pushing matched to user, so as to realize accurate data-pushing to relative users, the effect of data-pushing is improved
Rate.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.