CN108804445B - Thermodynamic diagram generation method and device - Google Patents

Thermodynamic diagram generation method and device Download PDF

Info

Publication number
CN108804445B
CN108804445B CN201710291349.9A CN201710291349A CN108804445B CN 108804445 B CN108804445 B CN 108804445B CN 201710291349 A CN201710291349 A CN 201710291349A CN 108804445 B CN108804445 B CN 108804445B
Authority
CN
China
Prior art keywords
click
page
snapshot
web page
coordinate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710291349.9A
Other languages
Chinese (zh)
Other versions
CN108804445A (en
Inventor
周国鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710291349.9A priority Critical patent/CN108804445B/en
Publication of CN108804445A publication Critical patent/CN108804445A/en
Application granted granted Critical
Publication of CN108804445B publication Critical patent/CN108804445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a thermodynamic diagram generation method and device. One embodiment of the method comprises: receiving a display request for performing thermodynamic diagram display on click information of a target webpage, wherein the display request comprises a click occurrence time period of click operation associated with the click information to be displayed; selecting a webpage snapshot corresponding to the target webpage presented in the click generating time period from the webpage snapshot set of the target webpage to generate a webpage snapshot subset; responding to the selection operation of the user on the webpage snapshots in the webpage snapshot subset, and acquiring click information of the selected webpage snapshots in a click live time period; and rendering the selected web page snapshot based on the click information to form a thermodynamic diagram of the target web page. This embodiment solves the problem of the background web page snapshot not matching the click data desired to be presented.

Description

Thermodynamic diagram generation method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a thermodynamic diagram generation method and apparatus.
Background
Thermodynamic diagrams (heatmaps) are a graphical representation of data information in a two-dimensional matrix or table, with shade changes in color. Due to the good visualization effect, the thermodynamic diagram is widely applied to website user behavior statistics and traffic map congestion situation statistics. Click thermodynamic diagrams are a more common type of thermodynamic diagrams. The main function of the click thermodynamic diagram is to display the distribution of the click positions of the visitors on the webpage in different color changes and shades. Based on the click thermodynamic diagram, the attention (click) condition of the user to each position in the webpage can be well analyzed, so that the webpage is optimized and the layout is adjusted.
Currently, when rendering a click thermodynamic diagram, the latest web page snapshot of a target web page is generally used as a background, all click data in an acquired query time period is processed, and the web page snapshot is rendered by using a thermodynamic diagram technology to generate the click thermodynamic diagram of the web page snapshot. However, rendering the latest web page snapshot as a background by using the click data in the query time period may result in a low correlation between the web page snapshot as the background and the click data, and may affect the judgment and data analysis of the web page by the analyst.
Disclosure of Invention
The present application aims to provide an improved thermodynamic diagram generation method and apparatus to solve the technical problems mentioned in the background section above.
In a first aspect, an embodiment of the present application provides a thermodynamic diagram generation method, where the method includes: receiving a display request for performing thermodynamic diagram display on click information of a target webpage, wherein the display request comprises a click occurrence time period of click operation associated with the click information to be displayed; selecting a webpage snapshot corresponding to the target webpage presented in the click generating time period from the webpage snapshot set of the target webpage to generate a webpage snapshot subset; responding to the selection operation of the user on the web page snapshot in the web page snapshot subset, and acquiring click information of the selected web page snapshot in the click birth time period; rendering the selected web page snapshot based on the click information to form a thermodynamic diagram of the target web page.
In some embodiments, each web page snapshot in the set of web page snapshots comprises a plurality of page blocks generated by pre-performing a page blocking operation; and acquiring click information of the selected webpage snapshot in the click birth time period, wherein the click information comprises the following steps: and acquiring click information of each page block in the selected webpage snapshot in the click generation time period.
In some embodiments, rendering the selected web page snapshot based on the click information includes: rendering the selected web page snapshot based on click information of each page block in the selected web page snapshot in a click generation time period.
In some embodiments, each page block in the selected web page snapshot includes attribute information, the attribute information including a rendering flag for identifying whether the page block is rendered; and acquiring click information of the selected webpage snapshot in the click birth time period, wherein the click information comprises: obtaining a rendering flag bit of each page block in the selected webpage snapshot; and acquiring click information of page blocks which are not subjected to rendering processing in the selected webpage snapshot in a click generation time period based on the rendering flag bit.
In some embodiments, obtaining click information of the selected web page snapshot in the click birth time period includes: generating click information acquisition requests corresponding to each page block in the click generation time period; sending click information acquisition requests to a server in parallel; and receiving click information corresponding to each page block returned by the server in parallel.
In some embodiments, the method further comprises: in response to the fact that the user clicks a webpage corresponding to a webpage snapshot in a webpage snapshot set, acquiring a first coordinate of a clicking position relative to a webpage area presented in the clicked webpage under a preset coordinate system, and acquiring a second coordinate of a page block to which the clicking position belongs relative to the webpage area presented in the clicked webpage under the preset coordinate system; determining a third coordinate of the click position relative to the page block to which the click position belongs by using the first coordinate and the second coordinate; an actual click location is determined based on the third coordinates.
In some embodiments, determining the actual click location based on the third coordinate comprises: determining whether the page block to which the click position belongs has a fixed length along one coordinate axis direction in a coordinate system to which a third coordinate belongs and a fixed width along the other coordinate axis direction in the coordinate system to which the third coordinate belongs based on the scale flag bit of the page block to which the click position belongs; and if the page block to which the click position belongs has a fixed length and a fixed width, taking the third coordinate as the actual click position.
In some embodiments, determining the actual click location based on the third coordinate further comprises: responding to the fact that the page block to which the click position belongs does not have a fixed length and/or a fixed width, and acquiring the length ratio of the presented page area to a preset standard page and/or the width ratio of the presented page area to the preset standard page; and mapping the third coordinate to a standard page based on the length ratio and/or the width ratio to obtain a fourth coordinate, and taking the fourth coordinate as an actual click position.
In some embodiments, the page segment to which the click position belongs includes an identifier of a preset page segment; and the method further comprises: and sending the actual click position, the identification of the page block to which the click position belongs and the website information of the target webpage to a server.
In a second aspect, an embodiment of the present application provides an apparatus for generating a thermodynamic diagram, the apparatus including: the display unit is used for displaying click information of a target webpage in an thermodynamic diagram mode, wherein the display request comprises a click occurrence time period of click operation related to the click information to be displayed; the selection unit is configured to select a webpage snapshot corresponding to the target webpage presented in the click generating time period from the webpage snapshot set of the target webpage to generate a webpage snapshot subset; the first acquisition unit is configured to respond to the selection operation of a user on the web page snapshot in the web page snapshot subset, and acquire click information of the selected web page snapshot in the click triggering generation time period; and the rendering unit is configured to render the selected web page snapshot based on the click information so as to form a thermodynamic diagram of the target web page.
In some embodiments, each web page snapshot in the set of web page snapshots comprises a plurality of page blocks generated by pre-performing a page blocking operation; and the first obtaining unit is further configured to: and acquiring click information of each page block in the selected webpage snapshot in the click generation time period.
In some embodiments, the rendering unit is further configured to: rendering the selected web page snapshot based on click information of each page block in the selected web page snapshot in a click generation time period.
In some embodiments, each page block in the selected web page snapshot includes attribute information, the attribute information including a rendering flag for identifying whether the page block is rendered; and the first acquisition unit includes: the first acquisition module is configured to acquire a rendering flag bit of each page block in the selected web page snapshot; and the second acquisition module is configured to acquire click information of the page blocks which are not subjected to rendering processing in the selected webpage snapshot in the click generation time period based on the rendering flag bit.
In some embodiments, the first obtaining unit includes: the generating module is configured to generate click information acquisition requests corresponding to the page blocks within the click generation time period; the sending module is configured to send each click information acquisition request to the server in parallel; and the receiving module is configured to receive click information corresponding to each page block returned by the server in parallel.
In some embodiments, the apparatus further comprises: the second obtaining unit is configured to respond to the fact that a user clicks a webpage corresponding to a webpage snapshot in the webpage snapshot set, obtain a first coordinate of a clicking position relative to a webpage area presented in the clicked webpage under a preset coordinate system, and obtain a second coordinate of a page block to which the clicking position belongs relative to the webpage area presented in the clicked webpage under the preset coordinate system; the first determining unit is configured to determine a third coordinate of the click position relative to the page block to which the click position belongs by using the first coordinate and the second coordinate; a second determining unit configured to determine an actual click position based on the third coordinate.
In some embodiments, the second determination unit comprises: the determining module is configured to determine whether the page block to which the click position belongs has a fixed length along one coordinate axis direction in a coordinate system to which a third coordinate belongs and a fixed width along the other coordinate axis direction in the coordinate system to which the third coordinate belongs based on the scale flag bit of the page block to which the click position belongs; and the processing module is configured to take the third coordinate as the actual click position if the page block to which the click position belongs has a fixed length and a fixed width.
In some embodiments, the second determining unit further comprises: the acquisition module is configured to respond that the page block to which the click position belongs does not have a fixed length and/or a fixed width, and acquire the length ratio of the presented page area to a preset standard page and/or the width ratio of the presented page area to the preset standard page; and the mapping module is configured to map the third coordinate to the standard page based on the length ratio and/or the width ratio to obtain a fourth coordinate, and the fourth coordinate is used as an actual click position.
In some embodiments, the page segment to which the click position belongs includes an identifier of a preset page segment; and the apparatus further comprises: and the sending unit is configured to send the actual click position, the identification of the page block to which the click position belongs and the website information of the target webpage to the server.
In a third aspect, an embodiment of the present application further provides a terminal, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the thermodynamic diagram generation method provided by the application.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the thermodynamic diagram generating method provided in the present application.
The thermodynamic diagram generation method and device provided by the application acquire a webpage snapshot set of a requested target webpage by responding to a display request containing a click occurrence time period for thermodynamic diagram display of click information of the target webpage by a user, and selecting the web page snapshots presented in the click generation time period from the web page snapshot set to generate a web page snapshot subset, when the selection operation of the user on the web page snapshots in the web page snapshot subset is detected, the selected web page snapshot is used as a thermodynamic diagram rendering background, click information of the selected web page snapshot clicked by the user in a click occurrence time period requested by the user is acquired, and rendering the selected web page snapshot by using the click information to form a thermodynamic diagram of the target web page, therefore, the problem that the webpage snapshot as the background is not matched with the click data expected to be displayed is solved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 is an exemplary system architecture diagram to which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a thermodynamic diagram generation method according to the present application;
FIG. 3 is a schematic diagram of an application scenario of a thermodynamic diagram generation method according to the present application;
FIG. 4 is a flow diagram of yet another embodiment of a thermodynamic diagram generation method according to the application;
FIG. 5 is a schematic structural diagram of one embodiment of a thermodynamic diagram generation apparatus according to the present application;
fig. 6 is a schematic structural diagram of a computer system suitable for implementing a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the thermodynamic diagram generation method or apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a web server 105. Network 104 is the medium used to provide communication links between terminal devices 101, 102, 103 and web server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user 110 may use the terminal devices 101, 102, 103 to interact with the web server 105 over the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a web browser application, an instant messaging tool, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, smart watches, laptop and desktop computers, and the like. The terminal apparatuses 101, 102, and 103 may perform processing such as analysis on the acquired data such as click information, and display a processing result (for example, thermodynamic diagram of a target web page). For example, the terminal devices 101, 102, 103 may first receive a presentation request for performing thermodynamic diagram presentation on click information of a target webpage by a user; then, a web page snapshot within the click occurrence time period set by the user may be selected from the web page snapshot set corresponding to the target web page in the web page server 105, so as to generate a web page snapshot subset; then, when detecting the selection operation of the user on the web page snapshot in the web page snapshot subset, acquiring the click information of the selected web page snapshot in the click occurrence time period; and finally, rendering the selected webpage snapshot based on the click information to generate a thermodynamic diagram of the target webpage.
The web server 105 may be a server providing various services, such as a background server providing support for click information of a user-selected web snapshot requested by the terminal device 101, 102, 103. The background server may store the web page snapshots of the target web page and perform the page blocking operation on each web page snapshot in advance, and the background server may provide each web page snapshot of the target web page to the terminal devices 101, 102, and 103, or may provide click information of the web page snapshot selected by the user to the terminal devices 101, 102, and 103.
It should be noted that the thermodynamic diagram generation method provided in the embodiments of the present application is generally executed by the terminal devices 101, 102, and 103, and accordingly, the thermodynamic diagram generation apparatus is generally disposed in the terminal devices 101, 102, and 103.
It should be understood that the number of terminal devices, networks, and web servers in fig. 1 are merely illustrative. There may be any number of terminal devices, networks, and web servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a thermodynamic diagram generation method in accordance with the present application is shown. The thermodynamic diagram generation method comprises the following steps:
step 201, receiving a display request for displaying the click information of the target webpage in an thermodynamic diagram manner.
In this embodiment, an electronic device (for example, the terminal device shown in fig. 1) on which the thermodynamic diagram generation method operates may receive a display request for displaying a thermodynamic diagram of click information of a target webpage by a user, where the thermodynamic diagram displays a page area at which a visitor is keen and an illustration of a geographic area where the visitor is located in a special highlight form, reflects an aggregation degree of point (line) elements by a highlight rendering color, and may render each area on the webpage with a preset color according to the number of clicks of the visitor on a certain area of the webpage. The click information may include a click position and a click number, and the click information of the target web page may be the click number of each position on the target web page clicked by the user. The display request may include a click occurrence time period of a click operation associated with click information to be displayed, which is input or selected by a user, and the click occurrence time period may also be referred to as a query time period. The target webpage is a webpage in which the user is interested in click information, and the user can indicate the target webpage by inputting a webpage name or website information.
Step 202, selecting a web page snapshot corresponding to the target web page presented in the click generation time period from the web page snapshot set of the target web page to generate a web page snapshot subset.
In this embodiment, the electronic device may first obtain a web page snapshot set of the target web page; then, the web page snapshots which are presented in the click occurrence time period and correspond to the target web page can be selected from the web page snapshot set, and a web page snapshot subset is generated. The electronic device may obtain the web page snapshot set from a web page server, or may obtain the web page snapshot set from a database of the electronic device itself. When a search engine receives and records a web page, the web page is backed up and stored in a cache of a search engine server (also called a web server), and when a user clicks a web page snapshot link in the search engine, the search engine displays the web page content captured and stored by the web crawler system, which is called a web page snapshot. The user may obtain at least one web page snapshot of the target web page presented within the click occurrence time period by using a web page Identifier (ID) of the target web page and the click occurrence time period.
As an example, if the time period of the click occurrence is 9 am to 10 am, the web page snapshot 1 in the web page snapshot set of the target web page is presented in the time period from 9 pm to 9 pm and 20 minutes, the web page snapshot 2 is presented in the time period from 9 pm to 9 pm and 40 minutes, and the web page snapshot 3 is presented in the time period from 9 pm to 40 minutes and 10 minutes, the web page snapshot 1, the web page snapshot 2, and the web page snapshot 3 may be divided into the web page snapshot subsets.
In this embodiment, the web server may store a web snapshot set of each web page. When the page content of the target webpage is modified, the webpage server can store the modified target webpage through the web crawler to generate a webpage snapshot, so that the webpage snapshot can retain the webpage content of the target webpage after each modification.
In this embodiment, after generating the web page snapshot subset, the electronic device may present summary information of each web page snapshot in the web page snapshot subset, where the summary information may be names of the web page snapshots, for example, web page snapshot 1, web page snapshot N, and the like; the summary information may also be a thumbnail of the web page snapshot.
Step 203, responding to the selection operation of the user on the web page snapshot in the web page snapshot subset, and acquiring click information of the selected web page snapshot in the click live time period.
In this embodiment, the electronic device may detect whether the user performs a selection operation on the web page snapshot in the subset of web page snapshots generated in step 202, for example, whether the user performs a click operation on summary information (e.g., a name, a thumbnail, etc.) of a certain web page snapshot in the subset of web page snapshots; if the selection operation of the user on the web page snapshot in the web page snapshot subset is detected, click information (e.g., the number of clicks that each position is clicked by the user) of the web page snapshot selected by the user in the click occurrence time period may be obtained.
In this embodiment, the web server may include, but is not limited to, a front-end module, a log storage system, a real-time data computing system, and a real-time data storage system.
In this embodiment, the web server may receive Click Stream Data (Click Stream Data) uploaded by each terminal device through a front-end processor module, where the Click Stream Data may also be referred to as a Click Stream log, and the front-end processor module may send the Click Stream Data to a log storage system in real time. As an example, the front-end processor module may be a Nginx front-end processor module, where Nginx is a high-performance HTTP (HyperText Transfer Protocol) and reverse proxy server, and may be used as a Web page (Web) front-end processor, and may reasonably distribute a user request to a post-application server according to a certain algorithm.
In this embodiment, the log storage system may receive and store the clickstream data sent by the front-end processor module. The log storage system may be a Kafka cluster system, Kafka being an open source message system project. The goal of this project is to provide a uniform, high throughput, low latency platform for processing real-time data. The Kafka cluster is mainly built based on a Kafka middleware framework, plays a role in intermediate data caching in an information pushing system, and can receive data in real time due to the characteristics of high capacity and high efficiency and can be safely stored in the cluster, so that the processing speed of the whole system can be improved.
In this embodiment, the real-time data computing system may consume the click stream data in the log storage system in real time, collect data, and output a statistical result every preset time period. By way of example, the real-time data computing system may be a Strom system, which is a distributed real-time computing system.
In this embodiment, the real-time data storage system may receive the data counted by the real-time data computing system, and store the counted data for real-time query. By way of example, the real-time data computing system may be an HBase system, which is a distributed, column-oriented database of open sources, and a HBase system, which is a distributed storage system of structured data. The electronic equipment can acquire the click information counted by the webpage server from a real-time data storage system of the webpage server in a mode of calling an interface.
By way of example, when the click-through occurs from 9 am to 10 am, the subset of web page snapshots includes web page snapshot 1, web page snapshot 2, and web page snapshot 3, where web page snapshot 1 is presented from 9 am to 9 am, web page snapshot 2 is presented from 9 am to 9 am, and web page snapshot 3 is presented from 9 am to 9 am, and 20 am. When the user selects the web page snapshot 3, the click information of the web page snapshot 3 from 9 am to 10 am may be obtained, because the web page snapshot 3 is only presented in the time period from 9 o 'clock 40 to 10 o' clock, and is not presented in the time period from 9 o 'clock to 9 o' clock 40, the electronic device may also obtain the click information of the web page snapshot 3 in the time period from 9 o 'clock 40 to 10 o' clock.
And step 204, rendering the selected webpage snapshot based on the click information to form a thermodynamic diagram of the target webpage.
In this embodiment, after obtaining the click information in step 203, the electronic device may render the selected webpage snapshot by using a thermodynamic diagram rendering technique according to the number of clicks of each click position, so as to form a thermodynamic diagram of the target webpage. In the field of computer graphics, rendering refers to the process of generating images from a model with software.
In this embodiment, the click information obtained by the electronic device from the Web server may be data in a compressed format, for example, data compressed by Gzip algorithm, where Gzip is one of HTTP (HyperText Transfer Protocol) compressed algorithms, and HTTP compression is a method for transmitting compressed text content between a Web server and a browser. The electronic device may obtain click information in a compressed format from the web server, decompress the click information in the compressed format, and render the web snapshot using the decompressed click information. In this embodiment, the method for obtaining compressed data from the server and then decompressing the data at the front end can reduce the network transmission amount, thereby improving the data transmission efficiency.
In some optional implementation manners of this embodiment, each web page snapshot in the web page snapshot set may include a plurality of page blocks, and the page blocks may be generated by the web page server performing a page blocking operation on the web page snapshot in advance. The web server may divide the web snapshots based on content in the web snapshots to generate the page blocks. If the selection operation of the user on the web page snapshot in the web page snapshot subset is detected, the electronic device may obtain click information of each page block in the web page snapshot selected by the user within the click occurrence time period, and the electronic device may obtain the click information of each page block from a data storage system of the web page server by calling an interface.
In some optional implementation manners of this embodiment, the electronic device may perform thermodynamic diagram rendering on the selected web page snapshot by using the number of clicks of each clicked location in each page partition, so as to form a thermodynamic diagram of the target web page.
In some optional implementation manners of this embodiment, the electronic device may first detect whether a user performs a page corresponding to a web snapshot in the web snapshot set or notThe method comprises the steps that clicking operation is carried out, if yes, a first coordinate of a clicking position of a user relative to a page area presented in a webpage clicked by the user under a preset coordinate system can be obtained, wherein the coordinate system can be established in advance by the electronic equipment, for example, the upper left corner of the presented page area can be used as an origin, the horizontal right direction can be used as the positive direction of a horizontal axis, and the vertical downward direction can be used as the positive direction of a vertical axis; then, a second position of the page segment to which the click position belongs relative to the presented page area may be obtained, where any point on the page segment may be used as a coordinate point of the page segment, for example, an upper left corner of the page segment may be used as a coordinate point of the page segment; then, a third coordinate of the clicked position with respect to the page segment to which the clicked position belongs may be determined based on the first coordinate and the second coordinate, specifically, an abscissa value of the third coordinate may be a difference between an abscissa value of the second coordinate and an abscissa value of the first coordinate, and an ordinate value of the third coordinate may be a difference between an ordinate value of the second coordinate and an ordinate value of the first coordinate; finally, the actual click position may be determined based on the third coordinates. As an example, the upper left corner of a page block is taken as the coordinate point of the page block, and when the first coordinate is (X)1,Y1) The second coordinate is (X)2,Y2) Then the third coordinate may be (X)2-X1,Y2-Y1)。
In some optional implementation manners of this embodiment, the electronic device may first obtain a scale flag of a page partition to which the click position belongs, where the scale flag may be used to indicate whether the size of the page partition is limited to a fixed value, and the scale flag may include a height scale flag and a width scale flag; then, it may be determined whether the page segment to which the click position belongs has a fixed length along one coordinate axis direction in the coordinate system to which the third coordinate belongs and has a fixed width along the other coordinate axis direction in the coordinate system to which the third coordinate belongs, based on the obtained scale flag, for example, when a value in a height (height) attribute in the obtained scale flag is defined as a certain pixel value, it may be determined that the page segment to which the click position belongs has a fixed length along one coordinate axis direction in the coordinate system to which the third coordinate belongs, and when a value in a width (width) attribute in the obtained scale flag is defined as a certain pixel value, it may be determined that the page segment to which the click position belongs has a fixed width along the other coordinate axis direction in the coordinate system to which the third coordinate belongs; if it is determined that the page block to which the click position belongs has the fixed length and the fixed width, the third coordinate may be used as an actual click position, and the actual click position is reported. In this implementation, if the length and/or the width of the page segment to which the click position belongs are/is limited to a fixed numerical value, the page segment is also the limited fixed numerical value on a preset standard page, and the third coordinate does not need to be converted.
In some optional implementations of this embodiment, if it is determined that the page partition to which the click position belongs does not have the fixed length and/or the fixed width, a length ratio between the presented page area and a preset standard page and/or a width ratio between the presented page area and a preset standard page may be obtained, where the preset standard page may be set to convert click coordinates of a user on terminal screens of different sizes to normalize the click coordinates onto a page of a certain size, the length ratio may be a ratio between the length of the presented page area on the electronic device and the length of the standard page, and the width ratio may be a ratio between the width of the presented page area on the electronic device and the width of the standard page; then, the electronic device may map the third coordinate to the standard page based on the length ratio and/or the width ratio to obtain a fourth coordinate, and report the fourth coordinate as the actual click position. Specifically, when the length is the length in the abscissa axis direction in the coordinate system, the width is the length in the ordinate axis direction in the coordinate systemIn the case of length, the abscissa value of the fourth coordinate may be the abscissa value of the third coordinate divided by the width ratio, and the ordinate value of the fourth coordinate may be the ordinate value of the third coordinate divided by the length ratio. As an example, when the length of the acquired page area presented on the electronic device is L1Width of page area W1The length of the obtained standard page is L2Width of standard page is W2The third coordinate is (X)3,Y3) In this case, the abscissa value of the fourth coordinate may be X3*W2/W1The abscissa value of the fourth coordinate may be Y3*L2/L1. In the implementation mode, the click information is reported by taking the page blocks as dimensions, so that the problem that the thermodynamic diagram display of other page blocks is influenced due to the fact that the click position of one page block in a page is misplaced can be solved.
In some optional implementation manners of this embodiment, the page segment to which the click position belongs includes a preset Identifier (ID) of the page segment, and the identifier may be a name, a number, and the like of the page segment. The electronic device may send the actual click position (the third coordinate or the fourth coordinate), the page block identifier of the page block to which the click position belongs, and the website information of the target webpage to the webpage server. The electronic device may further perform precision processing on the actual click position, for example, take all click positions in a square with a side length of 10 precision (px) as one point, and upload the click positions after the precision processing.
In the thermodynamic diagram generation method and apparatus provided in this embodiment, by responding to a display request containing a click occurrence time period for a user to perform thermodynamic diagram display on click information of a target web page, a web page snapshot set of the requested target web page is obtained, and selecting the web page snapshots presented in the click generation time period from the web page snapshot set to generate a web page snapshot subset, when the selection operation of the user on the web page snapshots in the web page snapshot subset is detected, the selected web page snapshot is used as a thermodynamic diagram rendering background, click information of the selected web page snapshot clicked by the user in a click occurrence time period requested by the user is acquired, and rendering the selected webpage snapshot by using the click information to form a thermodynamic diagram of the target webpage, thereby solving the problem that the webpage snapshot as a background has low correlation with click data.
With further reference to fig. 3, fig. 3 is a schematic diagram 300 of an application scenario of the thermodynamic diagram generation method according to the present embodiment. In the application scenario of fig. 3, the terminal device 301 first receives a display request 303 for performing thermodynamic diagram display on click information of a target webpage, where the display request 303 includes a click occurrence time period 304 of a click operation associated with the click information to be displayed. Then, the terminal device 301 obtains the web page snapshot 305 of the target web page from the server 302 to form a web page snapshot set, and then selects the web page snapshot presented in the click occurrence time period 304 from the web page snapshot set to generate a web page snapshot subset. Then, after the terminal device 301 receives a selection operation of a user on a web page snapshot in the web page snapshot subset, the terminal device 301 obtains click information 306 of the selected web page snapshot in the click occurrence time period 304 from the server 302. Finally, the terminal device 301 renders the selected web page snapshot based on the click information 306 to form a thermodynamic diagram of the target web page.
With further reference to fig. 4, a flow 400 of yet another embodiment of a thermodynamic diagram generation method is shown. The flow 400 of the thermodynamic diagram generation method includes the following steps:
step 401, receiving a display request for performing thermodynamic diagram display on click information of a target webpage.
Step 402, selecting a web page snapshot corresponding to the target web page presented in the click generation time period from the web page snapshot set of the target web page to generate a web page snapshot subset.
In the present embodiment, the operations of steps 401-402 are substantially the same as the operations of steps 201-202, and are not described herein again.
Step 403, in response to a selection operation of the user on the web page snapshot in the web page snapshot subset, obtaining a rendering flag bit of each page block in the selected web page snapshot.
In this embodiment, each webpage block in the webpage snapshot may include attribute information, and the attribute information may be used to describe an essential feature or characteristic of the webpage block. The attribute information of the webpage blocks may include rendering flag bits, and the rendering flag bits may be used to identify whether the webpage blocks are subjected to rendering processing. For example, when a page block is subjected to rendering processing, the rendering flag bit may be set to 1 or T; when the page partition is not subjected to rendering processing, the rendering flag bit may be set to 0 or F.
In this embodiment, the electronic device may detect whether a user performs a selection operation on the web page snapshot in the subset of web page snapshots generated in step 402, for example, whether the user performs a click operation on the summary information of each web page snapshot in the subset of web page snapshots; if the selection operation of the user on the web page snapshot in the web page snapshot subset is detected, the rendering flag bit of each page block in the web page snapshot selected by the user can be obtained.
In this embodiment, when the user performs a vertical sliding operation on a page of the selected web page snapshot, the electronic device may also obtain rendering identification bits of each page block in the currently presented page area.
Step 404, based on the rendering flag, generating a click information acquisition request corresponding to each page block in the selected web page snapshot that has not been subjected to rendering processing within the click generation time period.
In this embodiment, after obtaining the rendering flag bits of the page blocks in step 403, the electronic device may identify, based on the rendering flag bits, a page block that has not undergone rendering processing, for example, if the rendering flag bits are 0 or F, which represents that the page block has not undergone rendering processing, the electronic device may identify a page block whose rendering flag bits are 0 or F; and then generating a click information acquisition request corresponding to the identified page blocks in the click occurrence time period. The click information acquisition request may be configured to acquire click information of a page segment within a click occurrence time period, and the electronic device may request, from the web server, click information of a page segment that has not been subjected to rendering processing within the click occurrence time period through a multithreading technique. The electronic equipment can initiate click information acquisition requests to the webpage server through threads for requesting click information, one click information acquisition request can correspond to one thread for requesting click information, one click information acquisition request can acquire the click information of one webpage block, and each click information acquisition request can acquire the click information of different webpage blocks.
And step 405, sending each click information acquisition request to the server in parallel.
In this embodiment, the electronic device may send each click information acquisition request to the web server in parallel to acquire the click information of each page block.
And step 406, receiving click information corresponding to each page block which is not subjected to rendering processing and returned by the server in parallel.
In this embodiment, the electronic device may receive, in parallel, click information corresponding to each page partition that has not undergone rendering processing and is returned by the web server. The electronic device may determine whether the web server returns click information corresponding to all the page blocks that have not been subjected to rendering processing, and if not, continue to wait until click information corresponding to all the page blocks that have not been subjected to rendering processing is received.
Step 407, rendering the selected web page snapshot based on the click information corresponding to each page block which is not subjected to rendering processing, so as to form a thermodynamic diagram of the target web page.
In this embodiment, the electronic device may perform thermodynamic rendering on the selected webpage snapshot based on the click information corresponding to each page partition that is not subjected to the rendering processing and received in step 406, and by using the number of clicks that each click position in each page partition that is not subjected to the rendering processing is clicked, so as to form a thermodynamic diagram of the target webpage. In the field of computer graphics, rendering refers to the process of generating images from a model with software.
In this embodiment, after performing rendering processing on the page partition, the electronic device may set the rendering flag bit of the rendered page partition to represent the character that has undergone rendering processing, for example, if the rendering flag bit is 1 or T represents that the page partition has undergone rendering processing, the rendering flag bit of the page partition that has undergone rendering processing may be set to 1 or T.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the thermodynamic diagram generation method in this embodiment highlights a step of obtaining click information of a page block that is not subjected to thermodynamic diagram rendering in a currently presented webpage through a multithreading technology with the page block as a dimension. Therefore, the scheme described in the embodiment can improve the query speed of the database and reduce the size of the network transmission data packet.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of a thermodynamic diagram generation apparatus, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the thermodynamic diagram generating apparatus 500 of the present embodiment includes: the device comprises a receiving unit 501, a selecting unit 502, a first acquiring unit 503 and a rendering unit 504. The receiving unit 501 is configured to receive a display request for performing thermodynamic diagram display on click information of a target webpage, where the display request includes a click occurrence time period of a click operation associated with the click information to be displayed; the selecting unit 502 is configured to select a web page snapshot corresponding to a target web page presented in a click generating time period from a web page snapshot set of the target web page to generate a web page snapshot subset; the first obtaining unit 503 is configured to, in response to a selection operation of a user on a web page snapshot in the web page snapshot subset, obtain click information of a click occurrence time period of the selected web page snapshot; the rendering unit 504 is configured to render the selected web page snapshot based on the click information to form a thermodynamic diagram of the target web page.
In this embodiment, specific processing of the receiving unit 501, the selecting unit 502, the first obtaining unit 503, and the rendering unit 504 of the thermodynamic diagram generating apparatus 500 may refer to step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2.
In some optional implementation manners of this embodiment, each web page snapshot in the web page snapshot set may include a plurality of page blocks, and the page blocks may be generated by the web page server performing a page blocking operation on the web page snapshot in advance. The web server may divide the web snapshots based on content in the web snapshots to generate the page blocks. If the selection operation of the user on the web page snapshot in the web page snapshot subset is detected, the first obtaining unit 503 may obtain click information of each page block in the web page snapshot selected by the user within the click occurrence time period, and the first obtaining unit 503 may obtain the click information of each page block from a data storage system of the web page server by calling an interface.
In some optional implementation manners of this embodiment, the rendering unit 504 may perform thermodynamic diagram rendering on the selected web page snapshot by using the number of clicks of each clicked position in each page partition, so as to form a thermodynamic diagram of the target web page.
In some optional implementations of the present embodiment, each web page block in the web page snapshot may include attribute information, and the attribute information may be used to describe an essential feature or characteristic of the web page block. The attribute information of the webpage blocks may include rendering flag bits, and the rendering flag bits may be used to identify whether the webpage blocks are subjected to rendering processing. The first obtaining unit 503 may include a first obtaining module (not shown) and a second obtaining module (not shown). The first obtaining module may obtain a rendering flag bit of each page partition in the webpage snapshot selected by the user, and then the second obtaining module may identify the page partition that is not subjected to rendering processing based on the rendering flag bit obtained by the first obtaining module, and then obtain click information of the identified page partition that is not subjected to rendering processing in the click occurrence time period.
In some optional implementations of this embodiment, the first obtaining unit 503 may include a generating module (not shown in the figure), a sending module (not shown in the figure), and a receiving module (not shown in the figure). The generation module may generate a click information acquisition request corresponding to the page partition within the click occurrence time period, where the click information acquisition request may be used to acquire click information of the page partition within the click occurrence time period; the sending module can send each click information obtaining request to the webpage server in parallel so as to obtain the click information of each page block; the receiving module may receive, in parallel, click information corresponding to each page partition that has not undergone rendering processing, the click information being returned by the web server.
In some optional implementations of the present embodiment, the thermodynamic diagram generating apparatus 500 may further include: a second acquisition unit (not shown in the figure), a first determination unit (not shown in the figure), and a second determination unit (not shown in the figure). The second obtaining unit may first detect whether a user clicks a page corresponding to a web snapshot in the web snapshot set, and if so, may obtain a first coordinate of a click position of the user in a preset coordinate system with respect to a page area presented in a web page clicked by the user, where the electronic device may establish a coordinate system in advance, and for example, may use an upper left corner of the presented page area as an origin, a horizontal right direction as a positive direction of a abscissa axis, and a vertical downward direction as a positive direction of an ordinate axis; then, the second obtaining unit may obtain a second position of the page segment to which the click position belongs relative to the presented page area, where any point on the page segment may be used as a coordinate point of the page segment, for example, an upper left corner of the page segment may be used as a coordinate point of the page segment; the first specification unit may specify a third coordinate of the clicked position with respect to the page segment to which the clicked position belongs, based on the first coordinate and the second coordinate, specifically, an abscissa value of the third coordinate may be a difference between an abscissa value of the second coordinate and an abscissa value of the first coordinate, and an ordinate value of the third coordinate may be a difference between an ordinate value of the second coordinate and an ordinate value of the first coordinate; finally, the second determining unit may determine an actual click position based on the third coordinate.
In some optional implementations of this embodiment, the second determining unit may further include a determining module (not shown in the figure) and a processing module (not shown in the figure). The determining module may first obtain a scale flag of a page partition to which the click position belongs, where the scale flag may be used to indicate whether the size of the page partition is limited to a fixed value, and the scale flag may include a height scale flag and a width scale flag; then, the determining module may determine, based on the obtained scale flag, whether the page block to which the click position belongs has a fixed length along one coordinate axis direction in a coordinate system to which a third coordinate belongs, and whether the page block has a fixed width along another coordinate axis direction in the coordinate system to which the third coordinate belongs; if it is determined that the page block to which the click position belongs has the fixed length and the fixed width, the processing module may use the third coordinate as an actual click position and report the actual click position. In this implementation, if the length and/or the width of the page partition to which the click position belongs are/is limited to a fixed numerical value, the page partition is also limited to the fixed numerical value on the preset standard page, and the third coordinate does not need to be converted.
In some optional implementation manners of this embodiment, the second determining unit may further include an obtaining module (not shown in the figure) and a mapping module (not shown in the figure). If it is determined that the page block to which the click position belongs does not have the fixed length and/or the fixed width, the obtaining module may obtain a length ratio between the presented page area and a preset standard page and/or a width ratio between the presented page area and a preset standard page, where the preset standard page may be set to convert click coordinates of a user on terminal screens of different sizes to normalize the click coordinates to a page of a certain size, the length ratio may be a ratio between a length of the presented page area on the electronic device and a length of the standard page, and the width ratio may be a ratio between a width of the presented page area on the electronic device and a width of the standard page; then, the mapping module may map the third coordinate to the standard page based on the length ratio and/or the width ratio to obtain a fourth coordinate, and report the fourth coordinate as the actual click position. Specifically, when the length is a length in an abscissa axis direction of a coordinate system and the width is a length in an ordinate axis direction of the coordinate system, an abscissa value of the fourth coordinate may be an abscissa value of the third coordinate divided by the width ratio, and an ordinate value of the fourth coordinate may be an ordinate value of the third coordinate divided by the length ratio. In the implementation mode, the click information is reported by taking the page blocks as dimensions, so that the problem that the thermodynamic diagram display of other page blocks is influenced due to the fact that the click position of one page block in a page is misplaced can be solved.
In some optional implementation manners of this embodiment, the page segment to which the click position belongs includes a preset identifier of the page segment, and the identifier may be a name, a number, and the like of the page segment. The thermodynamic diagram generating apparatus 500 may further include a sending unit (not shown), and the sending unit may send the actual click position, the identifier of the page block to which the click position belongs, and the address information of the target web page to the web server.
Referring now to FIG. 6, a block diagram of a computer system 600 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Liquid Crystal Display (LCD) and a speaker; a storage section 608 including a hard disk and the like; and a communication section 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. The driver 610 is also connected to the 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 necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the method of the present application when executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable medium mentioned above in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a selecting unit, a first obtaining unit, and a rendering unit. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves. For example, the receiving unit may also be described as a "unit that receives a presentation request for thermodynamic presentation of click information of a target web page".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: receiving a display request for displaying the click information of the target webpage in an thermodynamic diagram manner, wherein the display request comprises click occurrence time periods of click operations related to the click information to be displayed; selecting a webpage snapshot corresponding to the target webpage presented in the click generating time period from the webpage snapshot set of the target webpage to generate a webpage snapshot subset; responding to the selection operation of the user on the webpage snapshots in the webpage snapshot subset, and acquiring click information of the selected webpage snapshots in a click live time period; rendering the selected web page snapshot based on the click information to form a thermodynamic diagram of the target web page.
The foregoing description is only exemplary of the preferred embodiments of the invention and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention according to the present invention is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the scope of the invention as defined by the appended claims. For example, the above features and (but not limited to) features having similar functions disclosed in the present invention are mutually replaced to form the technical solution.

