WO2018049908A1 - Web page generation method and device - Google Patents

Web page generation method and device Download PDF

Info

Publication number
WO2018049908A1
WO2018049908A1 PCT/CN2017/092996 CN2017092996W WO2018049908A1 WO 2018049908 A1 WO2018049908 A1 WO 2018049908A1 CN 2017092996 W CN2017092996 W CN 2017092996W WO 2018049908 A1 WO2018049908 A1 WO 2018049908A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
score
order
presented
webpage
Prior art date
Application number
PCT/CN2017/092996
Other languages
French (fr)
Chinese (zh)
Inventor
肖明昭
Original Assignee
北京京东尚科信息技术有限公司
北京京东世纪贸易有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京京东尚科信息技术有限公司, 北京京东世纪贸易有限公司 filed Critical 北京京东尚科信息技术有限公司
Publication of WO2018049908A1 publication Critical patent/WO2018049908A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces

Definitions

  • the present application relates to the field of computer technologies, and in particular, to the field of Internet technologies, and in particular, to a web page generation method and apparatus.
  • Information Push also known as “webcasting” is a technology that reduces information overload by pushing the information the user needs on the Internet through certain technical standards or protocols. Information push technology can reduce the time it takes for users to search on the network by actively pushing information to users.
  • the existing information push method is usually by the operator manually screening a part of the product for recommendation; or by offline big data analysis, modeling each user, recommending different products through different models, etc., but these push solutions are not combined with the user. Pushing real-time requirements makes information push untargeted.
  • the purpose of the present application is to propose an improved web page generation method and apparatus to solve the technical problems mentioned in the above background art.
  • the present application provides a webpage generating method, the method comprising: recording operation information of a user in a predetermined webpage; acquiring order information of the user in a preset time period; and according to the operation information and the At least one of the order information, the predetermined information to be presented on the predetermined webpage is scored; and according to the score, the information to be presented on the predetermined webpage is sorted and generated Sorted Web page.
  • the scoring the respective information to be presented on the predetermined webpage according to the operation information including: in each information to be presented on the predetermined webpage, Querying first information on which the operation corresponding to the operation information is applied; determining the number of the first information; sorting the first information, and setting a sequence number for each first information according to a sorting order; A difference between the number of the first information and the serial number of each first information is calculated, and the difference is used as a score score of each first information.
  • the sorting the first information comprises: sorting the first information in an order of a number of times the user operates the first information.
  • the sorting the first information includes: sorting the first information in a descending order of the number of the first information included in a historical order of the predetermined webpage .
  • the determining, according to the order information, the preset information to be presented on the predetermined webpage including: in each information to be presented on the predetermined webpage, Querying second information associated with the order information; obtaining a number of times the second information appears in the order information; and setting a score score for the second information according to the number of times.
  • the second information includes at least one of category information and brand information; and setting a score score for the second information according to the number of times, including: if the second information is category information And the difference between the preset initial score of the second information and the number of times is used as a score score of the second information; if the second information is brand information, the preset of the second information is The sum of the initial score and the number of times is used as the score score of the second information.
  • the sorting the information to be presented according to the score comprises: sorting each information to be presented on the predetermined webpage in descending order of scores.
  • the present application provides a webpage generating apparatus, where the apparatus includes: a recording unit configured to record operation information of a user in a predetermined webpage; an acquiring unit, and configuring For acquiring the order information of the user in a preset time period; the scoring unit is configured to: preset, on the predetermined webpage, to be preset according to at least one of the operation information and the order information Each of the information is scored; the sorting unit is configured to sort the pieces of information to be presented on the predetermined webpage according to the score, and generate the sorted webpage.
  • the scoring unit includes: a first query module configured to query, on each of the information to be presented on the predetermined webpage, an operation corresponding to the operation information a first information, a determining module, configured to determine the quantity of the first information, a sorting module configured to sort the first information, and set a sequence number for each first information according to a sorting order; And configured to calculate a difference between the quantity of the first information and the sequence number of each first information, and use the difference value as a score score of each first information.
  • the ordering module is further configured to: sort the first information in descending order of the number of times the user operates the first information.
  • the ordering module is further configured to: sort the first information in a descending order of the number of the first information included in the historical order of the predetermined web page.
  • the scoring unit further includes: a second query module, configured to query, in each piece of information to be presented on the predetermined webpage, second information associated with the order information; An obtaining module, configured to acquire a number of times the second information appears in the order information, and a setting module configured to set a score score for the second information according to the number of times.
  • the second information includes at least one of category information and brand information
  • the setting module includes: a first setting submodule configured to: if the second information is category information, The difference between the preset initial score of the second information and the number of times is used as a score score of the second information; the second setting submodule is configured to: if the second information is brand information, The sum of the preset initial score of the second information and the number of times is used as the score score of the second information.
  • the ordering unit is further configured to: The respective information to be presented on the predetermined web page is sorted in a small order.
  • the webpage generating method and apparatus provided by the present application first records the operation information of the user in the predetermined webpage, and acquires the order information of the user within the preset time period; and then, according to at least one of the operation information and the order information, the preset Each piece of information to be presented on the predetermined web page is scored; finally, according to the score, each piece of information presented on the predetermined web page is sorted, and the sorted web page is generated, thereby effectively utilizing the operation information and historical order information of the user. It solves the problem that the traditional information push method is poorly targeted.
  • FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;
  • FIG. 2 is a flow chart of one embodiment of a web page generating method according to the present application.
  • FIG. 3 is a schematic diagram of an application scenario of a webpage generating method according to the present application.
  • FIG. 4 is a flow chart of still another embodiment of a web page generating method according to the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of a webpage generating apparatus according to the present application.
  • FIG. 6 is a block diagram showing the structure of a computer system suitable for implementing the server of the embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a web page generation method or web page generation apparatus to which the present application may be applied.
  • the system architecture 100 can include terminal devices 101, 102, 103.
  • Network 104 and server 105 are used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
  • Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
  • the user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like.
  • the terminal devices 101, 102, and 103 can be installed with various client applications, such as an online shopping application, a browser application, a news application, a novel application, a music application, a mailbox client, a social platform software, etc., and the user can Use various applications on the terminal device to access e-commerce sites for search, click, and browse operations.
  • the terminal devices 101, 102, 103 may be various electronic devices, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio layer 3) MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop portable computer and desktop computer, etc.
  • MP3 players Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio layer 3
  • MP4 Moving Picture Experts Group Audio Layer IV
  • the server 105 may be a server that provides various services, such as a background server that provides support for an online shopping application installed on the terminal devices 101, 102, 103, a browser, and the like.
  • the background server may analyze and process the request data of the online shopping application, the browser, and the like, and feed back the processing result to the terminal device.
  • the operation information of the user in the predetermined webpage may be recorded first, and the order information of the user in the preset time period may be acquired; and then, according to at least one of the operation information and the order information, the preset preset to be presented on the predetermined webpage is performed.
  • Each piece of information is scored; finally, each piece of information presented on the predetermined web page is sorted according to the score, and the sorted web page is generated.
  • the webpage generating method provided by the embodiment of the present application is generally executed by the server 105. Accordingly, the webpage generating apparatus is generally disposed in the server 105.
  • terminal devices, networks, and servers in Figure 1 is merely illustrative. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers.
  • the method for generating a webpage includes the following steps:
  • Step 201 Record operation information of the user in the predetermined webpage.
  • the electronic device for example, the server shown in FIG. 1 on which the webpage generating method runs can use the terminal (such as a map) to operate the information on the webpage from the user through a wired connection or a wireless connection.
  • the terminal device 103 shown in FIG. 1 acquires and records operation information on the information on the webpage, wherein the information on the webpage may be online product information, brand information, or category information (for example, a dress, Pressure cooker, shampoo, etc.).
  • the user can access the e-commerce site through the web browser installed on the terminal, and operate the information on the webpage on the webpage; of course, the user can also access the e-commerce site by using the online shopping application installed on the terminal.
  • the information on the webpage is operated by an online shopping application.
  • the user's operation information may be browsing online products, adding online products to a shopping cart, moving online products out of a shopping cart, collecting online products and uncollecting online products, paying attention to online products, and unfollowing online products, or browsing online products.
  • the online activity page can be used to display multiple online products of the same category or same brand.
  • the predetermined webpage may be a partial webpage in a website, for example, some pages in the shopping website similar to the “flash purchase” activity, and the server may obtain the operation information of the user in the predetermined webpage by using the burying technology. It is implemented by the literal translation scripting language JavaScript.
  • the user may be identified by an account logged in by the user, or the identity of the user may be identified by a cookie, a mobile device identity, etc., and the cookie refers to data stored by the website on the user's local terminal in order to identify the user's identity and track it. Then, through the analysis of the URL (Uniform Resource Locator) or other related data, it is determined what the user has done.
  • the collected operation information can be sent to the browsing log collector in real time, and the browsing log collector can transmit data to the message system for buffering data in a few seconds.
  • the electronic device may record the detailed browsing information of the user on the predetermined webpage by using a burying point technology, and then periodically send the information to the agent in batches, and the agent compares the received detailed browsing information according to the detailed browsing information.
  • the preset time (for example, 1 hour) is sent to the flash Hadoop cluster.
  • Hadoop implements a Hadoop Distributed File System (HDFS), which is highly fault-tolerant and designed to be deployed on low-cost hardware, and it provides high throughput to access applications.
  • the data. Hadoop cluster can save a lot of numbers
  • the above electronic device is mainly based on Hadoop technology to build a big data platform for storing flash offline data, which may include flashing user browsing information, flashing user order information, and flashing user. Historical event information, flash history events, product information for flash events, and details of flash items.
  • the electronic device may further include a flash user model, where the flash user model is a user data model library obtained by querying historical data in Hadoop, and the user attribute of the flash purchase user is included. .
  • the main function of the flash user model is to be able to return the user's favorite product category information, the most interesting product category information, and the most recently watched product category information.
  • Step 202 Acquire an order information of the user within a preset time period.
  • the electronic device may acquire order information of an online product purchased by the user within a preset time period.
  • the preset time period may be any time period set, for example, one month, one week, one day, one hour, and the like.
  • the above order information can be stored in a relational database.
  • the relational database management system usually includes some items for describing the state change of the database. Through such items, the order information can be judged in real time, and changes are collected synchronously if there is a change. The content is then transferred to the Kafka cluster.
  • the operation information and the order information are stored in a pre-built distributed publish and subscribe message system.
  • the message producer issues operation information or order information, and the message user subscribes to the operation information or the order. Information to obtain operational information or order information.
  • the distributed publish and subscribe messaging system can be a Kafka Kafka cluster, and Kafka is an open source messaging system project. The goal of the project is to provide a unified, high-throughput, low-waiting platform for processing real-time data.
  • the Kafka cluster is mainly built on the Kafka middleware framework.
  • the Kafka cluster plays the role of intermediate data cache in the information push system. Due to its large capacity, high efficiency, real-time data reception, and secure storage to the cluster, Can improve the processing speed of the entire information push system.
  • Step 203 Score each of the preset information to be presented on the predetermined webpage according to at least one of the operation information and the order information.
  • the electronic device may preset information to be presented on the predetermined webpage, and the information may be online product information, event information, brand information, category information, and the like.
  • the above electronic device may be based on the online product, brand or category of the website.
  • the sales volume sets the information to be presented; the information to be presented can also be set according to factors such as seasons and weather, for example, wedding products, wedding photography, honeymoon tours, etc. are set as information to be presented during the wedding season, and will be presented during the rainy season.
  • Umbrellas, raincoats, dryers, etc. are set as information to be presented; information to be presented can also be set according to the brand promotion of the merchant.
  • the electronic device may score the information to be presented on the predetermined webpage in advance according to the operation information;
  • the information to be presented on the predetermined webpage may be scored according to the order information, and the information to be presented on the predetermined webpage may be scored by considering the operation information and the order information.
  • the open source cluster computing framework Spark can be used.
  • Spark is an open source cluster computing system based on memory computing, which has faster data analysis capabilities.
  • the data subscribed from kafka can be received in real time, for example, real-time operation information of the user, real-time order data, and historical user model data obtained from the user model, and comprehensive real-time data and historical data for data analysis and calculation. , classify the required data.
  • Kafka consumers will convert the data format into Spark stream data and then pass it to the Spark cluster.
  • Spark Streaming is a framework for processing Stream data on Spark. The basic principle is to divide the Stream data into small time segments for batch processing. The way to handle this small part of the data.
  • Spark cluster will transmit different types of data to each Spark Streaming according to the type of Spark Streaming subscription.
  • Spark Streaming may include the following categories: processing data of all users browsing the flash event page, thereby obtaining the activity that the flash user is currently browsing; processing all users browsing the flash product
  • the data of the page in order to obtain the merchandise that the flashing user is currently browsing, and find out the merchandise brand and merchandise category to which the merchandise belongs; handle the actions of all the users in the shopping cart, thereby obtaining which merchandise the flashing user is adding.
  • each of the preset information to be presented on the predetermined web page may be scored by the search engine ElasticSearch.
  • ElasticSearch is a search service Server is the second popular enterprise search engine. It provides a distributed multi-user capability full-text search engine, designed for cloud computing, real-time search, stable, reliable, fast, easy to install and use.
  • ElasticSearch can score the satisfied information according to the query conditions. The higher the score, the more accurate the result will be; therefore, the information push system can use this function, from the million-level flash purchase.
  • the expected result is returned according to the score of the search result.
  • the Spark cluster can store its own processed data into the ElasticSearch cluster according to the ElasticSearch format, and utilize ElasticSearch's powerful distributed search and analysis function to provide fast data query and search for subsequent user-recommended commodity modules.
  • the data sent from the Spark cluster can be composed into query conditions, for example, the user name + the category of interest + the goods and categories that have been purchased recently, and then the query request is sent to the ElasticSearch cluster for query according to the query condition, and 100 product information is returned by default.
  • ElasticSearch query results are sorted in descending order.
  • ElasticSearch can also be used to query the current and recently viewed flash purchase information and flash activity information of the user, and analyze which categories (such as shorts, socks, etc.) and which brands (such as: A brand) , B brand, etc.) and the keywords of these products (for example: words such as slimming, strong sweat absorption, etc.); then the above category information, brand information, keyword information and the acquired product category that the user has recently purchased.
  • categories such as shorts, socks, etc.
  • brands such as: A brand
  • the keywords of these products for example: words such as slimming, strong sweat absorption, etc.
  • the purchased product category can be used as a sub-division condition to avoid recommending the same kind of product information that the user has purchased.
  • Step 204 Sort each information to be presented on the predetermined webpage according to the score, and generate the sorted webpage.
  • the electronic device may sort the information to be presented on the predetermined webpage according to the score obtained in step 203, and generate a sorted webpage for pushing the webpage to the user at any time.
  • the electronic device may sort the information presented on the predetermined webpage in descending order of the score, that is, the information with the largest score is placed in the first place. Put the information with the smallest score in the last one Bit.
  • the electronic device may also process the font and color of each information to be presented on the predetermined webpage according to the score, for example, enlarge the font of the information of the top three digits of the score. And display the above information with eye-catching colors (for example, red, yellow, etc.).
  • FIG. 3 is a schematic diagram of an application scenario of a webpage generating method according to the embodiment.
  • the webpage generating system 300 includes a real-time data collecting module 301, which is mainly composed of a page embedding point JS (Javascript, Java description language) and a proxy.
  • the function of embedding the JS is to record the browsing summary of the user on the flashing page, and real-time.
  • Sending this information to the agent there are two types of agents. One is to receive the data of the page buried JS, and after simple processing, push the data to the distributed publish and subscribe message system 302; the other is to accept the change about the order form.
  • the log data of the information is passed to the distributed publish subscription message system 302.
  • the offline data collection module 304 is mainly composed of a page burying point JS (Javascript, Java description language) and a proxy.
  • the function of burying the JS is to record the browsing details of the user on the flashing page, and then periodically send the information to the batch.
  • the agent sends the browsing details of the received flash page to the distributed file system 305 in a batch.
  • the distributed file system 305 can be a Hadoop cluster.
  • the Hadoop cluster is mainly used to store flash offline data, and mainly provides browsing behavior and consumption behavior during a user's historical time period.
  • the user model module 306 is a user data model library calculated by querying the historical data in the distributed file system 305.
  • the module can mainly return the user's favorite product category information, the most interesting product category information, and recent attention.
  • the distributed publish and subscribe message system 302 can be a Kafka cluster, which can receive data transmitted by the real-time data collection module 301 in real time and securely store it in a Kafka cluster.
  • the open source cluster computing system 303 can be a Spark cluster. The open source cluster computing system 303 can receive data subscribed from kafka in real time and acquire user history model data from the user model module 306, synthesize real-time data and historical data for analysis and calculation, and perform required data. The classification process is then stored in a distributed search and analysis engine 307.
  • the distributed search and analysis engine 307 can be an ElasticSearch cluster that internally stores various details of recent browsing records and merchandise for all users.
  • the activity ranking module 308 can combine real-time data with offline data. And to achieve a second-level response, return a sort of active list data.
  • the order interface 309 can be used to query the order information of the user.
  • the page management module 3010 is used to display the recommended items, which can be sorted according to the score, and the higher the position of the displayed, the higher the position.
  • the webpage generating method and apparatus provided by the present application first records the operation information of the user in the predetermined webpage, and acquires the order information of the user within the preset time period; and then, according to at least one of the operation information and the order information, the preset Each piece of information to be presented on the predetermined web page is scored; finally, according to the score, each piece of information presented on the predetermined web page is sorted, and the sorted web page is generated, thereby effectively utilizing the operation information and historical order information of the user. It solves the problem that the traditional information push method is poorly targeted.
  • the process 400 of the web page generation method includes the following steps:
  • Step 401 Record operation information of the user in the predetermined webpage.
  • the electronic device for example, the server shown in FIG. 1 on which the webpage generating method runs can use the terminal (such as a map) to operate the information on the webpage from the user through a wired connection or a wireless connection.
  • the terminal device 103 shown in 1 acquires and records its operation information on the information on the web page.
  • Step 402 Acquire an order information of the user within a preset time period.
  • the electronic device may acquire order information of an online product purchased by the user within a preset time period.
  • the preset time period may be any time period set, for example, one month, one week, one day, one hour, and the like.
  • Step 403 Query, in each information to be presented on the predetermined webpage, the first information to which the operation corresponding to the operation information acts.
  • the electronic device may query the first information to which the operation corresponding to the operation information recorded in step 401 acts on the respective information to be presented on the predetermined webpage.
  • the above-mentioned various information to be presented on the predetermined webpage includes the B brand umbrella, the C brand shampoo, the Xinjiang raisin, the Yantai apple and the D brand beer, etc., and the above-mentioned users perform the C brand shampoo, the B brand raincoat and the Xinjiang specialty product.
  • the electronic device can query that the first information may include a B brand umbrella, a C brand shampoo, and a Xinjiang raisin.
  • Step 404 determining the quantity of the first information.
  • the electronic device may determine the total number of first information queried in step 403. As an example, if the first information includes the B brand umbrella, the C brand shampoo, and the Xinjiang raisin, the total number of the first information is 3.
  • Step 405 Sort the first information, and set a sequence number for each first information according to the sorting order.
  • the electronic device may sort the first information and set a sequence number for each first information in a sorted order.
  • the first information may be sorted in order of length to short according to the time when the user browses each first information, and the sorted result is C brand shampoo, B brand umbrella and Xinjiang raisin, and the serial number of the C brand shampoo For the 1,B brand umbrella, the serial number is 2, and the Xinjiang raisin has the serial number 3.
  • the electronic device may further sort the first information according to the order of the number of operations of the first information by the user, for example, the user browses C. Brand shampoo, B brand raincoat and Xinjiang specialty products, pay attention to C brand shampoo and Xinjiang specialty products, and add C brand shampoo to the shopping cart, then the above-mentioned users operate the C brand shampoo 3 times, for the B brand
  • the number of operations of the raincoat is 1 time
  • the number of operations on the Xinjiang specialty product is 2 times
  • the sorting result of sorting the first information in the order of the number of operations of the first information by the user is: C brand Shampoo, Xinjiang specialty and B brand raincoat.
  • the electronic device may further sort the first information in an order of the number of the first information included in the historical order of the predetermined webpage, for example, the foregoing.
  • the number of orders for C brand shampoo in the historical order of the scheduled webpage is 476
  • the number of orders including B brand raincoat is 243
  • the number of orders containing Xinjiang specialty products is 1390, according to the first information contained in the historical order of the above-mentioned scheduled webpage.
  • the order of sorting the above first information in order of number is: Xinjiang specialty product, C brand shampoo and B brand raincoat.
  • Step 406 Calculate a difference between the number of first information and the serial number of each first information, and use the difference as the score score of each first information.
  • the electronic device may calculate a difference between the total number of the first information and the serial number of each first information, and use the difference as the score of each first information. fraction.
  • the difference 2 between the total number 3 and the serial number 1 of the C brand shampoo can be taken as the score score of the C brand shampoo
  • the difference 1 between the total number 3 and the serial number 2 of the B brand umbrella is taken as the score of the B brand umbrella.
  • Score the difference between the total number of 3 and the serial number 3 of Xinjiang raisins is 0 as the score of Xinjiang raisins.
  • the electronic device may invoke a collection of category names and brand names that are of interest to the user's history; after that, the results of the real-time and the results of the history may be classified, merged with the same category, and merged with the same brand.
  • Step 407 Query the second information associated with the order information in each piece of information to be presented on the predetermined webpage.
  • the electronic device may query the second information associated with the order information in the respective information to be presented on the predetermined webpage, for example, the order information of the user includes the laundry liquid of the A brand. And the cherry, etc., wherein the information to be presented on the predetermined webpage includes the A brand washing powder, the A brand softener and the Shandong cherry, the second information associated with the order information may be the A brand washing powder. , A brand of softener and Shandong cherry.
  • Step 408 Obtain the number of times the second information appears in the order information.
  • the electronic device may acquire the number of times the second information appears in the order information, for example, may obtain purchase information of three times of cherries and purchase of two A-brand items in the order information of the user. information.
  • Step 409 Set a score score for the second information according to the number of times.
  • the electronic device may set a score score for the second information according to the number of times the second information appears in the order information.
  • the foregoing second information may include at least one of category information and brand information.
  • the above electronic device may be presented above
  • Each piece of information on the predetermined webpage is preset with an initial score (for example, 10 minutes, 5 minutes, 0 points, etc.), and if the second information is category information, the initial score and the second information may appear in the order information.
  • the difference in the number of times is used as the score score of the second information. For example, if the cherry is the category information, the difference between the initial score of 10 and the number of occurrences of the cherry in the order information of 3 times is 7 as the score of the cherry.
  • the second information is the brand information
  • the sum of the initial score and the number of times the second information appears in the order information may be used as the score of the second information.
  • the brand A is brand information
  • the sum of 10 points of the above initial score and the number 2 of occurrences of the A brand in the above order information are taken as the score score of the A brand.
  • Step 4010 Sort each information to be presented on the predetermined webpage according to the score, and generate the sorted webpage.
  • the electronic device may sort the information to be presented on the predetermined webpage according to the score score obtained in step 406, or may be presented on the predetermined webpage according to the score score obtained in step 409. Sorting each piece of information, and synthesizing the scores in step 406 and the scores in step 409 to sort the information presented on the predetermined webpage, and generating the sorted webpages for pushing the webpage to the user at any time. .
  • the flow 400 of the webpage generating method in this embodiment highlights each information to be presented on a predetermined webpage according to at least one of the operation information and the order information, as compared with the embodiment corresponding to FIG. The step of scoring.
  • the solution described in this embodiment can specifically describe how to score the respective information to be presented on the predetermined webpage according to the operation information and/or the order information, thereby realizing more targeted information push and more effective webpage. generate.
  • the present application provides an embodiment of a webpage generating apparatus, and the apparatus embodiment corresponds to the method embodiment shown in FIG. Used in a variety of electronic devices.
  • the webpage generating apparatus 500 described above in this embodiment includes a recording unit 501, an obtaining unit 502, a scoring unit 503, and a sorting unit 504.
  • the recording unit 501 is configured to record operation information of the user in the predetermined webpage; Obtaining the order information of the user in a preset time period;
  • the scoring unit 503 is configured to: set, according to at least one of the operation information and the order information, a preset preset to be presented on the predetermined webpage Each piece of information is scored; and the sorting unit 504 is configured to sort the pieces of information to be presented on the predetermined web page according to the score, and generate the sorted web page.
  • the specific processing of the recording unit 501, the obtaining unit 502, the scoring unit 503, and the sorting unit 504 in the webpage generating apparatus 500 may refer to step 201, step 202, step 203, and step 204 in the corresponding embodiment of FIG. The related description of the implementation manner will not be repeated here.
  • the scoring unit 503 may include a first query module 5031, a determining module 5032, a sorting module 5033, and a computing module 5034.
  • the first query module 5031 may query the first information to which the operation corresponding to the operation information recorded in the recording unit 501 acts on the information to be presented on the predetermined webpage.
  • the determining module 5032 may determine the total number of first information queried in the first query module 5031.
  • the sorting module 5033 may sort the first information and set a sequence number for each first information in a sorted order.
  • the calculation module 5034 may calculate a difference between the total number of the first information and the serial number of each first information, and use the difference as the score score of each first information.
  • the sorting module 5033 may sort the first information according to the order in which the user operates the first information in descending order.
  • the sorting module 5033 may further sort the first information in order of the number of first information included in the historical order of the predetermined webpage.
  • the scoring unit 503 may further include a second query module 5035, an obtaining module 5036, and a setting module 5037.
  • the second query module 5035 may query the second information associated with the order information in each of the information to be presented on the predetermined webpage.
  • the obtaining module 5036 can obtain the number of times the second information appears in the order information.
  • the setting module 5037 may be the number of times that the second information appears in the order information according to the second information. Two information sets the score score.
  • the setting module 5037 may include the first setting submodule 50371 and the second setting submodule 50372. . If the second information is the category information, the first setting sub-module 50371 may use the difference between the initial score and the number of times the second information appears in the order information as the score score of the second information. If the second information is brand information, the second setting sub-module 50372 may use the sum of the initial score and the number of times the second information appears in the order information as the score score of the second information.
  • the sorting unit 504 may sort the information that is to be presented on the predetermined webpage in descending order of the score, that is, the information with the largest score is placed in the first place. , put the information with the smallest score in the last digit.
  • FIG. 6 a block diagram of a computer system 600 suitable for use with a server of an embodiment of the present application is shown.
  • computer system 600 includes a central processing unit (CPU) 601 that can be loaded into a program in random access memory (RAM) 603 according to a program stored in read only memory (ROM) 602 or from storage portion 608. And perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read only memory
  • RAM random access memory
  • various programs and data required for the operation of the system 600 are also stored.
  • the CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input/output (I/O) interface 605 is also coupled to bus 604.
  • the following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a storage portion 608 including a hard disk or the like. And a communication portion 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet.
  • Driver 610 is also coupled to I/O interface 605 as needed.
  • a removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 610 as needed so that a computer program read therefrom is installed into the storage portion 608 as needed.
  • embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine readable medium, the computer program comprising program code for executing the method illustrated in the flowchart.
  • the computer program can be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611.
  • CPU central processing unit
  • each block of the flowchart or block diagrams can represent a module, a program segment, or a portion of code that includes one or more Executable instructions.
  • the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments of the present application may be implemented by software or by hardware.
  • the described modules may also be provided in the processor, for example, as a processor including a recording unit, an acquisition unit, a scoring unit, and a sorting unit.
  • the names of these modules do not constitute a limitation on the module itself under certain circumstances.
  • the recording unit may also be described as "a unit that records operation information of a user in a predetermined web page.”
  • the present application further provides a non-volatile computer storage medium, which may be a non-volatile computer storage medium included in the foregoing apparatus in the foregoing embodiment; It is a non-volatile computer storage medium that exists alone and is not assembled into the terminal.
  • the non-volatile computer storage medium stores one or more programs, when the one or more programs are executed by a device, causing the device to: record operation information of the user in the predetermined webpage; and acquire the preset time period Description
  • the order information of the household; the predetermined information to be presented on the predetermined webpage is scored according to at least one of the operation information and the order information; according to the score, the to-be-presented
  • Each piece of information on the predetermined web page is sorted and a sorted web page is generated.

