Summary of the invention
The method and apparatus that the purpose of this invention is to provide a kind of optimizing page push of mobile terminal, it can push the page for the user according to user's hobby.
For achieving the above object, the present invention adopts following technical scheme:
A kind of method of optimizing page push of mobile terminal comprises that collecting the user uses information process and page push process, wherein,
Described collection user uses information process to comprise:
Step 11: when the user clicks the visit mobile phone resources, during the mobile terminal accessing Resource Server, the running environment of web page program interception user access request;
Step 12: according to the user access request of being tackled, obtain user access information, this user access information comprises title, type, time, the visitor of the resource of user capture;
Step 13: the user access information that is obtained is saved in first database;
Described page push process comprises:
Step 21: when the user capture searched page, when proposing searching request, Resource Server is according to user search request searching resource in second database, and the running environment of web page program is tackled described user search request simultaneously;
Step 22:, from second database, obtain the recommendation resource according to the historical search information of this user in user search request of being tackled and described first database;
Step 23: the resource that the Resource Server search obtains is formed the loopback content with the recommendation resource of being obtained, return to the user.
Preferred as technique scheme, describedstep 13 is specially:
According to the international mobile subscriber identity in the header of described user access request, the user access information classification of being obtained is saved in first database.
Preferred as technique scheme, describedstep 22 specifically comprises:
According to the historical search information of this user in described first database, determine to recommend the number of dissimilar resources in the resource;
According to the number of dissimilar resources in key word in the user search request of being tackled and the determined recommendation resource, from second database, obtain the recommendation resource.
Preferred as technique scheme, the type of described recommendation resource comprises music, picture and video.
Preferred as technique scheme, the resource in the described recommendation resource is different with the resource type that Resource Server search obtains.
A kind of web page server comprises that collecting the user uses information module and page push module, wherein,
Described collection user uses information module to comprise:
Blocking module is used for clicking the visit mobile phone resources as the user, during the mobile terminal accessing Resource Server, and the interception user access request;
First acquisition module is used for obtaining user access information according to the user access request of being tackled, and this user access information comprises title, type, time, the visitor of the resource of user capture;
Preserve module, the user access information that is used for being obtained is saved in first database;
Described page push module comprises:
Search and blocking module are used for when proposing searching request, according to user search request searching resource in second database, tackling described user search request simultaneously when the user capture searched page;
Second acquisition module is used for the historical search information according to the user search request of being tackled and described first this user of database, obtains the recommendation resource from second database;
Return module, be used for the resource that the Resource Server search obtains is formed the loopback content with the recommendation resource of being obtained, return to the user.
Preferred as technique scheme, described preservation module is further used for according to the international mobile subscriber identity in the header of described user access request, and the user access information classification of being obtained is saved in first database.
Preferred as technique scheme, described second acquisition module further comprises:
Determination module is used for the historical search information according to described first this user of database, determines to recommend the number of dissimilar resources in the resource;
Obtain submodule, be used for number, from second database, obtain the recommendation resource according to dissimilar resources in the key word of the user search request of being tackled and the determined recommendation resource.
Preferred as technique scheme, the type of described recommendation resource comprises music, picture and video.
Preferred as technique scheme, the resource in the described recommendation resource is different with the resource type that Resource Server search obtains.
The method and apparatus of optimizing page push of mobile terminal provided by the invention, can come the hobby of analysis user by the Visitor Logs in record and analysis user past, and come for the user pushes Webpage according to user's hobby, thereby the present invention can provide service preferably for the user.
Embodiment
As depicted in figs. 1 and 2, the invention provides a kind of method of optimizing page push of mobile terminal, it comprises that collecting the user uses information process and page push process, wherein,
Described collection user uses information process to comprise:
Step 11: when the user clicks the visit mobile phone resources, during the mobile terminal accessing Resource Server, the running environment of web page program interception user access request;
This step is clicked the visit mobile phone resources for the user, and portable terminal is connected to long-range Resource Server by the mobile network, and is synchronous, and the running environment interception user of WEB (webpage) program asks, and can not influence the speed of user access resources like this.
Step 12: according to the user access request of being tackled, obtain user access information, this user access information comprises title, type, time, the visitor of the resource of user capture;
In this step, after the interception user request, running environment can the Visitor Logs handling procedure be obtained the information of various attributes such as the title, type, time, visitor of the resource of user capture.
Step 13: the user access information that is obtained is saved in first database;
Described page push process comprises:
Step 21: when the user capture searched page, when proposing searching request, Resource Server is according to user search request searching resource in second database, and the running environment of web page program is tackled described user search request simultaneously;
Step 22:, from second database, obtain the recommendation resource according to the historical search information of this user in user search request of being tackled and described first database;
Step 23: the resource that the Resource Server search obtains is formed the loopback content with the recommendation resource of being obtained, return to the user.
The method of optimizing page push of mobile terminal of the present invention, can come the hobby of analysis user by the Visitor Logs in record and analysis user past, and come for the user pushes Webpage according to user's hobby, thereby the present invention can provide service preferably for the user.
Among the present invention, first database is mainly used in the preservation user access information, and second database is mainly used in the various resources of preservation, and certainly, those skilled in the art can expect easily that this first and second database also can be same database.
Use in the information process the collection user, above-mentionedsteps 13 preferably is specially:
According to the IMSI in the header of described user access request (International MobileSubscriber Identity, international mobile subscriber identity), the user access information classification of being obtained is saved in first database.Like this, from this database, search same user's visit information after can making things convenient for.
In the page push process, above-mentionedsteps 22 preferably specifically comprises:
According to the historical search information of this user in described first database, determine to recommend the number of dissimilar resources in the resource;
According to the number of dissimilar resources in key word in the user search request of being tackled and the determined recommendation resource, from second database, obtain the recommendation resource.
Preferably, the type of described recommendation resource comprises music, picture and video.
Preferably, the resource in the described recommendation resource is different with the resource type that the Resource Server search obtains.Like this, for the user recommends the resource different with the resource type of its search, thereby can provide recommendation service preferably for the user.
Describe the process of page push below in detail with a concrete example.
For example: the user search key word is the music of " love ", and at this moment, the page push process may further comprise the steps:
1, Resource Server earlier directly in the database search key comprise the most popular music sources of " love ";
2, after the running environment of web page program is intercepted user search request, IMSI number according to the user is searched the type that this user's historical search is write down in database, if this user's historical search is crossed picture resource 2 times, video resource 1 time, then the type of resource ratio is 2: 1, needs to recommend this user's picture resource 20* (2/3)=13 so, video resource 20* (1/3)=7, if there is not user's historical search record, then do not recommend resource content.
Wherein, recommend the number of resource perhaps artificially to stipulate a fixed number according to what next definite (for example, the historical search record are more, then some resources of recommending more) of user's historical search record.In the present embodiment 20 is the fixed number of artificial regulation.
3, according to above-mentioned recommendation resource count to search key in the database for most popular preceding 13 picture resources of " love ", key word preceding 7 video resources for " love ", form and recommend resource.
4, music sources that searches the most at last and recommendation resource are formed the loopback content together, return to the client.
Corresponding with the method for above-mentioned optimizing page push of mobile terminal, the present invention also provides a kind of web page server, and as shown in Figure 3, it comprises: collect the user and use information module 31 and page push module 32, wherein,
Described collection user uses information module 31 to comprise:
Blocking module 311 is used for clicking the visit mobile phone resources as the user, during the mobile terminal accessing Resource Server, and the interception user access request;
First acquisition module 312 is used for obtaining user access information according to the user access request of being tackled, and this user access information comprises title, type, time, the visitor of the resource of user capture;
Preserve module 313, the user access information that is used for being obtained is saved in first database;
Described page push module 32 comprises:
Search and blocking module 321 are used for when proposing searching request, according to user search request searching resource in second database, tackling described user search request simultaneously when the user capture searched page;
Second acquisition module 322 is used for the historical search information according to the user search request of being tackled and described first this user of database, obtains the recommendation resource from second database;
Return module 323, be used for the resource that the Resource Server search obtains is formed the loopback content with the recommendation resource of being obtained, return to the user.
Web page server of the present invention can come the hobby of analysis user by the record and the Visitor Logs in analysis user past, and comes for the user pushes Webpage according to user's hobby, thereby the present invention can serve for the user provide preferably.
Preferably, described preservation module 313 is further used for according to the international mobile subscriber identity in the header of described user access request, and the user access information classification of being obtained is saved in first database.Like this, from this database, search same user's visit information after can making things convenient for.
Preferably, described second acquisition module 322 further comprises:
Determination module is used for the historical search information according to described first this user of database, determines to recommend the number of dissimilar resources in the resource;
Obtain submodule, be used for number, from second database, obtain the recommendation resource according to dissimilar resources in the key word of the user search request of being tackled and the determined recommendation resource.
Preferably, the type of described recommendation resource comprises music, picture and video.
Preferably, the resource in the described recommendation resource is different with the resource type that the Resource Server search obtains.Like this, for the user recommends the resource different with the resource type of its search, thereby can provide recommendation service preferably for the user.
The above is preferred embodiment of the present invention only, is not to be used for limiting practical range of the present invention; If do not break away from the spirit and scope of the present invention, the present invention is made amendment or is equal to replacement, all should be encompassed in the middle of the protection domain of claim of the present invention.