Claims (18)

1. A method of generating a thermodynamic diagram, the method comprising:
receiving a display request for displaying the click information of the target webpage in an thermodynamic diagram manner, wherein the display request comprises click occurrence time periods of click operations related to the click information to be displayed;
selecting a web page snapshot corresponding to the target web page presented in the click occurrence time period from a web page snapshot set of the target web page to generate a web page snapshot subset, wherein each web page snapshot in the web page snapshot set comprises a plurality of web page blocks generated by performing a pre-blocking operation;
responding to the selection operation of the user on the web page snapshot in the web page snapshot subset, and acquiring the click information of the selected web page snapshot in the click occurrence time period;
rendering the selected web page snapshot based on the click information to form a thermodynamic diagram of the target web page;
in response to detecting that a user clicks a webpage corresponding to a webpage snapshot in the webpage snapshot set, acquiring a first coordinate of a click position relative to a page area presented in the clicked webpage under a preset coordinate system, and acquiring a second coordinate of a page block to which the click position belongs relative to the page area presented in the clicked webpage under the preset coordinate system; determining a third coordinate of the click position relative to the page block to which the click position belongs by using the first coordinate and the second coordinate; determining an actual click location based on the third coordinates.
2. The method of claim 1,
the obtaining of the click information of the selected web page snapshot in the click occurrence time period includes:
and acquiring click information of each page block in the selected webpage snapshot in the click occurrence time period.
3. The method of claim 2, wherein the rendering the selected web page snapshot based on the click information comprises:
rendering the selected web page snapshot based on click information of each page block in the selected web page snapshot in the click occurrence time period.
4. The method of claim 2, wherein each page block in the selected web page snapshot includes attribute information, the attribute information including a rendering flag for identifying whether a page block is rendered; and
the obtaining of the click information of the selected web page snapshot in the click occurrence time period includes:
obtaining a rendering flag bit of each page block in the selected webpage snapshot;
and acquiring click information of the page blocks which are not subjected to rendering processing in the selected webpage snapshot in the click occurrence time period based on the rendering flag bit.
5. The method according to any one of claims 2-4, wherein the obtaining click information of the selected web page snapshot in the click occurrence time period comprises:
generating click information acquisition requests corresponding to the page blocks in the click occurrence time period;
sending each click information acquisition request to a server in parallel;
and receiving click information corresponding to each page block returned by the server in parallel.
6. The method of claim 1, wherein determining an actual click location based on the third coordinate comprises:
determining whether the page block to which the click position belongs has a fixed length along one coordinate axis direction in a coordinate system to which the third coordinate belongs and a fixed width along the other coordinate axis direction in the coordinate system to which the third coordinate belongs based on the scale flag bit of the page block to which the click position belongs;
and if the page block to which the click position belongs has the fixed length and the fixed width, taking the third coordinate as the actual click position.
7. The method of claim 6, wherein determining an actual click location based on the third coordinate further comprises:
responding to the fact that the page block to which the click position belongs does not have the fixed length and/or the fixed width, and acquiring the length ratio of the presented page area to a preset standard page and/or the width ratio of the presented page area to the preset standard page;
and mapping the third coordinate to the standard page based on the length ratio and/or the width ratio to obtain a fourth coordinate, and taking the fourth coordinate as the actual click position.
8. The method according to claim 6 or 7, wherein the page segment to which the click position belongs comprises an identifier of a preset page segment; and
the method further comprises the following steps:
and sending the actual click position, the identification of the page block to which the click position belongs and the website information of the target webpage to a server.
9. An apparatus for generating a thermodynamic diagram, the apparatus comprising:
the display method comprises the steps that a receiving unit is configured to receive a display request for performing thermodynamic diagram display on click information of a target webpage, wherein the display request comprises click occurrence time periods of click operations associated with the click information to be displayed;
a selecting unit configured to select, from a web page snapshot set of the target web page, a web page snapshot corresponding to the target web page presented in the click occurrence time period to generate a web page snapshot subset, where each web page snapshot in the web page snapshot set includes a plurality of web page blocks generated by performing a page blocking operation in advance;
the first acquisition unit is configured to respond to the selection operation of a user on the web page snapshot in the web page snapshot subset, and acquire click information of the selected web page snapshot in the click occurrence time period;
a rendering unit configured to render the selected web page snapshot based on the click information to form a thermodynamic diagram of the target web page;
the second obtaining unit is configured to, in response to detection of a click operation of a user on a webpage corresponding to a webpage snapshot in the webpage snapshot set, obtain a first coordinate of a click position in a preset coordinate system relative to a page area presented in the clicked webpage, and obtain a second coordinate of a page block to which the click position belongs in the preset coordinate system relative to the page area presented in the clicked webpage;
the first determining unit is configured to determine a third coordinate of the click position relative to the page block to which the click position belongs by using the first coordinate and the second coordinate;
a second determining unit configured to determine an actual click position based on the third coordinate.
10. The apparatus of claim 9, wherein the first obtaining unit is further configured to:
and acquiring click information of each page block in the selected webpage snapshot in the click occurrence time period.
11. The apparatus of claim 10, wherein the rendering unit is further configured to:
rendering the selected web page snapshot based on click information of each page block in the selected web page snapshot in the click occurrence time period.
12. The apparatus of claim 10, wherein each page block in the selected web page snapshot includes attribute information, the attribute information including a rendering flag for identifying whether a page block is subject to rendering processing; and
the first acquisition unit includes:
the first acquisition module is configured to acquire a rendering flag bit of each page block in the selected web page snapshot;
and the second obtaining module is configured to obtain click information of the page blocks which are not subjected to rendering processing in the selected web page snapshot in the click occurrence time period based on the rendering flag bit.
13. The apparatus according to one of claims 10 to 12, wherein the first obtaining unit comprises:
the generating module is configured to generate click information acquisition requests corresponding to the page blocks within the click occurrence time period;
the sending module is configured to send each click information acquisition request to a server in parallel;
and the receiving module is configured to receive click information corresponding to each page block returned by the server in parallel.
14. The apparatus according to claim 9, wherein the second determining unit comprises:
the determining module is configured to determine whether the page block to which the click position belongs has a fixed length along one coordinate axis direction in a coordinate system to which the third coordinate belongs and a fixed width along the other coordinate axis direction in the coordinate system to which the third coordinate belongs based on the scale flag bit of the page block to which the click position belongs;
and the processing module is configured to take the third coordinate as an actual click position if the page block to which the click position belongs has the fixed length and the fixed width.
15. The apparatus of claim 14, wherein the second determining unit further comprises:
the obtaining module is configured to obtain a length ratio of the presented page area to a preset standard page and/or a width ratio of the presented page area to the preset standard page in response to that the page block to which the click position belongs does not have the fixed length and/or the fixed width;
and the mapping module is configured to map the third coordinate to the standard page based on the length ratio and/or the width ratio to obtain a fourth coordinate, and the fourth coordinate is used as the actual click position.
16. The apparatus according to claim 14 or 15, wherein the page segment to which the click position belongs includes an identifier of a preset page segment; and
the device further comprises:
and the sending unit is configured to send the actual click position, the identification of the page block to which the click position belongs and the website information of the target webpage to a server.
17. A terminal, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
18. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN201710291349.9A 2017-04-28 2017-04-28 Thermodynamic diagram generation method and device Active CN108804445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710291349.9A CN108804445B (en) 2017-04-28 2017-04-28 Thermodynamic diagram generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710291349.9A CN108804445B (en) 2017-04-28 2017-04-28 Thermodynamic diagram generation method and device

