Information recommendation method and system in web interface
Technical field
The present invention relates to information recommendation method and system in internet arena, more particularly to a kind of web interface.
Background technology
With continuing to develop for internet, increasing user's selection is done shopping on the net, listens music, sees video.
User is done shopping by browser access, music, video website, it is possible to easily select oneself required or production interested
Product.Particularly in electric business field, due to not being limited by geographic, and operation cost can be preferably controlled, such as need not
Entity StoreFront, personnel demand are also less etc., therefore attract increasing user.
With the development of internet, each platform also constantly releases various human nature services.For example:Existing platform,
Dependent merchandise is recommended to link for user.The technology of current existing several Recommendations information is as follows:(1) according to most users
Interest or hobby to carry out product unified recommendation;(2) recommended technology based on user collaboration, similar users are sorted out, then
Similar product is recommended to preference that most like user is conventional according to it;(3) recommended technology based on content similarities, according to
User conventional preference recommends similar product.
As above recommendation method, is not to judge the hobby of user according to the current network behavior of user, so recommends
Commodity have deviation unavoidably, and user the behavior such as goes to be browsed, clicked on and can also increase for data server according to the product of recommendation in addition
Plus extra burden, commending system actually can not play due effect.
Separately there is a kind of recommendation method:According to the click of user or search behavior data, the interest product classification of user is determined,
Recommend in the other visual windows of current page to user.
The deficiency of this method is, once the click of user/search condition is determined, according to the click/search condition from number
The data asked according to server are then constant, it is impossible to which dynamic realtime is adjusted, and in current same visual windows and also
In the window/webpage not presented, its data shown is also constant;Only when click/search condition changes, it is counted
According to just changing, and then cause user can not be made rapidly to find oneself needs or product interested, reduction user's
Browse efficiency and viewing experience.
The content of the invention
To solve the above problems, the present invention proposes information recommendation method and system in a kind of web interface, can according to
The click behavioral data at family, is updated the data in same visual windows in real time, recommends interested product to user, is improved
The browse efficiency and viewing experience of user.
The present invention provides information recommendation method in a kind of web interface, comprises the following steps:
A1. the click behavior of webpage host process user in real, and record the attribute for clicking on behavioural information block and position
Data, and the position data with the close close block of information of the click behavioural information block;
A2. webpage host process meets the new data of the click behavioural information block's attribute to data server requests;
A3. according to the position data of the close block of information, webpage host process replaces the new data of acquisition same
The initial data of close block of information in visual windows, is presented in current visible window, recommends to user.
Preferably, methods described is additionally included in after the step A1, is carried out parallel with the step A2:
A4. webpage host process calculates according to the attribute of the click behavioural information block and adjusts retrieval weight, and/or meter
The number of clicks of the attribute is calculated, and is stored in caching;
If A5. webpage host process listens to the rolling loading behavior of visual windows, according to the retrieval weight, again to number
According to server request data, and the new data of acquisition is presented in the visual windows of loading.
Further preferably, also include between the step A4 and A5:
S11. according to the retrieval weight, judge whether the accounting of each attribute exceedes threshold value, if exceeding, into step S2;
If not less than threshold value, into step A1 or A5;
S2. webpage host process pop-up dialogue box, monitors and obtains the click behavior in dialog box, if the click behavior obtained
It is to disagree accurate recommendation, then into step A1 or A5;If the click behavior obtained is to agree to accurate recommendation, into step
S3;
S3. webpage host process meets the new data of the attribute more than threshold value to data server requests, and will obtain
New data, be presented in visual windows.
Further preferably, also include between the step A4 and A5:
S12. according to the number of clicks, judge whether the number of clicks exceedes threshold value, if exceeding, into step S2;
If not less than threshold value, into step A1 or A5;
S2. webpage host process pop-up dialogue box, monitors and obtains the click behavior in dialog box, if the click behavior obtained
It is to disagree accurate recommendation, then into step A1 or A5;If the click behavior obtained is to agree to accurate recommendation, into step
S3;
S3. webpage host process meets the new data of the attribute more than threshold value to data server requests, and will obtain
New data, be presented in visual windows.
Preferably, described information includes:Commodity, music, video.
Preferably, the attribute includes:Title, category, country, region, mailing circuit, price, time, time.
Preferably, the close block of information includes the neighbor information block adjacent with the click behavioural information block, currently may be used
Other information block in viewing window.
Preferably, in the step A3, if the close block of information has clicked on behavioural information block before belonging to, do not do most
It is preferential to replace, preferentially replace other click behavioural information blocks.
Preferably, in the step A3, if all close block of informations have clicked on row before belonging in the visual windows
For block of information, then all it is replaced.
The present invention also provides a kind of computer-readable recording medium, it is characterised in that it is stored for electronic data interchange
Computer program, the computer program causes computer to perform method as described above.
The present invention also provides information recommendation system in a kind of web interface, it is characterised in that including webpage host process sum
According to server, the webpage host process and the data server are used to handle following process:
A1. the click behavior of webpage host process user in real, and record the attribute for clicking on behavioural information block and position
Data, and the position data with the close close block of information of the click behavioural information block;
A2. webpage host process meets the new data of the click behavioural information block's attribute to data server requests;
A3. according to the position data of the close block of information, webpage host process replaces the new data of acquisition same
The initial data of close block of information in visual windows, is presented in current visible window, recommends to user.
Preferably, the webpage host process and the data server are additionally operable to handle following process:
A4. webpage host process calculates according to the attribute of the click behavioural information block and adjusts retrieval weight, and/or meter
The number of clicks of the attribute is calculated, and is stored in caching;
If A5. webpage host process listens to the rolling loading behavior of visual windows, according to the retrieval weight, again to number
According to server request data, and the new data of acquisition is presented in the visual windows of loading.
Beneficial effects of the present invention:By the click behavior of user in real, according to the category of the click behavioural information block
Property replaces the initial data of the close block of information in same visual windows to data server requests new data.Using just
Approximately principle is in the click on area of user, dynamic content intuitively interested to presentation user, allow user quickly find required for/
Product interested, improves the browse efficiency and viewing experience of user.
More advantages can also be obtained in further preferred scheme:By the click behavior of counting user, adjust in real time
Whole retrieval weight, updates the data for continuing to roll in the visual windows of loading, accelerates the presentation speed of new data, is conducive to using
Related data is fast checked at family, required/interested product is found more quickly, further increase user browses effect
Rate and viewing experience.When the accounting or number of times of a certain attribute in retrieval weight exceed threshold value, then meet to data server requests
The new data of the attribute, the full detail block for replacing current visible window is further improved clear there is provided accurate recommendation
The efficiency look at and experience.
Brief description of the drawings
Fig. 1 is the flow chart of information recommendation method in web interface in the embodiment of the present invention 1;
Fig. 2 is acquisition user's click behavior schematic diagram in the embodiment of the present invention 1;
Fig. 3 is close block of information replacement schematic diagram in the embodiment of the present invention 1;
Fig. 4 is rolling loading behavior schematic diagram in the embodiment of the present invention 1;
Fig. 5 is the flow chart of information recommendation method in web interface in the embodiment of the present invention 2.
Embodiment
With reference to embodiment and compare accompanying drawing the present invention be described in further detail, it should be emphasised that,
What the description below was merely exemplary, the scope being not intended to be limiting of the invention and its application.
Web browser be most frequently with to client-side program, can be shown from data, services by web browser
In HTML (Hypertext Markup Language, abbreviation HTML) file that device or file system are obtained
Hold, and be easy to html file of the user with obtaining to interact.The browser that html file is obtained from data server is webpage
Common web browser includes the Internet Explorer of Microsoft on browser, PC, Mozilla's
Firefox, Apple Safari, 360 secure browsers, search dog high speed browser, everyday browser, proud trip browser, Baidu
Browser, Tencent QQ browser etc..
The operation principle of web browser is:Interacted by http protocol with data server and obtain html file, most
User is presented in the form of a web page eventually, and these web page files forms are usually HTML, and are prolonged by multipurpose Internet mail
Stretch standard (Multipurpose Internet MailExtensions, abbreviation MIME) to indicate in http protocol, and pass through
URL (Uniform/Universal Resource Locator, abbreviation URL) is specified.Browser is also propped up
Hold other URL types and its corresponding agreement, such as FTP, Gopher, HTTPS (encryption version of http protocol).HTTP contents
Type and URL protocol specifications allow the web page element such as embedded images, animation, video, sound, Streaming Media in webpage.Webpage is clear
Device of looking at also supports the extensive form in addition to HTML, the picture format such as JPEG, PNG, GIF in itself, and can extend
Support that each document is to be obtained respectively from data server in numerous plug-in units (plug-1ns), webpage.
During accession page, each group information all carries specific attribute, and data server can be sieved according to certain condition
These attributes are selected, and by the data distributing with these attributes to web browser, web browser is finally in the way of webpage
It is presented to user.Under normal circumstances, user changes these attributes, and trigger in webpage manually according to the purpose of oneself
New screening conditions are sent request of data by Javascript shell scripts, Javascript shell scripts to data server.
Server can issue html file according to request condition, and the web page files for refreshing or reopening a new HTML are presented to
User.
Web browser loads html data according to specific screening conditions, and by Javascript shell scripts come
The rolling behavior of monitoring users in a browser, constantly to the more data of data server requests.
Embodiment 1
The present embodiment provides information recommendation method, its flow chart in a kind of web interface as shown in figure 1, including following step
Suddenly:
101. the click behavior of webpage host process user in real, and record the attribute for clicking on behavioural information block and position
Data, and the position data with the close close block of information of the click behavioural information block;
102. webpage host process meets the new data of the click behavioural information block's attribute to data server requests;
103. according to the position data of the close block of information, the new data of acquisition is replaced close letter by webpage host process
The initial data of block is ceased, is presented in current visible window;
104. webpage host process calculates according to the attribute of the click behavioural information block and adjusts retrieval weight, and store
In caching;
105. if webpage host process listens to the rolling loading behavior of visual windows, according to the retrieval weight, again to
Data server requests data, and the new data of acquisition is presented in the visual windows of loading.
It is main in web browser that new request is handled by webpage host process, realize numerous functions;Webpage host process also may be used
So that comprising multiple subprocess, subprocess is responsible for handling single request.Webpage host process can be triggered and under data server automatically
The block of information with many attribute of hair is presented in the way of default rule is with html web page in current visible window.Work as net
Page host process is opened after the webpage, and subprocess A therein can read the attribute of the block of information of each in visual windows, positional information
Deng, and be stored in the caching of the process.
Block of information as described above, its information includes:Commodity, music, video etc., its block of information carry many attribute.Business
The base attribute of product includes:Title, category, country, region, mailing circuit, price, time, time etc.;The base attribute of music
Including:Title, category, country, region, time, time, price etc.;The base attribute of video includes:Title, category, country,
Region, time, time, price etc..
As shown in Fig. 2 each block of information carries a click behavior button that can be monitored by subprocess B, by using
Family click information block 001, subprocess B will pass on corresponding instruct to give webpage host process, and triggering webpage host process is obtained and recorded:
Click on attribute and the position of behavioural information block, and the positional number with the close neighbor information block of the click behavioural information block
According to.Obtain after above- mentioned information, subprocess C meets the click behavioural information block to data server requests with the information and belonged to
The new data of property.
As shown in figure 3, according to the position data of close block of information, webpage host process replaces the new data of acquisition same
The initial data of close block of information 002, is presented in current visible window in individual visual windows.Close information shown in Fig. 3
Block is:It is in left and right, upper (nothing), the block of information 002 of lower position of block of information 001.
In addition to position as shown in Figure 3, close block of information can also be:The block of information adjoined with block of information 001;With information
Centered on block 001, using R by the block of information included in the range of radius (R numerical values recited is set according to demand);Currently
All block of information in visual windows.
By method as above, using nearby principle, directly in current visible window, in the close region of the behavior of click
Replace corresponding block of information in real time, the content interested to presentation user directly perceived, this avoid need to jump in the prior art
Turn new page, or need to jump in other visual windows the content interested to just seeing by rolling behavior, carry
The browse efficiency and viewing experience of high user.Simultaneously as the same visual window of the content recommended only under the same page
In mouthful, it is not necessary to which the content for recommendation is separately provided a visual windows, saves the cost of visual windows, simplifies current page
Visual windows quantity under face, is conducive to improving the succinct degree under current page, and improve Consumer's Experience.
If wherein some close block of information belong to before the behavioural information block of click, override replacement is not done,
Preferentially replace other close block of informations.Behavioural information block has been clicked on before all close block of information is belonged to, then has all been entered
Row is replaced.
In addition, subprocess D is according to the attribute for having clicked on behavioural information block, calculates and adjust retrieval weight, and be stored in slow
In depositing.If as shown in figure 4, webpage host process listens to the rolling loading behavior of visual windows, triggering loading data subprocess E
When, webpage host process will read the retrieval weight adjusted in subprocess D, to data server requests data, and by acquisition
New data, is presented in the visual windows 003 of loading.
By the click behavior of counting user, the weight of adjustment retrieval in real time updates the number in the visual windows for rolling loading
According to, the presentation speed of new data is accelerated, is conducive to user fast to check related data, required for finding more quickly/sense
The product of interest, further increases the browse efficiency and viewing experience of user.It it also avoid simultaneously in the prior art because of retrieval
Condition determination, the defect not being adapted dynamically from the data of data server requests.
Embodiment 2
The present embodiment provides information recommendation method, its flow chart in a kind of web interface as shown in figure 5, including following step
Suddenly:
101. the click behavior of webpage host process user in real, and record the attribute for clicking on behavioural information block and position
Data, and the position data with the close close block of information of the click behavioural information block;
102. webpage host process meets the new data of the click behavioural information block's attribute to data server requests;
103. according to the position data of the close block of information, webpage host process replaces the new data of acquisition same
The initial data of close block of information in visual windows, is presented in current visible window;
104. webpage host process calculates according to the attribute of the click behavioural information block and adjusts retrieval weight, and store
In caching;
201., according to the retrieval weight, judge whether the accounting of each attribute exceedes threshold value, if exceeding, and enter step
202;If not less than threshold value, into step 101 or 105;
202. webpage host process pop-up dialogue box, monitor and obtain the click behavior in dialog box, if the click row obtained
To be to disagree accurate recommendation, then into step 101 or 105;If the click behavior obtained is to agree to accurate recommendation, enter step
Rapid 203;
203. webpage host processes meet the new data of the attribute more than threshold value to data server requests, and will obtain
New data, be presented in visual windows;
105. if webpage host process listens to the rolling loading behavior of visual windows, according to the retrieval weight, again to
Data server requests data, and the new data of acquisition is presented in the visual windows of loading.
The present embodiment and the difference of embodiment 1 are:The accounting for adding each attribute in retrieval weight judges, judges whether
More than threshold value, if beyond threshold value, then pop-up dialogue box, provides the user with the selection of accurate recommendation.
According to the retrieval weight after adjustment in subprocess D, subprocess F judges whether the accounting of each attribute exceedes threshold value, such as
The accounting of some attribute or certain several attribute exceedes threshold value, then triggers subprocess G pop-up dialogue box, prompt the user whether needs
Accurate recommendation is carried out for some more than the threshold value or multiple attributes, while listening for click row of the user to the dialog box
For.If the click behavior obtained is to disagree, user is carried out as usual and clicks on behavior and rolls the monitoring of loading behavior.If
The click behavior of acquisition is to agree to, then meets the new number of some or the multiple attributes more than the threshold value to data server requests
According to, and the new data of acquisition is presented in visual windows.
User is presented to there is provided accurate recommendation by judging attribute accounting, and by the attribute more than threshold value, is more entered
One step improves the efficiency browsed and experience.
Embodiment 3
The present embodiment provides information recommendation method in a kind of web interface, comprises the following steps:
101. the click behavior of webpage host process user in real, and record the attribute for clicking on behavioural information block and position
Data, and the position data with the close close block of information of the click behavioural information block;
102. webpage host process meets the new data of the click behavioural information block's attribute to data server requests;
103. according to the position data of the close block of information, webpage host process replaces the new data of acquisition same
The initial data of close block of information in visual windows, is presented in current visible window;
104. webpage host process calculates according to the attribute of the click behavioural information block and adjusts retrieval weight, count simultaneously
The number of clicks of the attribute is calculated, and is stored in caching;
301. according to the number of clicks, judges whether to exceed threshold value, if exceeding, into step 302;If not less than threshold
Value, then into step 101 or 105;
302. webpage host process pop-up dialogue box, monitor and obtain the click behavior in dialog box, if the click row obtained
To be to disagree accurate recommendation, then into step 101 or 105;If the click behavior obtained is to agree to accurate recommendation, enter step
Rapid 303;
303. webpage host processes meet the new data of the attribute more than threshold value to data server requests, and will obtain
New data, be presented in visual windows;
105. if webpage host process listens to the rolling loading behavior of visual windows, according to the retrieval weight, again to
Data server requests data, and the new data of acquisition is presented in visual windows.
The present embodiment and the difference of embodiment 2 are:Webpage host process is counted to the attribute for clicking on behavioural information block,
Judge whether to exceed threshold value, if beyond threshold value, then pop-up dialogue box, provides the user with the selection of accurate recommendation.
Counted by the number of times to attribute, and the attribute more than threshold value is presented to user there is provided accurate recommendation, more
Further increase the efficiency browsed and experience.
Above content is to combine specific/preferred embodiment made for the present invention be further described, it is impossible to recognized
The specific implementation of the fixed present invention is confined to these explanations.For general technical staff of the technical field of the invention,
Without departing from the inventive concept of the premise, it can also make some replacements or modification to the embodiment that these have been described,
And these are substituted or variant should all be considered as belonging to protection scope of the present invention.