Abstract

The application discloses a web page generation method and device. In one embodiment, the method comprises: recording operation information of a user of a preconfigured web page; acquiring order information of the user and in a preconfigured time interval; evaluating, according to at least one of the operation information and the order information, preconfigured information to be represented on the preconfigured web page to obtain respective scores; and sorting, according to the scores, the preconfigured information to be represented on the preconfigured web page, to generate a sorted web page. The embodiment is utilized to implement specific information push.

Description

网页生成方法和装置Web page generation method and device
相关申请的交叉引用Cross-reference to related applications
本申请要求于2016年9月19日提交的中国专利申请号为“201610831897.1”的优先权,其全部内容作为整体并入本申请中。The present application claims the priority of the Chinese Patent Application Serial No. 2016.
技术领域Technical field
本申请涉及计算机技术领域,具体涉及互联网技术领域,尤其涉及网页生成方法和装置。The present application relates to the field of computer technologies, and in particular, to the field of Internet technologies, and in particular, to a web page generation method and apparatus.
背景技术Background technique
信息推送,又称为“网络广播”,是通过一定的技术标准或协议,在互联网上通过推送用户需要的信息来减少信息过载的一项技术。信息推送技术通过主动推送信息给用户,可以减少用户在网络上搜索所花的时间。Information Push, also known as "webcasting", is a technology that reduces information overload by pushing the information the user needs on the Internet through certain technical standards or protocols. Information push technology can reduce the time it takes for users to search on the network by actively pushing information to users.
然而,现有的信息推送方式通常是通过运营人员人工筛选一部分商品进行推荐;或者通过离线大数据分析,给每个用户建模,通过不同模型推荐不同的商品等,但是这些推送方案没有结合用户实时的需求进行推送,使得信息推送没有针对性。However, the existing information push method is usually by the operator manually screening a part of the product for recommendation; or by offline big data analysis, modeling each user, recommending different products through different models, etc., but these push solutions are not combined with the user. Pushing real-time requirements makes information push untargeted.
发明内容Summary of the invention
本申请的目的在于提出一种改进的网页生成方法和装置,来解决以上背景技术部分提到的技术问题。The purpose of the present application is to propose an improved web page generation method and apparatus to solve the technical problems mentioned in the above background art.
第一方面,本申请提供了一种网页生成方法,所述方法包括:记录预定网页中用户的操作信息;获取在预设时间段内所述用户的订单信息;根据所述操作信息和所述订单信息中的至少一项,对预先设置的待呈现在所述预定网页上的各个信息进行评分;根据所述评分,对所述待呈现在所述预定网页上的各个信息进行排序,并生成排序后的 网页。In a first aspect, the present application provides a webpage generating method, the method comprising: recording operation information of a user in a predetermined webpage; acquiring order information of the user in a preset time period; and according to the operation information and the At least one of the order information, the predetermined information to be presented on the predetermined webpage is scored; and according to the score, the information to be presented on the predetermined webpage is sorted and generated Sorted Web page.
在一些实施例中,所述根据所述操作信息,对预先设置的待呈现在所述预定网页上的各个信息进行评分,包括:在所述待呈现在所述预定网页上的各个信息中,查询所述操作信息所对应的操作作用于其上的第一信息;确定所述第一信息的数量;对所述第一信息进行排序,并按照排序顺序,为每个第一信息设置序号;计算所述第一信息的数量与每个第一信息的序号的差值,并将所述差值作为各个第一信息的评分分数。In some embodiments, the scoring the respective information to be presented on the predetermined webpage according to the operation information, including: in each information to be presented on the predetermined webpage, Querying first information on which the operation corresponding to the operation information is applied; determining the number of the first information; sorting the first information, and setting a sequence number for each first information according to a sorting order; A difference between the number of the first information and the serial number of each first information is calculated, and the difference is used as a score score of each first information.
在一些实施例中,所述对所述第一信息进行排序,包括:按照所述用户对所述第一信息进行操作的次数由大到小的顺序对所述第一信息进行排序。In some embodiments, the sorting the first information comprises: sorting the first information in an order of a number of times the user operates the first information.
在一些实施例中,所述对所述第一信息进行排序,包括:按照所述预定网页的历史订单中包含所述第一信息的数量由多到少的顺序对所述第一信息进行排序。In some embodiments, the sorting the first information includes: sorting the first information in a descending order of the number of the first information included in a historical order of the predetermined webpage .
在一些实施例中,所述根据所述订单信息,对预先设置的待呈现在所述预定网页上的各个信息进行评分,包括:在所述待呈现在所述预定网页上的各个信息中,查询与所述订单信息相关联的第二信息;获取所述第二信息在所述订单信息中出现的次数;根据所述次数,为所述第二信息设置评分分数。In some embodiments, the determining, according to the order information, the preset information to be presented on the predetermined webpage, including: in each information to be presented on the predetermined webpage, Querying second information associated with the order information; obtaining a number of times the second information appears in the order information; and setting a score score for the second information according to the number of times.
在一些实施例中,所述第二信息包括品类信息和品牌信息中的至少一项;以及根据所述次数,为所述第二信息设置评分分数,包括:若所述第二信息为品类信息,则将所述第二信息的预设初始分数与所述次数的差值作为所述第二信息的评分分数;若所述第二信息为品牌信息,则将所述第二信息的预设初始分数与所述次数之和作为所述第二信息的评分分数。In some embodiments, the second information includes at least one of category information and brand information; and setting a score score for the second information according to the number of times, including: if the second information is category information And the difference between the preset initial score of the second information and the number of times is used as a score score of the second information; if the second information is brand information, the preset of the second information is The sum of the initial score and the number of times is used as the score score of the second information.
在一些实施例中,所述根据所述评分,对所述待呈现的信息进行排序,包括:按照分数由大到小的顺序对所述待呈现在所述预定网页上的各个信息进行排序。In some embodiments, the sorting the information to be presented according to the score comprises: sorting each information to be presented on the predetermined webpage in descending order of scores.
第二方面,本申请提供了一种网页生成装置,所述装置包括:记录单元,配置用于记录预定网页中用户的操作信息;获取单元,配置 用于获取在预设时间段内所述用户的订单信息;评分单元,配置用于根据所述操作信息和所述订单信息中的至少一项,对预先设置的待呈现在所述预定网页上的各个信息进行评分;排序单元,配置用于根据所述评分,对所述待呈现在所述预定网页上的各个信息进行排序,并生成排序后的网页。In a second aspect, the present application provides a webpage generating apparatus, where the apparatus includes: a recording unit configured to record operation information of a user in a predetermined webpage; an acquiring unit, and configuring For acquiring the order information of the user in a preset time period; the scoring unit is configured to: preset, on the predetermined webpage, to be preset according to at least one of the operation information and the order information Each of the information is scored; the sorting unit is configured to sort the pieces of information to be presented on the predetermined webpage according to the score, and generate the sorted webpage.
在一些实施例中,所述评分单元包括:第一查询模块,配置用于在所述待呈现在所述预定网页上的各个信息中,查询所述操作信息所对应的操作作用于其上的第一信息;确定模块,配置用于确定所述第一信息的数量;排序模块,配置用于对所述第一信息进行排序,并按照排序顺序,为每个第一信息设置序号;计算模块,配置用于计算所述第一信息的数量与每个第一信息的序号的差值,并将所述差值作为各个第一信息的评分分数。In some embodiments, the scoring unit includes: a first query module configured to query, on each of the information to be presented on the predetermined webpage, an operation corresponding to the operation information a first information, a determining module, configured to determine the quantity of the first information, a sorting module configured to sort the first information, and set a sequence number for each first information according to a sorting order; And configured to calculate a difference between the quantity of the first information and the sequence number of each first information, and use the difference value as a score score of each first information.
在一些实施例中,所述排序模块进一步配置用于:按照所述用户对所述第一信息进行操作的次数由大到小的顺序对所述第一信息进行排序。In some embodiments, the ordering module is further configured to: sort the first information in descending order of the number of times the user operates the first information.
在一些实施例中,所述排序模块进一步配置用于:按照所述预定网页的历史订单中包含所述第一信息的数量由多到少的顺序对所述第一信息进行排序。In some embodiments, the ordering module is further configured to: sort the first information in a descending order of the number of the first information included in the historical order of the predetermined web page.
在一些实施例中,所述评分单元还包括:第二查询模块,配置用于在所述待呈现在所述预定网页上的各个信息中,查询与所述订单信息相关联的第二信息;获取模块,配置用于获取所述第二信息在所述订单信息中出现的次数;设置模块,配置用于根据所述次数,为所述第二信息设置评分分数。In some embodiments, the scoring unit further includes: a second query module, configured to query, in each piece of information to be presented on the predetermined webpage, second information associated with the order information; An obtaining module, configured to acquire a number of times the second information appears in the order information, and a setting module configured to set a score score for the second information according to the number of times.
在一些实施例中,所述第二信息包括品类信息和品牌信息中的至少一项;以及所述设置模块包括:第一设置子模块,配置用于若所述第二信息为品类信息,则将所述第二信息的预设初始分数与所述次数的差值作为所述第二信息的评分分数;第二设置子模块,配置用于若所述第二信息为品牌信息,则将所述第二信息的预设初始分数与所述次数之和作为所述第二信息的评分分数。In some embodiments, the second information includes at least one of category information and brand information; and the setting module includes: a first setting submodule configured to: if the second information is category information, The difference between the preset initial score of the second information and the number of times is used as a score score of the second information; the second setting submodule is configured to: if the second information is brand information, The sum of the preset initial score of the second information and the number of times is used as the score score of the second information.
在一些实施例中,所述排序单元进一步配置用于:按照分数由大 到小的顺序对所述待呈现在所述预定网页上的各个信息进行排序。In some embodiments, the ordering unit is further configured to: The respective information to be presented on the predetermined web page is sorted in a small order.
本申请提供的网页生成方法和装置,首先记录预定网页中用户的操作信息,并获取预设时间段内用户的订单信息;之后,根据操作信息和订单信息中的至少一项,对预先设置的待呈现在预定网页上的各个信息进行评分;最后,根据分数,对待呈现在预定网页上的各个信息进行排序,并生成排序后的网页,从而有效的利用了用户的操作信息和历史订单信息,解决了传统信息推送方法针对性差的问题。The webpage generating method and apparatus provided by the present application first records the operation information of the user in the predetermined webpage, and acquires the order information of the user within the preset time period; and then, according to at least one of the operation information and the order information, the preset Each piece of information to be presented on the predetermined web page is scored; finally, according to the score, each piece of information presented on the predetermined web page is sorted, and the sorted web page is generated, thereby effectively utilizing the operation information and historical order information of the user. It solves the problem that the traditional information push method is poorly targeted.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent from the detailed description of the accompanying drawings.
图1是本申请可以应用于其中的示例性系统架构图;1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的网页生成方法的一个实施例的流程图;2 is a flow chart of one embodiment of a web page generating method according to the present application;
图3是根据本申请的网页生成方法的一个应用场景的示意图;3 is a schematic diagram of an application scenario of a webpage generating method according to the present application;
图4是根据本申请的网页生成方法的又一个实施例的流程图;4 is a flow chart of still another embodiment of a web page generating method according to the present application;
图5是根据本申请的网页生成装置的一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of a webpage generating apparatus according to the present application; FIG.
图6是适于用来实现本申请实施例的服务器的计算机系统的结构示意图。6 is a block diagram showing the structure of a computer system suitable for implementing the server of the embodiment of the present application.
具体实施方式detailed description
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention, rather than the invention. It is also to be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings.
图1示出了可以应用本申请的网页生成方法或网页生成装置的实施例的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a web page generation method or web page generation apparatus to which the present application may be applied.
如图1所示,系统架构100可以包括终端设备101、102、103, 网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 can include terminal devices 101, 102, 103. Network 104 and server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种客户端应用,例如网购类应用、浏览器类应用、新闻类应用、小说类应用、音乐类应用、邮箱客户端、社交平台软件等,用户可以使用终端设备上的各种应用访问电商类站点,进行搜索、点击、浏览等操作。The user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like. The terminal devices 101, 102, and 103 can be installed with various client applications, such as an online shopping application, a browser application, a news application, a novel application, a music application, a mailbox client, a social platform software, etc., and the user can Use various applications on the terminal device to access e-commerce sites for search, click, and browse operations.
终端设备101、102、103可以是各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio layer 3) MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop portable computer and desktop computer, etc.
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上安装的网购类应用、浏览器等提供支持的后台服务器。后台服务器可以对接收到上述网购类应用、浏览器等的请求数据进行分析等处理,并将处理结果反馈给终端设备。例如,可以首先记录预定网页中用户的操作信息,并获取预设时间段内用户的订单信息;之后,根据操作信息和订单信息中的至少一项,对预先设置的待呈现在预定网页上的各个信息进行评分;最后,根据评分,对待呈现在预定网页上的各个信息进行排序,并生成排序后的网页。The server 105 may be a server that provides various services, such as a background server that provides support for an online shopping application installed on the terminal devices 101, 102, 103, a browser, and the like. The background server may analyze and process the request data of the online shopping application, the browser, and the like, and feed back the processing result to the terminal device. For example, the operation information of the user in the predetermined webpage may be recorded first, and the order information of the user in the preset time period may be acquired; and then, according to at least one of the operation information and the order information, the preset preset to be presented on the predetermined webpage is performed. Each piece of information is scored; finally, each piece of information presented on the predetermined web page is sorted according to the score, and the sorted web page is generated.
需要说明的是,本申请实施例所提供的网页生成方法一般由服务器105执行,相应地,网页生成装置一般设置于服务器105中。It should be noted that the webpage generating method provided by the embodiment of the present application is generally executed by the server 105. Accordingly, the webpage generating apparatus is generally disposed in the server 105.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the number of terminal devices, networks, and servers in Figure 1 is merely illustrative. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers.
继续参考图2,示出了根据本申请的网页生成方法的一个实施例的流程200。所述的网页生成方法,包括以下步骤:With continued reference to FIG. 2, a flow 200 of one embodiment of a web page generation method in accordance with the present application is illustrated. The method for generating a webpage includes the following steps:
步骤201,记录预定网页中用户的操作信息。 Step 201: Record operation information of the user in the predetermined webpage.
在本实施例中,网页生成方法运行于其上的电子设备(例如图1所示的服务器)可以通过有线连接方式或无线连接方式从用户利用其对网页上的信息进行操作的终端(例如图1所示的终端设备103)获取并记录其对网页上的信息的操作信息,其中,上述网页上的信息可以是在线商品信息,也可以是品牌信息,还可以是品类信息(例如,连衣裙、高压锅、洗发水等)。作为示例,用户可以通过终端上安装的网页浏览器访问电商类站点,并在网页上对网页上的信息进行操作;当然,用户也可以利用终端上安装的网购类应用访问电商类站点,通过网购类应用对网页上的信息进行操作。用户的操作信息可以是浏览在线商品、将在线商品加入购物车、将在线商品移出购物车、收藏在线商品和取消收藏在线商品、关注在线商品和取消关注在线商品,也可以是浏览在线商品的集合,例如,浏览某一线上活动的页面,线上活动的页面可以用于展示同一类别或同一品牌的多个在线商品。In this embodiment, the electronic device (for example, the server shown in FIG. 1) on which the webpage generating method runs can use the terminal (such as a map) to operate the information on the webpage from the user through a wired connection or a wireless connection. The terminal device 103 shown in FIG. 1 acquires and records operation information on the information on the webpage, wherein the information on the webpage may be online product information, brand information, or category information (for example, a dress, Pressure cooker, shampoo, etc.). As an example, the user can access the e-commerce site through the web browser installed on the terminal, and operate the information on the webpage on the webpage; of course, the user can also access the e-commerce site by using the online shopping application installed on the terminal. The information on the webpage is operated by an online shopping application. The user's operation information may be browsing online products, adding online products to a shopping cart, moving online products out of a shopping cart, collecting online products and uncollecting online products, paying attention to online products, and unfollowing online products, or browsing online products. For example, to browse a page of an online event, the online activity page can be used to display multiple online products of the same category or same brand.
在本实施例中,预定网页可以是一个网站中的部分网页,例如,购物网站中的一些类似于“闪购”活动的页面,服务器可以通过埋点技术获取预定网页中用户的操作信息,可以通过直译式脚本语言JavaScript来实现。可以通过用户登录的账户来标识此用户,或通过cookie,移动设备标识等辨别用户身份,cookie指一些网站为了辨别用户身份、进行跟踪而储存在用户本地终端上的数据。随后通过对URL(Uniform Resource Locator,统一资源定位器)或其他相关数据的分析,判断用户进行了何种操作。收集到的操作信息可以实时发送给浏览日志收集器,浏览日志收集器可以间隔几秒就向用于缓存数据的消息系统传送数据。In this embodiment, the predetermined webpage may be a partial webpage in a website, for example, some pages in the shopping website similar to the “flash purchase” activity, and the server may obtain the operation information of the user in the predetermined webpage by using the burying technology. It is implemented by the literal translation scripting language JavaScript. The user may be identified by an account logged in by the user, or the identity of the user may be identified by a cookie, a mobile device identity, etc., and the cookie refers to data stored by the website on the user's local terminal in order to identify the user's identity and track it. Then, through the analysis of the URL (Uniform Resource Locator) or other related data, it is determined what the user has done. The collected operation information can be sent to the browsing log collector in real time, and the browsing log collector can transmit data to the message system for buffering data in a few seconds.
在本实施例中,上述电子设备可以通过埋点技术将上述用户在上述预定网页上的详细浏览信息记录下来,然后定时批量的将这些信息发送到代理中,代理把接收到的详细浏览信息按照预设时间(例如,1小时)发送到闪购Hadoop集群中。Hadoop实现了一个分布式文件系统(Hadoop Distributed File System,HDFS),HDFS具有高容错性的特点,并且设计用来部署在低廉的硬件上,而且它提供高吞吐量(high throughput)来访问应用程序的数据。Hadoop集群可以保存超多的数 据,并且能对这些数据进行统计分析,上述电子设备主要基于Hadoop技术搭建大数据平台,用于存储闪购离线数据,可以包括闪购用户的浏览信息、闪购用户的订单信息、闪购用户的历史活动信息、闪购历史活动信息、闪购活动的商品信息和闪购商品的详细信息。In this embodiment, the electronic device may record the detailed browsing information of the user on the predetermined webpage by using a burying point technology, and then periodically send the information to the agent in batches, and the agent compares the received detailed browsing information according to the detailed browsing information. The preset time (for example, 1 hour) is sent to the flash Hadoop cluster. Hadoop implements a Hadoop Distributed File System (HDFS), which is highly fault-tolerant and designed to be deployed on low-cost hardware, and it provides high throughput to access applications. The data. Hadoop cluster can save a lot of numbers According to the statistical analysis of the data, the above electronic device is mainly based on Hadoop technology to build a big data platform for storing flash offline data, which may include flashing user browsing information, flashing user order information, and flashing user. Historical event information, flash history events, product information for flash events, and details of flash items.
在本实施例中,上述电子设备中还可以包括闪购用户模型,闪购用户模型是通过对Hadoop中的历史数据进行查询计算后得到的一个用户数据模型库,其中包含闪购用户的用户属性。闪购用户模型的主要功能是能够返回用户最喜欢的商品品类信息、最感兴趣的商品品类信息和最近关注度最高的商品品类信息等等。In this embodiment, the electronic device may further include a flash user model, where the flash user model is a user data model library obtained by querying historical data in Hadoop, and the user attribute of the flash purchase user is included. . The main function of the flash user model is to be able to return the user's favorite product category information, the most interesting product category information, and the most recently watched product category information.
步骤202,获取在预设时间段内用户的订单信息。Step 202: Acquire an order information of the user within a preset time period.
在本实施例中,上述电子设备可以获取在预设时间段内用户购买的在线商品的订单信息。上述预设时间段可以是设置的任一时间段,例如,一个月、一周、一天、一个小时等。上述订单信息可以存储在关系型数据库中,关系型数据库管理系统中通常都包括一些用于描述数据库状态变更的项目,通过此类项目可以实时判断订单信息是否有变化,如果有变化就同步收集变化的内容,然后传送到Kafka集群。In this embodiment, the electronic device may acquire order information of an online product purchased by the user within a preset time period. The preset time period may be any time period set, for example, one month, one week, one day, one hour, and the like. The above order information can be stored in a relational database. The relational database management system usually includes some items for describing the state change of the database. Through such items, the order information can be judged in real time, and changes are collected synchronously if there is a change. The content is then transferred to the Kafka cluster.
在本实施例中,操作信息和订单信息存储在预先构建的分布式发布订阅消息系统中,分布式发布订阅消息系统中,消息生产者发布操作信息或订单信息,消息使用者订阅操作信息或订单信息,以获取操作信息或订单信息。分布式发布订阅消息系统可以是卡夫卡Kafka集群,Kafka是一个开源消息系统项目。该项目的目标是为处理实时数据提供一个统一、高通量、低等待的平台。Kafka集群主要是基于Kafka中间件框架进行搭建的,Kafka集群在信息推送系统中起中间数据缓存的作用,由于其大容量,高效率,能实时的接收数据,并且安全的存储到集群的特点,可以提高整个信息推送系统处理速度。In this embodiment, the operation information and the order information are stored in a pre-built distributed publish and subscribe message system. In the distributed publish and subscribe message system, the message producer issues operation information or order information, and the message user subscribes to the operation information or the order. Information to obtain operational information or order information. The distributed publish and subscribe messaging system can be a Kafka Kafka cluster, and Kafka is an open source messaging system project. The goal of the project is to provide a unified, high-throughput, low-waiting platform for processing real-time data. The Kafka cluster is mainly built on the Kafka middleware framework. The Kafka cluster plays the role of intermediate data cache in the information push system. Due to its large capacity, high efficiency, real-time data reception, and secure storage to the cluster, Can improve the processing speed of the entire information push system.
步骤203,根据操作信息和订单信息中的至少一项,对预先设置的待呈现在预定网页上的各个信息进行评分。Step 203: Score each of the preset information to be presented on the predetermined webpage according to at least one of the operation information and the order information.
在本实施例中,上述电子设备可以预先设置待呈现在上述预定网页上的信息,上述信息可以是在线商品信息、活动信息、品牌信息和品类信息等。上述电子设备可以根据网站的在线商品、品牌或品类的 销售量设置待呈现的信息;也可以根据季节、天气等因素设置待呈现的信息,例如,在结婚季时将婚庆商品、婚纱摄影、蜜月游等设置为待呈现的信息,在梅雨季时将雨伞、雨衣、烘干器等设置为待呈现的信息;还可以根据商家的品牌促销活动设置待呈现的信息。In this embodiment, the electronic device may preset information to be presented on the predetermined webpage, and the information may be online product information, event information, brand information, category information, and the like. The above electronic device may be based on the online product, brand or category of the website. The sales volume sets the information to be presented; the information to be presented can also be set according to factors such as seasons and weather, for example, wedding products, wedding photography, honeymoon tours, etc. are set as information to be presented during the wedding season, and will be presented during the rainy season. Umbrellas, raincoats, dryers, etc. are set as information to be presented; information to be presented can also be set according to the brand promotion of the merchant.
在本实施例中,在获取到步骤201中的操作信息和步骤202中的订单信息之后,上述电子设备可以根据上述操作信息,对预先设置的待呈现在上述预定网页上的信息进行评分;也可以根据上述订单信息,对预先设置的待呈现在上述预定网页上的信息进行评分;还可以综合考虑上述操作信息与上述订单信息,对预先设置的待呈现在上述预定网页上的信息进行评分。In this embodiment, after acquiring the operation information in step 201 and the order information in step 202, the electronic device may score the information to be presented on the predetermined webpage in advance according to the operation information; The information to be presented on the predetermined webpage may be scored according to the order information, and the information to be presented on the predetermined webpage may be scored by considering the operation information and the order information.
在本实施例中,可以使用开源集群计算框架Spark,Spark是一个基于内存计算的开源的集群计算系统,具有更快速的数据分析能力。通过预先建立的Spark集群,可以实时接收从kafka订阅的数据,例如,用户实时的操作信息、实时的订单数据,和从用户模型获取的历史用户模型数据,综合实时数据和历史数据进行数据分析计算,对所需数据进行分类加工。具体的,Kafka消费者会把数据格式转换为Spark流数据,然后传给Spark集群,Spark Streaming是构建在Spark上处理Stream数据的框架,基本原理是将Stream数据分成小的时间片段,以批量处理方式处理这小部分数据。Spark集群会把数据根据Spark Streaming订阅的类型,传送不同类型数据到各个Spark Streaming。作为示例,在闪购页面的推送系统中,Spark Streaming可以包括以下几类:处理所有用户浏览闪购活动页面的数据,以此获取闪购用户目前正在浏览的活动;处理所有用户浏览闪购商品页面的数据,以此获取闪购用户目前正在浏览的商品,并查出该商品所属的商品品牌和商品品类;处理所有用户购物车中的动作,以此获取闪购用户正在把哪些商品加入了购物车或者哪些商品被删除的信息;处理所有闪购收藏动作,以此获取闪购用户目前正在收藏的商品信息;处理所有闪购订单数据,以此计算实时的商品销售信息。In this embodiment, the open source cluster computing framework Spark can be used. Spark is an open source cluster computing system based on memory computing, which has faster data analysis capabilities. Through the pre-established Spark cluster, the data subscribed from kafka can be received in real time, for example, real-time operation information of the user, real-time order data, and historical user model data obtained from the user model, and comprehensive real-time data and historical data for data analysis and calculation. , classify the required data. Specifically, Kafka consumers will convert the data format into Spark stream data and then pass it to the Spark cluster. Spark Streaming is a framework for processing Stream data on Spark. The basic principle is to divide the Stream data into small time segments for batch processing. The way to handle this small part of the data. The Spark cluster will transmit different types of data to each Spark Streaming according to the type of Spark Streaming subscription. As an example, in the push system of the flash page, Spark Streaming may include the following categories: processing data of all users browsing the flash event page, thereby obtaining the activity that the flash user is currently browsing; processing all users browsing the flash product The data of the page, in order to obtain the merchandise that the flashing user is currently browsing, and find out the merchandise brand and merchandise category to which the merchandise belongs; handle the actions of all the users in the shopping cart, thereby obtaining which merchandise the flashing user is adding. Information on which carts or items are deleted; processing all flash purchases to obtain merchandise information that the flash subscriber is currently collecting; processing all flash order data to calculate real-time merchandise sales information.
在本实施例中,可以通过搜索引擎ElasticSearch对预先设置的待呈现在预定网页上的各个信息进行评分。ElasticSearch是一个搜索服 务器,是第二流行的企业搜索引擎,它提供了一个分布式多用户能力的全文搜索引擎,设计用于云计算中,能够达到实时搜索,稳定,可靠,快速,安装使用方便。具体的,ElasticSearch作为搜索工具,可以根据查询条件对满足的信息进行打分,打分越高的,它就会认为是最为准确的结果;所以信息推送系统可以利用这个功能,从百万级的闪购商品中,根据查询条件,按照搜索的结果的得分,返回期望的结果。In this embodiment, each of the preset information to be presented on the predetermined web page may be scored by the search engine ElasticSearch. ElasticSearch is a search service Server is the second popular enterprise search engine. It provides a distributed multi-user capability full-text search engine, designed for cloud computing, real-time search, stable, reliable, fast, easy to install and use. Specifically, as a search tool, ElasticSearch can score the satisfied information according to the query conditions. The higher the score, the more accurate the result will be; therefore, the information push system can use this function, from the million-level flash purchase. In the product, according to the query condition, the expected result is returned according to the score of the search result.
在本实施例中,Spark集群可以把自身处理好的数据,按照ElasticSearch格式存入ElasticSearch集群,利用ElasticSearch强大的分布式搜索和分析的功能,提供给后续获取用户推荐商品模块快速的数据查询和搜索。可以将Spark集群传来的数据组成查询条件,例如,用户名+感兴趣品类+最近已经购买商品和品类,再根据查询条件,发送查询请求到ElasticSearch集群进行查询,默认返回100个商品信息,以ElasticSearch查询结果得分降序排序。In this embodiment, the Spark cluster can store its own processed data into the ElasticSearch cluster according to the ElasticSearch format, and utilize ElasticSearch's powerful distributed search and analysis function to provide fast data query and search for subsequent user-recommended commodity modules. . The data sent from the Spark cluster can be composed into query conditions, for example, the user name + the category of interest + the goods and categories that have been purchased recently, and then the query request is sent to the ElasticSearch cluster for query according to the query condition, and 100 product information is returned by default. ElasticSearch query results are sorted in descending order.
作为示例,也可以通过ElasticSearch查询出用户当前和最近浏览的闪购商品信息和闪购活动信息,并分析出这些商品属于哪些品类(如:短裤、袜子等等)、哪些品牌(如:A品牌、B品牌等等)和这些商品的关键字(例如:显瘦身、强吸汗等等这类词);随后将上述品类信息、品牌信息、关键字信息和获取的该用户最近已经购买的商品品类作为条件,发送查询请求到ElasticSearch集群,最后返回查询出来的商品信息。已经购买的商品品类可以作为减分条件,以此可以避免向用户推荐其才购买过的同类商品信息。As an example, ElasticSearch can also be used to query the current and recently viewed flash purchase information and flash activity information of the user, and analyze which categories (such as shorts, socks, etc.) and which brands (such as: A brand) , B brand, etc.) and the keywords of these products (for example: words such as slimming, strong sweat absorption, etc.); then the above category information, brand information, keyword information and the acquired product category that the user has recently purchased. As a condition, the query request is sent to the ElasticSearch cluster, and finally the product information that is queried is returned. The purchased product category can be used as a sub-division condition to avoid recommending the same kind of product information that the user has purchased.
步骤204,根据评分,对待呈现在预定网页上的各个信息进行排序,并生成排序后的网页。Step 204: Sort each information to be presented on the predetermined webpage according to the score, and generate the sorted webpage.
在本实施例中,上述电子设备可以根据步骤203中得出的评分,对待呈现在上述预定网页上的各个信息进行排序,并生成排序后的网页以供随时向上述用户推送上述网页。In this embodiment, the electronic device may sort the information to be presented on the predetermined webpage according to the score obtained in step 203, and generate a sorted webpage for pushing the webpage to the user at any time.
在本实施例的一些可选的实现方式中,上述电子设备可以按照分数由大到小的顺序对待呈现在上述预定网页上的各个信息进行排序,即将分数值最大的信息放在第一位,将分数值最小的信息放在最后一 位。In some optional implementation manners of the embodiment, the electronic device may sort the information presented on the predetermined webpage in descending order of the score, that is, the information with the largest score is placed in the first place. Put the information with the smallest score in the last one Bit.
在本实施例中,上述电子设备也可以按照分数,对上述待呈现在上述预定网页上的各个信息的字体和颜色等进行处理,例如,将分数值排名前三位的信息的字体进行放大处理,并利用醒目的颜色(例如,红色、黄色等)显示上述信息。In this embodiment, the electronic device may also process the font and color of each information to be presented on the predetermined webpage according to the score, for example, enlarge the font of the information of the top three digits of the score. And display the above information with eye-catching colors (for example, red, yellow, etc.).
继续参见图3,图3是根据本实施例的网页生成方法的应用场景的一个示意图。网页生成系统300包括实时数据收集模块301,该模块主要由页面埋点JS(Javascript,Java描述语言)和代理组成,埋点JS的功能是把用户在闪购页面的浏览概要记录下来,并实时发送这些信息到代理,代理有两类,一类是接收页面埋点JS的数据后,进行简单加工后,把数据推送到分布式发布订阅消息系统302;另一类是接受关于订单表的变更信息的日志数据,把实时订单数据传送到分布式发布订阅消息系统302。离线数据收集模块304主要由页面埋点JS(Javascript,Java描述语言)和代理组成,埋点JS的功能是把用户在闪购页面的浏览详细信息记录下来,然后定时批量的将这些信息发送到代理,代理把接收到的闪购页面的浏览详细信息定时批量的发送到分布式文件系统305中。分布式文件系统305可以是Hadoop集群,Hadoop集群主要用于存储闪购离线数据,主要提供用户历史时间段内的浏览行为和消费行为。用户模型模块306是通过对分布式文件系统305中的历史数据进行查询计算得到的一个用户数据模型库,该模块主要可以返回用户最喜欢的商品品类信息、最感兴趣的商品品类信息和最近关注度最高的商品品类信息等等。分布式发布订阅消息系统302可以是Kafka集群,它可以实时的接收实时数据收集模块301传输过来的数据,并且安全的存储到Kafka集群中。开源集群计算系统303可以是Spark集群,开源集群计算系统303可以实时接收从kafka订阅的数据和从用户模型模块306获取用户历史模型数据,综合实时数据和历史数据进行分析计算,把所需数据进行分类加工,然后存入分布式搜索和分析引擎307。分布式搜索和分析引擎307可以是ElasticSearch集群,内部存储了闪购所有用户的最近浏览记录和商品的各种详细信息。活动排序模块308可以把实时数据与离线数据相结合, 并且做到秒级响应,返回一个排好序的活动列表数据。订单接口309可以用于查询用户的订单信息。页面管理模块3010用于展示推荐的商品,可以按照得分排序,越高展示的位置的越靠前。With continued reference to FIG. 3, FIG. 3 is a schematic diagram of an application scenario of a webpage generating method according to the embodiment. The webpage generating system 300 includes a real-time data collecting module 301, which is mainly composed of a page embedding point JS (Javascript, Java description language) and a proxy. The function of embedding the JS is to record the browsing summary of the user on the flashing page, and real-time. Sending this information to the agent, there are two types of agents. One is to receive the data of the page buried JS, and after simple processing, push the data to the distributed publish and subscribe message system 302; the other is to accept the change about the order form. The log data of the information is passed to the distributed publish subscription message system 302. The offline data collection module 304 is mainly composed of a page burying point JS (Javascript, Java description language) and a proxy. The function of burying the JS is to record the browsing details of the user on the flashing page, and then periodically send the information to the batch. The agent sends the browsing details of the received flash page to the distributed file system 305 in a batch. The distributed file system 305 can be a Hadoop cluster. The Hadoop cluster is mainly used to store flash offline data, and mainly provides browsing behavior and consumption behavior during a user's historical time period. The user model module 306 is a user data model library calculated by querying the historical data in the distributed file system 305. The module can mainly return the user's favorite product category information, the most interesting product category information, and recent attention. The highest quality category information and so on. The distributed publish and subscribe message system 302 can be a Kafka cluster, which can receive data transmitted by the real-time data collection module 301 in real time and securely store it in a Kafka cluster. The open source cluster computing system 303 can be a Spark cluster. The open source cluster computing system 303 can receive data subscribed from kafka in real time and acquire user history model data from the user model module 306, synthesize real-time data and historical data for analysis and calculation, and perform required data. The classification process is then stored in a distributed search and analysis engine 307. The distributed search and analysis engine 307 can be an ElasticSearch cluster that internally stores various details of recent browsing records and merchandise for all users. The activity ranking module 308 can combine real-time data with offline data. And to achieve a second-level response, return a sort of active list data. The order interface 309 can be used to query the order information of the user. The page management module 3010 is used to display the recommended items, which can be sorted according to the score, and the higher the position of the displayed, the higher the position.
本申请提供的网页生成方法和装置,首先记录预定网页中用户的操作信息,并获取预设时间段内用户的订单信息;之后,根据操作信息和订单信息中的至少一项,对预先设置的待呈现在预定网页上的各个信息进行评分;最后,根据分数,对待呈现在预定网页上的各个信息进行排序,并生成排序后的网页,从而有效的利用了用户的操作信息和历史订单信息,解决了传统信息推送方法针对性差的问题。The webpage generating method and apparatus provided by the present application first records the operation information of the user in the predetermined webpage, and acquires the order information of the user within the preset time period; and then, according to at least one of the operation information and the order information, the preset Each piece of information to be presented on the predetermined web page is scored; finally, according to the score, each piece of information presented on the predetermined web page is sorted, and the sorted web page is generated, thereby effectively utilizing the operation information and historical order information of the user. It solves the problem that the traditional information push method is poorly targeted.
进一步参考图4,其示出了网页生成方法的又一个实施例的流程400。该网页生成方法的流程400,包括以下步骤:With further reference to FIG. 4, a flow 400 of yet another embodiment of a web page generation method is illustrated. The process 400 of the web page generation method includes the following steps:
步骤401,记录预定网页中用户的操作信息。Step 401: Record operation information of the user in the predetermined webpage.
在本实施例中,网页生成方法运行于其上的电子设备(例如图1所示的服务器)可以通过有线连接方式或无线连接方式从用户利用其对网页上的信息进行操作的终端(例如图1所示的终端设备103)获取并记录其对网页上的信息的操作信息。In this embodiment, the electronic device (for example, the server shown in FIG. 1) on which the webpage generating method runs can use the terminal (such as a map) to operate the information on the webpage from the user through a wired connection or a wireless connection. The terminal device 103 shown in 1 acquires and records its operation information on the information on the web page.
步骤402,获取在预设时间段内用户的订单信息。Step 402: Acquire an order information of the user within a preset time period.
在本实施例中,上述电子设备可以获取在预设时间段内用户购买的在线商品的订单信息。上述预设时间段可以是设置的任一时间段,例如,一个月、一周、一天、一个小时等。In this embodiment, the electronic device may acquire order information of an online product purchased by the user within a preset time period. The preset time period may be any time period set, for example, one month, one week, one day, one hour, and the like.
步骤403,在待呈现在预定网页上的各个信息中,查询操作信息所对应的操作作用于其上的第一信息。Step 403: Query, in each information to be presented on the predetermined webpage, the first information to which the operation corresponding to the operation information acts.
在本实施例中,上述电子设备可以在上述待呈现在上述预定网页上的各个信息中,查询步骤401中记录的操作信息所对应的操作作用于其上的第一信息。作为示例,上述待呈现在上述预定网页上的各个信息包括B品牌雨伞、C品牌洗发水、新疆葡萄干、烟台苹果和D品牌啤酒等,上述用户对C品牌洗发水、B品牌雨衣和新疆特产进行了操作,则上述电子设备可以查询出上述第一信息可以包括B品牌雨伞、C品牌洗发水和新疆葡萄干。 In this embodiment, the electronic device may query the first information to which the operation corresponding to the operation information recorded in step 401 acts on the respective information to be presented on the predetermined webpage. As an example, the above-mentioned various information to be presented on the predetermined webpage includes the B brand umbrella, the C brand shampoo, the Xinjiang raisin, the Yantai apple and the D brand beer, etc., and the above-mentioned users perform the C brand shampoo, the B brand raincoat and the Xinjiang specialty product. In operation, the electronic device can query that the first information may include a B brand umbrella, a C brand shampoo, and a Xinjiang raisin.
步骤404,确定第一信息的数量。 Step 404, determining the quantity of the first information.
在本实施例中,上述电子设备可以确定步骤403中查询出的第一信息的总数量。作为示例,若上述第一信息包括B品牌雨伞、C品牌洗发水和新疆葡萄干,则上述第一信息的总数量为3。In this embodiment, the electronic device may determine the total number of first information queried in step 403. As an example, if the first information includes the B brand umbrella, the C brand shampoo, and the Xinjiang raisin, the total number of the first information is 3.
步骤405,对第一信息进行排序,并按照排序顺序,为每个第一信息设置序号。Step 405: Sort the first information, and set a sequence number for each first information according to the sorting order.
在本实施例中,上述电子设备可以对上述第一信息进行排序,并按照排序的顺序为每个第一信息设置序号。例如,可以按照上述用户浏览各个第一信息的时间由长到短的顺序对上述第一信息进行排序,排序的结果为C品牌洗发水、B品牌雨伞和新疆葡萄干,则C品牌洗发水的序号为1,B品牌雨伞的序号为2,新疆葡萄干的序号为3。In this embodiment, the electronic device may sort the first information and set a sequence number for each first information in a sorted order. For example, the first information may be sorted in order of length to short according to the time when the user browses each first information, and the sorted result is C brand shampoo, B brand umbrella and Xinjiang raisin, and the serial number of the C brand shampoo For the 1,B brand umbrella, the serial number is 2, and the Xinjiang raisin has the serial number 3.
在本实施例的一些可选的实现方式中,上述电子设备还可以按照上述用户对上述第一信息的操作次数由大到小的顺序对上述第一信息进行排序,例如,上述用户浏览了C品牌洗发水、B品牌雨衣和新疆特产,关注了C品牌洗发水和新疆特产,并将C品牌洗发水加入了购物车,则上述用户对C品牌洗发水的操作次数为3次,对B品牌雨衣的操作次数为1次,对新疆特产的操作次数为2次,则按照上述用户对上述第一信息的操作次数由大到小的顺序对上述第一信息进行排序的排序结果为:C品牌洗发水、新疆特产和B品牌雨衣。In some optional implementation manners of the embodiment, the electronic device may further sort the first information according to the order of the number of operations of the first information by the user, for example, the user browses C. Brand shampoo, B brand raincoat and Xinjiang specialty products, pay attention to C brand shampoo and Xinjiang specialty products, and add C brand shampoo to the shopping cart, then the above-mentioned users operate the C brand shampoo 3 times, for the B brand The number of operations of the raincoat is 1 time, and the number of operations on the Xinjiang specialty product is 2 times, and the sorting result of sorting the first information in the order of the number of operations of the first information by the user is: C brand Shampoo, Xinjiang specialty and B brand raincoat.
在本实施例的一些可选的实现方式中,上述电子设备还可以按照上述预定网页的历史订单中包含的第一信息的数量由多到少的顺序对上述第一信息进行排序,例如,上述预定网页的历史订单中包含C品牌洗发水的订单数为476,包含B品牌雨衣的订单数为243,包含新疆特产的订单数为1390,则按照上述预定网页的历史订单中包含的第一信息的数量由多到少的顺序对上述第一信息进行排序的排序结果为:新疆特产、C品牌洗发水和B品牌雨衣。In some optional implementation manners of the embodiment, the electronic device may further sort the first information in an order of the number of the first information included in the historical order of the predetermined webpage, for example, the foregoing. The number of orders for C brand shampoo in the historical order of the scheduled webpage is 476, the number of orders including B brand raincoat is 243, and the number of orders containing Xinjiang specialty products is 1390, according to the first information contained in the historical order of the above-mentioned scheduled webpage. The order of sorting the above first information in order of number is: Xinjiang specialty product, C brand shampoo and B brand raincoat.
步骤406,计算第一信息的数量与每个第一信息的序号的差值,并将差值作为各个第一信息的评分分数。Step 406: Calculate a difference between the number of first information and the serial number of each first information, and use the difference as the score score of each first information.
在本实施例中,上述电子设备可以计算上述第一信息的总数量与每个第一信息的序号的差值,并将上述差值作为各个第一信息的评分 分数。作为示例,可以将总数量3与C品牌洗发水的序号1的差值2作为C品牌洗发水的评分分数,将总数量3与B品牌雨伞的序号2的差值1作为B品牌雨伞的评分分数,将总数量3与新疆葡萄干的序号3的差值0作为新疆葡萄干的评分分数。In this embodiment, the electronic device may calculate a difference between the total number of the first information and the serial number of each first information, and use the difference as the score of each first information. fraction. As an example, the difference 2 between the total number 3 and the serial number 1 of the C brand shampoo can be taken as the score score of the C brand shampoo, and the difference 1 between the total number 3 and the serial number 2 of the B brand umbrella is taken as the score of the B brand umbrella. Score, the difference between the total number of 3 and the serial number 3 of Xinjiang raisins is 0 as the score of Xinjiang raisins.
在本实施例中,上述电子设备可以调用用户的历史感兴趣的品类名称集合和品牌名称集合;之后,可以把实时的结果和历史的结果归类,同品类的合并在一起,同品牌的合并在一起;然后,分别设置实时品类权重值、历史品类权重值、实时品牌权重值和历史品牌权重值;最后,计算上述实时品类评分分数与实时品类权重值的乘积与上述历史品类评分分数与历史品类权重值的乘积之和,并将上述和值作为品类的评分分数;同理,计算上述实时品牌评分分数与实时品牌权重值的乘积与上述历史品牌评分分数与历史品牌权重值的乘积之和,并将上述和值作为品牌的评分分数。In this embodiment, the electronic device may invoke a collection of category names and brand names that are of interest to the user's history; after that, the results of the real-time and the results of the history may be classified, merged with the same category, and merged with the same brand. Together; then, set real-time category weight value, historical category weight value, real-time brand weight value and historical brand weight value; finally, calculate the product of the above-mentioned real-time category score and real-time category weight value and the above-mentioned historical category score and history The sum of the products of the category weight values, and the above sum value is used as the score of the category; in the same way, the sum of the product of the real-time brand score and the real-time brand weight value and the product of the historical brand score and the historical brand weight value are calculated. And use the above sum value as the score of the brand.
步骤407,在待呈现在预定网页上的各个信息中,查询与订单信息相关联的第二信息。Step 407: Query the second information associated with the order information in each piece of information to be presented on the predetermined webpage.
在本实施例中,上述电子设备可以在上述待呈现在上述预定网页上的各个信息中,查询与上述订单信息相关联的第二信息,例如,上述用户的订单信息中包括A品牌的洗衣液和樱桃等,上述待呈现在上述预定网页上的各个信息中包括A品牌的洗衣粉、A品牌的柔顺剂和山东樱桃,则与上述订单信息相关联的第二信息可以为A品牌的洗衣粉、A品牌的柔顺剂和山东樱桃。In this embodiment, the electronic device may query the second information associated with the order information in the respective information to be presented on the predetermined webpage, for example, the order information of the user includes the laundry liquid of the A brand. And the cherry, etc., wherein the information to be presented on the predetermined webpage includes the A brand washing powder, the A brand softener and the Shandong cherry, the second information associated with the order information may be the A brand washing powder. , A brand of softener and Shandong cherry.
步骤408,获取第二信息在订单信息中出现的次数。Step 408: Obtain the number of times the second information appears in the order information.
在本实施例中,上述电子设备可以获取上述第二信息在上述订单信息中出现的次数,例如,可以获取到在上述用户的订单信息中出现三次樱桃的购买信息和两次A品牌商品的购买信息。In this embodiment, the electronic device may acquire the number of times the second information appears in the order information, for example, may obtain purchase information of three times of cherries and purchase of two A-brand items in the order information of the user. information.
步骤409,根据次数,为第二信息设置评分分数。Step 409: Set a score score for the second information according to the number of times.
在本实施例中,上述电子设备可以根据上述第二信息在上述订单信息中出现的次数,为上述第二信息设置评分分数。In this embodiment, the electronic device may set a score score for the second information according to the number of times the second information appears in the order information.
在本实施例的一些可选的实现方式中,上述第二信息可以包括品类信息和品牌信息中的至少一项。上述电子设备可以为待呈现在上述 预定网页上的各个信息预先设置初始分数(例如,10分、5分、0分等),若上述第二信息为品类信息时,则可以将上述初始分数与第二信息在上述订单信息中出现的次数的差值作为上述第二信息的评分分数,例如,樱桃为品类信息,则可以将上述初始分数10分与樱桃在上述订单信息中出现的次数3次的差值7作为樱桃的评分分数;若上述第二信息为品牌信息时,则可以将上述初始分数与第二信息在上述订单信息中出现的次数之和作为上述第二信息的评分分数,例如,A品牌为品牌信息,则可以将上述初始分数10分与A品牌在上述订单信息中出现的次数2次之和12作为A品牌的评分分数。In some optional implementation manners of the embodiment, the foregoing second information may include at least one of category information and brand information. The above electronic device may be presented above Each piece of information on the predetermined webpage is preset with an initial score (for example, 10 minutes, 5 minutes, 0 points, etc.), and if the second information is category information, the initial score and the second information may appear in the order information. The difference in the number of times is used as the score score of the second information. For example, if the cherry is the category information, the difference between the initial score of 10 and the number of occurrences of the cherry in the order information of 3 times is 7 as the score of the cherry. If the second information is the brand information, the sum of the initial score and the number of times the second information appears in the order information may be used as the score of the second information. For example, if the brand A is brand information, The sum of 10 points of the above initial score and the number 2 of occurrences of the A brand in the above order information are taken as the score score of the A brand.
步骤4010,根据评分,对待呈现在预定网页上的各个信息进行排序,并生成排序后的网页。Step 4010: Sort each information to be presented on the predetermined webpage according to the score, and generate the sorted webpage.
在本实施例中,上述电子设备可以根据步骤406中得出的评分分数对待呈现在上述预定网页上的各个信息进行排序,也可以根据步骤409中得出的评分分数对待呈现在上述预定网页上的各个信息进行排序,还可以综合步骤406中的评分分数和步骤409中的评分分数对待呈现在上述预定网页上的各个信息进行排序,并生成排序后的网页以供随时向上述用户推送上述网页。In this embodiment, the electronic device may sort the information to be presented on the predetermined webpage according to the score score obtained in step 406, or may be presented on the predetermined webpage according to the score score obtained in step 409. Sorting each piece of information, and synthesizing the scores in step 406 and the scores in step 409 to sort the information presented on the predetermined webpage, and generating the sorted webpages for pushing the webpage to the user at any time. .
从图4可以看出与图2对应的实施例相比,本实施例中的网页生成方法的流程400突出了根据操作信息和订单信息中的至少一项,对待呈现在预定网页上的各个信息进行评分的步骤。由此,本实施例描述的方案可以具体描述如何根据操作信息和/或订单信息得出待呈现在预定网页上的各个信息的分数,从而实现了更有针对性的信息推送和更有效的网页生成。It can be seen from FIG. 4 that the flow 400 of the webpage generating method in this embodiment highlights each information to be presented on a predetermined webpage according to at least one of the operation information and the order information, as compared with the embodiment corresponding to FIG. The step of scoring. Thus, the solution described in this embodiment can specifically describe how to score the respective information to be presented on the predetermined webpage according to the operation information and/or the order information, thereby realizing more targeted information push and more effective webpage. generate.
进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种网页生成装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With reference to FIG. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of a webpage generating apparatus, and the apparatus embodiment corresponds to the method embodiment shown in FIG. Used in a variety of electronic devices.
如图5所示,本实施例上述的网页生成装置500包括:记录单元501、获取单元502、评分单元503和排序单元504。其中,记录单元501配置用于记录预定网页中用户的操作信息;获取单元502配置用 于获取在预设时间段内所述用户的订单信息;评分单元503配置用于根据所述操作信息和所述订单信息中的至少一项,对预先设置的待呈现在所述预定网页上的各个信息进行评分;而排序单元504配置用于根据所述评分,对所述待呈现在所述预定网页上的各个信息进行排序,并生成排序后的网页。As shown in FIG. 5, the webpage generating apparatus 500 described above in this embodiment includes a recording unit 501, an obtaining unit 502, a scoring unit 503, and a sorting unit 504. The recording unit 501 is configured to record operation information of the user in the predetermined webpage; Obtaining the order information of the user in a preset time period; the scoring unit 503 is configured to: set, according to at least one of the operation information and the order information, a preset preset to be presented on the predetermined webpage Each piece of information is scored; and the sorting unit 504 is configured to sort the pieces of information to be presented on the predetermined web page according to the score, and generate the sorted web page.
在本实施例中,网页生成装置500中记录单元501、获取单元502、评分单元503和排序单元504的具体处理可参看图2对应实施例中的步骤201、步骤202、步骤203和步骤204的实现方式的相关描述,在此不再赘述。In this embodiment, the specific processing of the recording unit 501, the obtaining unit 502, the scoring unit 503, and the sorting unit 504 in the webpage generating apparatus 500 may refer to step 201, step 202, step 203, and step 204 in the corresponding embodiment of FIG. The related description of the implementation manner will not be repeated here.
在本实施例的一些可选的实现方式中,上述评分单元503可以包括第一查询模块5031、确定模块5032、排序模块5033和计算模块5034。其中,上述第一查询模块5031可以在上述待呈现在上述预定网页上的各个信息中,查询上述记录单元501中记录的操作信息所对应的操作作用于其上的第一信息。上述确定模块5032可以确定上述第一查询模块5031中查询出的第一信息的总数量。上述排序模块5033可以对上述第一信息进行排序,并按照排序的顺序为每个第一信息设置序号。上述计算模块5034可以计算上述第一信息的总数量与每个第一信息的序号的差值,并将上述差值作为各个第一信息的评分分数。In some optional implementation manners of the embodiment, the scoring unit 503 may include a first query module 5031, a determining module 5032, a sorting module 5033, and a computing module 5034. The first query module 5031 may query the first information to which the operation corresponding to the operation information recorded in the recording unit 501 acts on the information to be presented on the predetermined webpage. The determining module 5032 may determine the total number of first information queried in the first query module 5031. The sorting module 5033 may sort the first information and set a sequence number for each first information in a sorted order. The calculation module 5034 may calculate a difference between the total number of the first information and the serial number of each first information, and use the difference as the score score of each first information.
在本实施例的一些可选的实现方式中,上述排序模块5033可以按照上述用户对上述第一信息的操作次数由大到小的顺序对上述第一信息进行排序。In some optional implementation manners of the embodiment, the sorting module 5033 may sort the first information according to the order in which the user operates the first information in descending order.
在本实施例的一些可选的实现方式中,上述排序模块5033还可以按照上述预定网页的历史订单中包含的第一信息的数量由多到少的顺序对上述第一信息进行排序。In some optional implementation manners of the embodiment, the sorting module 5033 may further sort the first information in order of the number of first information included in the historical order of the predetermined webpage.
在本实施例的一些可选的实现方式中,上述评分单元503还可以包括第二查询模块5035、获取模块5036和设置模块5037。其中,上述第二查询模块5035可以在上述待呈现在上述预定网页上的各个信息中,查询与上述订单信息相关联的第二信息。上述获取模块5036可以获取上述第二信息在上述订单信息中出现的次数。上述设置模块5037可以根据上述第二信息在上述订单信息中出现的次数,为上述第 二信息设置评分分数。In some optional implementation manners of the embodiment, the scoring unit 503 may further include a second query module 5035, an obtaining module 5036, and a setting module 5037. The second query module 5035 may query the second information associated with the order information in each of the information to be presented on the predetermined webpage. The obtaining module 5036 can obtain the number of times the second information appears in the order information. The setting module 5037 may be the number of times that the second information appears in the order information according to the second information. Two information sets the score score.
在本实施例的一些可选的实现方式中,当上述第二信息包括品类信息和品牌信息中的至少一项时,上述设置模块5037可以包括第一设置子模块50371和第二设置子模块50372。若上述第二信息为品类信息时,上述第一设置子模块50371可以将上述初始分数与第二信息在上述订单信息中出现的次数的差值作为上述第二信息的评分分数。若上述第二信息为品牌信息时,上述第二设置子模块50372可以将上述初始分数与第二信息在上述订单信息中出现的次数之和作为上述第二信息的评分分数。In some optional implementation manners of the embodiment, when the foregoing second information includes at least one of the category information and the brand information, the setting module 5037 may include the first setting submodule 50371 and the second setting submodule 50372. . If the second information is the category information, the first setting sub-module 50371 may use the difference between the initial score and the number of times the second information appears in the order information as the score score of the second information. If the second information is brand information, the second setting sub-module 50372 may use the sum of the initial score and the number of times the second information appears in the order information as the score score of the second information.
在本实施例的一些可选的实现方式中,上述排序单元504可以按照分数由大到小的顺序对待呈现在上述预定网页上的各个信息进行排序,即将分数值最大的信息放在第一位,将分数值最小的信息放在最后一位。In some optional implementation manners of the embodiment, the sorting unit 504 may sort the information that is to be presented on the predetermined webpage in descending order of the score, that is, the information with the largest score is placed in the first place. , put the information with the smallest score in the last digit.
下面参考图6,其示出了适于用来实现本申请实施例服务器的计算机系统600的结构示意图。Referring now to Figure 6, a block diagram of a computer system 600 suitable for use with a server of an embodiment of the present application is shown.
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, computer system 600 includes a central processing unit (CPU) 601 that can be loaded into a program in random access memory (RAM) 603 according to a program stored in read only memory (ROM) 602 or from storage portion 608. And perform various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also coupled to bus 604.
以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。 The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a storage portion 608 including a hard disk or the like. And a communication portion 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet. Driver 610 is also coupled to I/O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 610 as needed so that a computer program read therefrom is installed into the storage portion 608 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括有形地包含在机器可读介质上的计算机程序,上述计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as a computer software program in accordance with an embodiment of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine readable medium, the computer program comprising program code for executing the method illustrated in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611. When the computer program is executed by the central processing unit (CPU) 601, the above-described functions defined in the method of the present application are performed.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality and operation of possible implementations of systems, methods and computer program products in accordance with various embodiments of the present application. In this regard, each block of the flowchart or block diagrams can represent a module, a program segment, or a portion of code that includes one or more Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块也可以设置在处理器中,例如,可以描述为:一种处理器包括记录单元、获取单元、评分单元和排序单元。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定,例如,记录单元还可以被描述为“记录预定网页中用户的操作信息的单元”。The modules involved in the embodiments of the present application may be implemented by software or by hardware. The described modules may also be provided in the processor, for example, as a processor including a recording unit, an acquisition unit, a scoring unit, and a sorting unit. The names of these modules do not constitute a limitation on the module itself under certain circumstances. For example, the recording unit may also be described as "a unit that records operation information of a user in a predetermined web page."
作为另一方面,本申请还提供了一种非易失性计算机存储介质,该非易失性计算机存储介质可以是上述实施例中上述装置中所包含的非易失性计算机存储介质;也可以是单独存在,未装配入终端中的非易失性计算机存储介质。上述非易失性计算机存储介质存储有一个或者多个程序,当上述一个或者多个程序被一个设备执行时,使得上述设备:记录预定网页中用户的操作信息;获取在预设时间段内所述用 户的订单信息;根据所述操作信息和所述订单信息中的至少一项,对预先设置的待呈现在所述预定网页上的各个信息进行评分;根据所述评分,对所述待呈现在所述预定网页上的各个信息进行排序,并生成排序后的网页。In another aspect, the present application further provides a non-volatile computer storage medium, which may be a non-volatile computer storage medium included in the foregoing apparatus in the foregoing embodiment; It is a non-volatile computer storage medium that exists alone and is not assembled into the terminal. The non-volatile computer storage medium stores one or more programs, when the one or more programs are executed by a device, causing the device to: record operation information of the user in the predetermined webpage; and acquire the preset time period Description The order information of the household; the predetermined information to be presented on the predetermined webpage is scored according to at least one of the operation information and the order information; according to the score, the to-be-presented Each piece of information on the predetermined web page is sorted and a sorted web page is generated.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。 The above description is only a preferred embodiment of the present application and a description of the principles of the applied technology. It should be understood by those skilled in the art that the scope of the invention referred to in the present application is not limited to the specific combination of the above technical features, and should also be covered by the above technical features or without departing from the above inventive concept. Other technical solutions formed by arbitrarily combining the equivalent features. For example, the above features are combined with the technical features disclosed in the present application, but are not limited to the technical features having similar functions.