Publications (2)

Publication Number Publication Date
CN108804445A CN108804445A (en) 2018-11-13
CN108804445B true CN108804445B (en) 2022-06-07

Family

ID=64069979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710291349.9A Active CN108804445B (en) 2017-04-28 2017-04-28 Thermodynamic diagram generation method and device

Country Status (1)

Country Link
CN (1) CN108804445B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506854B (en) * 2020-07-02 2021-02-23 浙江百应科技有限公司 Thermodynamic diagram analysis method and system for intelligently segmenting and acquiring user behaviors based on pictures
CN113194351B (en) * 2021-02-24 2023-06-27 北京字跳网络技术有限公司 Video display method and device, electronic equipment and storage medium
CN114385270A (en) * 2022-01-19 2022-04-22 平安付科技服务有限公司 Automatic webpage animation generation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914638A (en) * 2004-01-30 2007-02-14 野村国际股份有限公司 Financial data analysis data
CN102880695A (en) * 2012-09-19 2013-01-16 北京国双科技有限公司 Method and device for determining click location in website
CN103618773A (en) * 2013-11-19 2014-03-05 北京国双科技有限公司 Display method, device and system for thermodynamic diagrams
CN104820634A (en) * 2014-12-25 2015-08-05 平安科技(深圳)有限公司 Method and device for detecting page test track
CN106157155A (en) * 2016-07-27 2016-11-23 北京大学 Social media information based on map metaphor propagates visual analysis method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2867589A1 (en) * 2013-10-15 2015-04-15 Coho Data Inc. Systems, methods and devices for implementing data management in a distributed data storage system
CN104572783B (en) * 2013-10-29 2020-05-12 深圳市腾讯计算机系统有限公司 Webpage clicking condition display method and device
US9323462B2 (en) * 2014-04-08 2016-04-26 International Business Machines Corporation File system snapshot data management in a multi-tier storage environment
CN104376114B (en) * 2014-12-01 2018-01-30 百度在线网络技术(北京)有限公司 A kind of search result methods of exhibiting and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1914638A (en) * 2004-01-30 2007-02-14 野村国际股份有限公司 Financial data analysis data
CN102880695A (en) * 2012-09-19 2013-01-16 北京国双科技有限公司 Method and device for determining click location in website
CN103618773A (en) * 2013-11-19 2014-03-05 北京国双科技有限公司 Display method, device and system for thermodynamic diagrams
CN104820634A (en) * 2014-12-25 2015-08-05 平安科技(深圳)有限公司 Method and device for detecting page test track
CN106157155A (en) * 2016-07-27 2016-11-23 北京大学 Social media information based on map metaphor propagates visual analysis method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
热力图(Heatmap)实现;mwolf122;《https://www.jianshu.com/p/3ced545224f1》;20170210;1 *