Claims (16)

  1. 一种网页生成方法,其特征在于,所述方法包括:A method for generating a webpage, the method comprising:
    记录预定网页中用户的操作信息;Recording operation information of the user in the predetermined webpage;
    获取在预设时间段内所述用户的订单信息;Obtaining order information of the user within a preset time period;
    根据所述操作信息和所述订单信息中的至少一项,对预先设置的待呈现在所述预定网页上的各个信息进行评分;And rating, according to at least one of the operation information and the order information, a predetermined information to be presented on the predetermined webpage;
    根据所述评分,对所述待呈现在所述预定网页上的各个信息进行排序,并生成排序后的网页。According to the rating, the respective information to be presented on the predetermined webpage is sorted, and the sorted webpage is generated.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述操作信息,对预先设置的待呈现在所述预定网页上的各个信息进行评分,包括:The method according to claim 1, wherein the scoring the respective information to be presented on the predetermined webpage according to the operation information comprises:
    在所述待呈现在所述预定网页上的各个信息中,查询所述操作信息所对应的操作作用于其上的第一信息;Querying, in each piece of information to be presented on the predetermined webpage, the first information on which the operation corresponding to the operation information is applied;
    确定所述第一信息的数量;Determining the quantity of the first information;
    对所述第一信息进行排序,并按照排序顺序,为每个第一信息设置序号;Sorting the first information, and setting a sequence number for each first information according to a sorting order;
    计算所述第一信息的数量与每个第一信息的序号的差值,并将所述差值作为各个第一信息的评分分数。A difference between the number of the first information and the serial number of each first information is calculated, and the difference is used as a score score of each first information.
  3. 根据权利要求2所述的方法,其特征在于,所述对所述第一信息进行排序,包括:The method according to claim 2, wherein the sorting the first information comprises:
    按照所述用户对所述第一信息进行操作的次数由大到小的顺序对所述第一信息进行排序。The first information is sorted in descending order of the number of times the user operates the first information.
  4. 根据权利要求2所述的方法,其特征在于,所述对所述第一信息进行排序,包括:The method according to claim 2, wherein the sorting the first information comprises:
    按照所述预定网页的历史订单中包含所述第一信息的数量由多到少的顺序对所述第一信息进行排序。 The first information is sorted in order of the number of the first information included in the historical order of the predetermined webpage.
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述订单信息,对预先设置的待呈现在所述预定网页上的各个信息进行评分,包括:The method according to claim 1, wherein the scoring the respective information to be presented on the predetermined webpage according to the order information comprises:
    在所述待呈现在所述预定网页上的各个信息中,查询与所述订单信息相关联的第二信息;Querying, in each piece of information to be presented on the predetermined webpage, second information associated with the order information;
    获取所述第二信息在所述订单信息中出现的次数;Obtaining the number of times the second information appears in the order information;
    根据所述次数,为所述第二信息设置评分分数。A score score is set for the second information according to the number of times.
  6. 根据权利要求5所述的方法,其特征在于,所述第二信息包括品类信息和品牌信息中的至少一项;以及The method of claim 5, wherein the second information comprises at least one of category information and brand information;
    根据所述次数,为所述第二信息设置评分分数,包括:Setting a score score for the second information according to the number of times, including:
    若所述第二信息为品类信息,则将所述第二信息的预设初始分数与所述次数的差值作为所述第二信息的评分分数;If the second information is the category information, the difference between the preset initial score of the second information and the number of times is used as the score score of the second information;
    若所述第二信息为品牌信息,则将所述第二信息的预设初始分数与所述次数之和作为所述第二信息的评分分数。If the second information is brand information, the sum of the preset initial score of the second information and the number of times is used as the score score of the second information.
  7. 根据权利要求1-6之一所述的方法,其特征在于,所述根据所述评分,对所述待呈现的信息进行排序,包括:The method according to any one of claims 1 to 6, wherein the sorting the information to be presented according to the score comprises:
    按照分数由大到小的顺序对所述待呈现在所述预定网页上的各个信息进行排序。The respective information to be presented on the predetermined web page is sorted in descending order of scores.
  8. 一种网页生成装置,其特征在于,所述装置包括:A webpage generating apparatus, wherein the apparatus comprises:
    记录单元,配置用于记录预定网页中用户的操作信息;a recording unit configured to record operation information of a user in a predetermined webpage;
    获取单元,配置用于获取在预设时间段内所述用户的订单信息;An obtaining unit, configured to acquire order information of the user in a preset time period;
    评分单元,配置用于根据所述操作信息和所述订单信息中的至少一项,对预先设置的待呈现在所述预定网页上的各个信息进行评分;a scoring unit configured to score each piece of information to be presented on the predetermined webpage according to at least one of the operation information and the order information;
    排序单元,配置用于根据所述评分,对所述待呈现在所述预定网页上的各个信息进行排序,并生成排序后的网页。 a sorting unit configured to sort the pieces of information to be presented on the predetermined webpage according to the score, and generate the sorted webpage.
  9. 根据权利要求8所述的装置,其特征在于,所述评分单元包括:The apparatus according to claim 8, wherein said scoring unit comprises:
    第一查询模块,配置用于在所述待呈现在所述预定网页上的各个信息中,查询所述操作信息所对应的操作作用于其上的第一信息;a first querying module, configured to query, in each piece of information to be presented on the predetermined webpage, the first information to which the operation corresponding to the operation information acts;
    确定模块,配置用于确定所述第一信息的数量;Determining a module, configured to determine the quantity of the first information;
    排序模块,配置用于对所述第一信息进行排序,并按照排序顺序,为每个第一信息设置序号;a sorting module, configured to sort the first information, and set a sequence number for each first information according to a sorting order;
    计算模块,配置用于计算所述第一信息的数量与每个第一信息的序号的差值,并将所述差值作为各个第一信息的评分分数。And a calculation module configured to calculate a difference between the quantity of the first information and the sequence number of each first information, and use the difference value as a score score of each first information.
  10. 根据权利要求9所述的装置,其特征在于,所述排序模块进一步配置用于:The apparatus of claim 9, wherein the ordering module is further configured to:
    按照所述用户对所述第一信息进行操作的次数由大到小的顺序对所述第一信息进行排序。The first information is sorted in descending order of the number of times the user operates the first information.
  11. 根据权利要求9所述的装置,其特征在于,所述排序模块进一步配置用于:The apparatus of claim 9, wherein the ordering module is further configured to:
    按照所述预定网页的历史订单中包含所述第一信息的数量由多到少的顺序对所述第一信息进行排序。The first information is sorted in order of the number of the first information included in the historical order of the predetermined webpage.
  12. 根据权利要求8所述的装置,其特征在于,所述评分单元还包括:The device according to claim 8, wherein the scoring unit further comprises:
    第二查询模块,配置用于在所述待呈现在所述预定网页上的各个信息中,查询与所述订单信息相关联的第二信息;a second querying module, configured to query, in each piece of information to be presented on the predetermined webpage, second information associated with the order information;
    获取模块,配置用于获取所述第二信息在所述订单信息中出现的次数;An obtaining module, configured to acquire a number of times the second information appears in the order information;
    设置模块,配置用于根据所述次数,为所述第二信息设置评分分数。And a setting module configured to set a score score for the second information according to the number of times.
  13. 根据权利要求12所述的装置,其特征在于,所述第二信息包括品类信息和品牌信息中的至少一项;以及所述设置模块包括: The apparatus according to claim 12, wherein the second information comprises at least one of category information and brand information; and the setting module comprises:
    第一设置子模块,配置用于若所述第二信息为品类信息,则将所述第二信息的预设初始分数与所述次数的差值作为所述第二信息的评分分数;a first setting sub-module, configured to use, as the category information, the difference between the preset initial score of the second information and the number of times as a score score of the second information;
    第二设置子模块,配置用于若所述第二信息为品牌信息,则将所述第二信息的预设初始分数与所述次数之和作为所述第二信息的评分分数。And a second setting submodule configured to use, as the brand information, the sum of the preset initial score of the second information and the number of times as the scoring score of the second information.
  14. 根据权利要求8-13之一所述的装置,其特征在于,所述排序单元进一步配置用于:The apparatus according to any one of claims 8-13, wherein the sorting unit is further configured to:
    按照分数由大到小的顺序对所述待呈现在所述预定网页上的各个信息进行排序。The respective information to be presented on the predetermined web page is sorted in descending order of scores.
  15. 一种设备,包括:A device that includes:
    处理器;和Processor; and
    存储器,Memory,
    所述存储器中存储有能够被所述处理器执行的计算机可读指令,在所述计算机可读指令被执行时,所述处理器执行如权利要求1-7中任一项所述的方法。The memory stores computer readable instructions executable by the processor, the processor executing the method of any of claims 1-7 when the computer readable instructions are executed.
  16. 一种非易失性计算机存储介质,所述计算机存储介质存储有能够被处理器执行的计算机可读指令,当所述计算机可读指令被处理器执行时,所述处理器执行如权利要求1-7中任一项所述的方法。 A non-volatile computer storage medium storing computer readable instructions executable by a processor, the processor executing as claimed in claim 1 The method of any of -7.
PCT/CN2017/092996 2016-09-19 2017-07-14 Web page generation method and device WO2018049908A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610831897.1A CN107845005A (en) 2016-09-19 2016-09-19 webpage generating method and device
CN201610831897.1 2016-09-19

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US16/647,481 A-371-Of-International US11208933B2 (en) 2017-09-19 2018-06-27 Exhaust gas after-treatment mixing device
US17/526,692 Continuation US11486290B2 (en) 2017-09-19 2021-11-15 Exhaust gas after-treatment mixing device

Publications (1)

Publication Number Publication Date
WO2018049908A1 true WO2018049908A1 (en) 2018-03-22

Family

ID=61619309

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/092996 WO2018049908A1 (en) 2016-09-19 2017-07-14 Web page generation method and device

Country Status (2)

Country Link
CN (1) CN107845005A (en)
WO (1) WO2018049908A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990719A (en) * 2019-12-05 2020-04-10 上海中信信息发展股份有限公司 Information pushing method and device, readable storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7072476B2 (en) * 2018-09-19 2022-05-20 ヤフー株式会社 Information processing equipment, sales support systems, information processing methods, and programs

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446225A (en) * 2012-01-11 2012-05-09 深圳市爱咕科技有限公司 Real-time search method, device and system
CN105787061A (en) * 2016-02-29 2016-07-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 Information pushing method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010011235A1 (en) * 2000-01-29 2001-08-02 E-Net Co., Ltd. Apparatus for realizing personal shops in an electronic commerce business
CN102346894B (en) * 2010-08-03 2017-03-01 阿里巴巴集团控股有限公司 The output intent of recommendation information, system and server
CN102866992B (en) * 2011-07-04 2015-12-02 阿里巴巴集团控股有限公司 A kind of method and device showing product information in webpage
EP2763421A1 (en) * 2013-02-01 2014-08-06 Krea Icerik Hizmetleri Ve Produksiyon Anonim Sirketi A personalized movie recommendation method and system
WO2015006622A1 (en) * 2013-07-10 2015-01-15 Crowdcomfort, Inc. System and method for crowd-sourced environmental system control and maintenance
CN105894332A (en) * 2016-04-22 2016-08-24 深圳市永兴元科技有限公司 Commodity recommendation method, device and system based on user behavior analysis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446225A (en) * 2012-01-11 2012-05-09 深圳市爱咕科技有限公司 Real-time search method, device and system
CN105787061A (en) * 2016-02-29 2016-07-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 Information pushing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990719A (en) * 2019-12-05 2020-04-10 上海中信信息发展股份有限公司 Information pushing method and device, readable storage medium and electronic equipment
CN110990719B (en) * 2019-12-05 2024-03-12 上海信联信息发展股份有限公司 Information pushing method and device, readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107845005A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN108885627B (en) Query-as-a-service system providing query result data to remote client
WO2018209954A1 (en) Information pushing method and device
JP6356744B2 (en) Method and system for displaying cross-website information
US9961025B2 (en) Method and system that streams real-time, processed data from remote processor-controlled appliances
US10853847B2 (en) Methods and systems for near real-time lookalike audience expansion in ads targeting
CN107516235B (en) Commodity preference estimation method and device
CN108664513B (en) Method, device and equipment for pushing keywords
CN107730337A (en) Information-pushing method and device
CN105718184A (en) Data processing method and apparatus
CN101431485A (en) Method and system for automatically recommending internet information
WO2013159608A1 (en) Network trading platform and processing method thereof
CN110163703B (en) Classification model establishing method, file pushing method and server
CN106251168A (en) Information-pushing method and system
US20200244752A1 (en) Processing an Event Stream Using Pattern Recognition
TWI705411B (en) Method and device for identifying users with social business characteristics
CN108537596A (en) Method, apparatus, system and the memory that vehicle is recommended in search box
CN108932640B (en) Method and device for processing orders
CN112116426A (en) Method and device for pushing article information
JP5249415B2 (en) Method and apparatus for providing data statistics
WO2018049908A1 (en) Web page generation method and device
TWI534732B (en) Recommended information output method, system and server
KR20200131809A (en) System for providing high-speed and safe contents
CN113495991A (en) Recommendation method and device
CN112825182A (en) Method and device for determining recommended commodities
Wang et al. Application research of web log mining in the E-commerce

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17850111

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.06.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17850111

Country of ref document: EP

Kind code of ref document: A1