Also Published As

Publication number Publication date
CN108804445A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN110147398B (en) Data processing method, device, medium and electronic equipment
US10410085B2 (en) Monitoring web site content
US9479519B1 (en) Web content fingerprint analysis to detect web page issues
CN107480277B (en) Method and device for collecting website logs
JP2011018314A (en) Method, system and computer program for sharing web page
US9740668B1 (en) Plotting webpage loading speeds and altering webpages and a service based on latency and pixel density
CN109992406B (en) Picture request method, picture request response method and client
US10467790B2 (en) On-demand image spriting
CN108804445B (en) Thermodynamic diagram generation method and device
CN108810047B (en) Method and device for determining information push accuracy rate and server
US20190114989A1 (en) Systems and methods for image optimization
CN110866040A (en) User portrait generation method, device and system
CN107315753B (en) Paging method and device across multiple databases
US9465781B2 (en) Analysis of web application state
WO2019033852A1 (en) Thermodynamic diagram generating method, device and system
CN109117448B (en) Thermodynamic diagram generation method and device
US9396259B1 (en) Capture of web application state
CN111783005B (en) Method, device and system for displaying web page, computer system and medium
US9098863B2 (en) Compressed analytics data for multiple recurring time periods
CN113362090A (en) User behavior data processing method and device
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment
CN112035205A (en) Data processing method, device, equipment and storage medium
US20160127496A1 (en) Method and system of content caching and transmission
CN110888583A (en) Page display method, system and device and electronic equipment
CN110874433A (en) Information processing method and system, computer system and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant