Nothing Special   »   [go: up one dir, main page]

CN111651315A - Page data acquisition method - Google Patents

Page data acquisition method Download PDF

Info

Publication number
CN111651315A
CN111651315A CN202010295467.9A CN202010295467A CN111651315A CN 111651315 A CN111651315 A CN 111651315A CN 202010295467 A CN202010295467 A CN 202010295467A CN 111651315 A CN111651315 A CN 111651315A
Authority
CN
China
Prior art keywords
node
page
data
exposure
nodes
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.)
Pending
Application number
CN202010295467.9A
Other languages
Chinese (zh)
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 Pierbulaini Software Co ltd
Original Assignee
Beijing Pierbulaini Software 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 Pierbulaini Software Co ltd filed Critical Beijing Pierbulaini Software Co ltd
Priority to CN202010295467.9A priority Critical patent/CN111651315A/en
Publication of CN111651315A publication Critical patent/CN111651315A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data acquisition method of a page, which is suitable for being executed in computing equipment, wherein the computing equipment is connected with a server, and an application suitable for displaying the page resides in the computing equipment, and the method comprises the following steps: acquiring a page from a server, wherein the page comprises a root node and one or more nodes connected to the root node; searching a node to be monitored to acquire data in one or more nodes; adding the searched nodes to a node list and establishing a monitoring event for each node in the node list; and executing the monitoring event and sending the collected data to the server. The invention also discloses a computing device and a computer readable storage medium.

Description

Page data acquisition method
Technical Field
The invention relates to the field of data processing, in particular to a data acquisition method for a page.
Background
When developing a web page, it is necessary to know the browsing situation of a user when browsing the page, including the degree of interest in a certain part of the page, the length of stay, and whether the content in the page is sufficiently read. One commonly used technique is to collect behavior information of a user when browsing a page through a buried point so as to track the use condition of the user. The exposure buried points in the buried points commonly used in the prior art meet the above requirements.
The method comprises the steps of carrying out scrolling and size changing on a page, monitoring the operation of a user after the user opens the page for the first time, calculating whether nodes in all pages are in view ports of the page after the user operates, counting the nodes in the view ports of the page, and reporting related data of the nodes. And the other method is based on a timer, a timing task is executed after the page loading is finished, the positions of all nodes are detected once every certain time, the nodes in the view ports are screened out, and data are reported.
Problems in the prior art include: when a user carries out intensive rolling operation, exposing and embedding a page to cause the display page of a browser to be stuck, counting nodes in the page by adopting a timer, if the node is not operated for a long time and is counted for many times, performance waste can be caused, and when a container for displaying content appears in the page, the node is required to be manually added to the container to complete monitoring of the node in the container, so that a new data acquisition method for the page is required.
Disclosure of Invention
To this end, the present invention provides a data acquisition method for pages in an attempt to solve or at least alleviate the above-identified problems.
According to one aspect of the present invention, there is provided a data acquisition method for a page, adapted to be executed in a computing device connected to a server, wherein an application adapted to display the page resides in the computing device, the method comprising the steps of: acquiring a page from a server, wherein the page comprises a root node and one or more nodes connected to the root node; searching a node to be monitored to acquire data in one or more nodes; adding the searched nodes to a node list and establishing a monitoring event for each node in the node list; and executing the monitoring event and sending the collected data to the server.
Optionally, in the data collecting method for a page according to the present invention, searching for a node to be monitored for collecting data among one or more nodes includes: and determining the node as the node to be monitored to acquire data according to the attribute value of the node as a preset value.
Optionally, in the data collecting method for a page according to the present invention, adding the searched node to the node list includes: setting a root node of the node to monitor the creation of the node; setting a display threshold of the node in the viewport of the application.
Optionally, in the data collecting method for a page according to the present invention, the monitoring an event and sending the collected data to a server includes: judging whether the time of the node displayed in the viewport is greater than a display threshold value; and if the judgment result is larger than the display threshold, the node is an exposure node, and the node is added to an exposure node list.
Optionally, in the data collecting method for a page according to the present invention, the method further includes the steps of: when the page displayed in the viewport receives a change in the page scrolling operation, a newly generated exposed node in the viewport is determined and added to the list of exposed nodes.
Optionally, in the data collecting method for a page according to the present invention, the method further includes the steps of: and determining an exposure node which is not displayed in the viewport, and removing a monitoring event of the exposure node.
Optionally, in a data collecting method for a page according to the present invention, the page includes one or more containers embedded in the page and adapted to display content, and the method further includes: when a container in the page receives an operation to scroll the contents of the container, generating a new exposure node, the exposure node is added to the list of exposure nodes.
Optionally, in the data collecting method for a page according to the present invention, the method further includes the steps of: and sending the exposure node list to a server, and sending the data of the exposure nodes in the exposure node list to the server.
Optionally, in the data collecting method for a page according to the present invention, the method further includes the steps of: when the page is closed, storing the data of the exposure node which is not sent; removing the listening events of the nodes and deleting the nodes.
Optionally, in the data collecting method for a page according to the present invention, the method further includes the steps of: when the application starts to display the page, judging whether the data of the exposure nodes which are not sent are stored or not; and if the data of the exposure nodes which are not sent are stored, sending the data to a server.
Optionally, in the data collecting method for a page according to the present invention, the step of sending data to a server by monitoring an event includes: and judging whether the operation of the user on the page is received or not and returning a judgment result, if so, stopping sending the data.
Optionally, in the data collecting method for a page according to the present invention, the method further includes the steps of: judging whether the page completes the response according to the operation of the user on the page or not and returning a judgment result; if yes, continuing to send data.
Optionally, in a data collecting method for a page according to the present invention, the data includes a root node of the node, a display time of the node in the viewport, and a page element corresponding to the node.
According to another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the methods of data collection for a page according to the present invention.
According to yet another aspect of the present invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the data collection methods for a page according to the present invention.
In the invention, a page is obtained from a server, and the page comprises a root node and one or more nodes connected to the root node; searching a node to be monitored to acquire data in one or more nodes, adding the searched node to a node list, creating a monitoring event for each node in the node list, executing the monitoring event and transmitting the acquired data to a server. And further, after the nodes needing to be monitored are determined, the nodes needing to be monitored are automatically registered to the exposure node list needing to be monitored, and the nodes in the sight and the container can be monitored without manually registering the nodes. And further, when the data of the embedded points are exposed and returned, the gap of user operation is selected, whether the current browser is idle or not is judged, namely the current browser does not receive and respond to the user operation, and asynchronous data acquisition is realized, so that the user experience and the response speed of the browser are improved.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 illustrates a block diagram of a computing device 100, according to an exemplary embodiment of the invention;
FIG. 2 illustrates a flow diagram of a method 200 for data collection of a page in accordance with one embodiment of the present invention; and
FIG. 3 shows a schematic diagram 300 of a page in accordance with one embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The data acquisition method of the page is suitable for being executed in computing equipment, the computing equipment is connected with a server, and an application suitable for displaying the page is resident in the computing equipment. Both the computing device and the server may be implemented as one computing device.
FIG. 1 shows a block diagram of a computing device 100, according to an example embodiment of the present invention. A data presentation method according to the present invention may be performed in the computing device 100. In a basic configuration 102, computing device 100 typically includes system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: the processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. the example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof.
Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more programs, and program data 124. In some implementations, the program can be configured to execute instructions on the operating system by the one or more processors 104 using the program data 124. In the present invention, when the computing device 100 is acting as a computing device, the programs resident in the computing device may be implemented as one of the applications 122 suitable for displaying pages.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
The computing device 100 may be implemented as a server, such as a file server, a database server, an application server, a web server, etc., or as part of a small-sized portable (or mobile) electronic device, such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-browsing device, an application-specific device, or a hybrid device that include any of the above functions. Computing device 100 may also be implemented as a personal computer including both desktop and notebook computer configurations. In some embodiments, the computing device 100 is configured to perform a method of data collection for a page.
FIG. 2 shows a flow diagram of a method 200 for data collection of a page according to one embodiment of the invention. As shown in fig. 2, a data collection method for a page starts in step S210, and a page is obtained from a server, where the page includes a root node and one or more nodes connected to the root node. After receiving a request of a user for accessing a page, starting an application suitable for displaying the page in the mobile terminal, wherein the application for displaying the page can be realized as a browser. And after the browser is started, acquiring a network page to be accessed by the user from the server, and loading and presenting the network page.
To facilitate the description of the present invention and to assist in understanding the solution, an exemplary description of a web page presented by a browser is provided. The pages described in this disclosure are exemplary only, and are not limited to the specific type or structure of the page. FIG. 3 shows a schematic diagram 300 of a page in accordance with one embodiment of the present invention. In fig. 3, a rectangle ABCD is a page presented by the browser, and an edge of the rectangle ABCD is a boundary of the page. The shape and size of the viewport in fig. 3 are exemplary, and the size of the viewport can be enlarged and reduced according to the operation of a user, and the visible area of the page in the browser is changed at the same time. In the illustrated state, the top edge, left and right boundaries of the viewport coincide with the boundaries of the page, and the page's content in the rectangle ABFE is visible and can be displayed, while the rectangle EFCD portion in the bottom half is invisible. The viewport can be selectively provided with a key capable of controlling the page to slide up, down, left and right, so as to control the viewport to slide along the direction instructed by the user, so as to display the page content outside the viewport in the viewport, and the method for controlling the viewport to slide is not limited by the invention. The rectangular container MNPO is arranged in the visible part of the webpage and is used for being embedded in the webpage to display the content MNYX in the container, the solid line part rectangular MNPO in the content of the container is the visible part, and a drag bar for controlling the content of the container to slide up and down is selectively arranged in the visible part to control the content in the other part, namely the rectangular OPYX, in the container to be displayed.
Returning to fig. 2, in the data collecting method for a page, a page file obtained from a server includes a root node and one or more child nodes connected to the root node. The node is a point for collecting data in the page, and the node can realize the functions by setting the node. The positions and the number of the nodes shown in fig. three, such as the point a in the viewport, the point b in the container of the viewport, the point c in the container of the viewport, and the point d in the page, are only exemplary, and the invention does not limit the number of the nodes and the position of each node. When a node is created, the node is declared to be a node for collecting data. According to the scheme of the invention, the Vue framework can be used for defining the nodes, and Vue is a set of progressive JavaScript framework for constructing the user interface. Setting a custom instruction v-stat of a node, and setting the parameter of the v-stat as show, wherein the node is a node for collecting data. An example of a node declaration according to the invention is as follows:
Figure BDA0002452025150000071
Figure BDA0002452025150000081
the node setting also includes data to be uploaded when data acquisition is needed, and the stated nodes { action: 'ZTZB-M _ show _1', extended: { id: item.id } } are data uploaded after data acquisition.
The nodes can be set by developers as required, after receiving the page sent by the server, step S220 is executed to search for a node to be monitored to acquire data in one or more nodes, and whether the node is to be monitored to acquire data is determined according to whether the attribute value of the node is a predetermined value. For example, in the above node example, if the parameter of the attribute v-stat of the node is judged to be show, the node is judged to be a node to be monitored to collect data.
Subsequently, step S230 is executed to add the found node to the node list and create a listening event for each node in the node list. And setting the root node of each node so as to monitor the generation of new nodes and the deletion of nodes in the root node when the root node is monitored. Each node is connected to a certain root node, one node is connected to only one root node, and one root node can be connected with a plurality of nodes. And setting a display threshold value of the node in a view port of the browser, and determining whether the node is an exposed node by determining whether the time for which the node is displayed in the view port is greater than the display threshold value. When monitoring the root node, triggering a predefined hook function when monitoring that a new node appears in the root node, adding the node into a set node list and creating a monitoring event for the node. According to the embodiment of the invention, the hook function can be a self-defined bin function, and completes the setting of the listening events of the nodes, so as to collect the states of the nodes and the returned data, and the code of the function for setting the listening events of the nodes is as follows:
expousure.attach(element);
taking the node shown in fig. 3 as an example, in this step, if the a node and the d node belong to the same root node and the b node and the c node belong to the same root node, the exposure threshold of the node is set to 5 seconds. When monitoring the generation of a new node when monitoring the root node, triggering a bin function, adding four nodes of a, b, c and d in the graph into a node list, and adding a node monitoring event to each node.
Subsequently, step S240 is executed to execute the listening event and send the collected data to the server. In this step, a snoop event is performed to snoop the state of the node. Judging whether the time of the node displayed in the viewport is greater than a display threshold value; and if the judgment result is larger than the display threshold, the node is an exposure node, and the node is added to an exposure node list. Taking fig. 3 as an example, the monitoring event of the node monitors that the displayed node a and node b in the current view port are displayed in the view port, and when the time for displaying is judged to be greater than 5s, it is judged that the node a and node b are exposed nodes, and the node a and node b are added to the exposed node list. And after the addition is finished, the exposure node list is sent to a server, and the data of the exposure nodes in the exposure node list is sent to the server. The sent data comprises a root node of the node, the display time of the node in the viewport and a page element corresponding to the node. Taking fig. 3 as an example, the exposure node list including the node a and the node b and the exposure node data of the node a and the node b are sent to the server.
According to an embodiment of the present invention, when the browser receives a user operation on the page, that is, when the page displayed in the viewport receives a change in the page scrolling operation, a newly generated exposure node in the viewport is determined and added to the exposure node list. That is, under the operation of the user, the node that was not originally in the view port of the browser becomes displayed in the view port after the operation of the user. And when the monitoring event of the node judges that the event displayed in the viewport by the node is larger than the exposure threshold, the node is judged to be a new exposure node, and the new exposure node is added into the exposure node list. Taking fig. 3 as an example, after the user performs a scrolling operation, the node d becomes located in the viewport, and if the display time of the event-monitored judgment node d is longer than 5 seconds, it is judged that the node d is a new exposure node, and the node d is added to the exposure node list.
According to an embodiment of the invention, when the browser receives the operation of the user on the page, namely the page displayed in the viewport receives the operation change on page scrolling, the exposed node which is not displayed in the viewport is determined, and the monitoring event of the exposed node is removed. That is, under the operation of the user, the node originally in the view port of the browser becomes not displayed in the view port after the operation of the user. The monitoring event of the exposure node which is not in the view port is removed, so that the memory resource of the computer is saved, and the response speed of the browser is improved. When the monitoring event of the node is removed, the predefined hook function is also triggered to remove the monitoring event of the node. The hook function may be a custom bin function, and completes the removal of the snoop event of the node, and the code of the function for removing the snoop event of the node is as follows:
expousure.detach(element);
taking fig. 3 as an example, after the user performs the scrolling operation, the node a originally in the viewport becomes out of the viewport, i.e., the hook function is triggered, and the listening event of the node a is removed.
According to one embodiment of the invention, when the monitoring event sends data to the server, whether the operation of the user on the page is received or not is judged, and a judgment result is returned, if yes, the data sending is stopped. And if the browser receives the operation of the user on the page, stopping sending the data to the server so as to avoid the influence on the operation of the user and the corresponding delay of the browser, and sending the data to be sent in batches. Taking fig. 3 as an example, when receiving a page scrolling operation performed by a user while sending data of node a and node b to a server, the data sending is stopped, the data of node a and node b is sent in batches, the sending is stopped after the data of node a is sent, and then the data of node b is sent again.
According to one embodiment of the invention, when the monitoring event sends data to the server, whether the page completes the response according to the operation of the user on the page is judged and a judgment result is returned; and if so, continuing to send the data. In the process of sending the data of the node, the browser receives the operation of the user on the page, judges whether the page completes the response to the user operation after the data is sent, and continues to send the data if the response is completed. Taking fig. 3 as an example, if the data of the node a is sent, the sending is stopped, and the page is judged to finish the response operation to the user and then continue sending the data of the node b.
According to one embodiment of the invention, the page includes one or more containers embedded in the page and adapted to display content, and the method further includes: when a container in a page receives an operation of scrolling the contents of the container to generate a new exposure node, the exposure node is added to the list of exposure nodes. When the browser receives an operation of a user on a container, and detects that the content of the container which is not displayed in the current viewport is displayed in the viewport, whether a node displayed in the container in the viewport is an exposure node is judged, if the display time of the node is greater than an exposure threshold, the node is the exposure node, and the node is added to an exposure node list. Taking fig. 3 as an example, if the node c is displayed in the viewport after the user operates the container, and the monitoring event determines that the display time of the node c is longer than 5 seconds, it is determined that the node c is a new display node, and the node c is added to the exposure node list.
According to one embodiment of the invention, when the page is closed, the data of the exposure node which is not sent is stored, the monitoring event of the node is removed, and the node is deleted. When the browser receives the leaving operation of a user, namely closing the browser or closing a page, the data of the node which is not sent to the server in time is stored locally, and the monitoring event of the node is removed and the node is deleted. The deleting node deletes the node in the page in the root node, and the monitoring event of the removing node is the same as the removing operation, which is not described herein again. Taking fig. 3 as an example, after the user finishes browsing the web page, there is only node d in the current viewport, and if node d is an exposed node but has not finished sending data of node d to the server, the data of node d is stored locally, the monitored event of node d is removed, and all nodes in the page are removed.
According to one embodiment of the invention, when an application starts to display a page, whether the data of exposure nodes which are not sent are stored is judged; and if the data of the exposure nodes which are not sent are stored, sending the data to the server. When the user opens the browser again and the browser loads the page, judging whether the data of the node which is not sent to the server in time exists or not when the page is closed last time, and if the data of the node exists, continuously sending the data of the node to the server. Taking fig. 3 as an example, when the user opens the browser and loads the page, and detects that there is data of the node d that has not been sent since the page was closed last time, the data of the node d is sent to the server.
In the invention, a page is obtained from a server, and the page comprises a root node and one or more nodes connected to the root node; searching a node to be monitored to acquire data in one or more nodes, adding the searched node to a node list, creating a monitoring event for each node in the node list, executing the monitoring event and transmitting the acquired data to a server. And further, after the nodes needing to be monitored are determined, the nodes needing to be monitored are automatically registered to the exposure node list needing to be monitored, and the nodes obtained in the window and the container can be monitored without manually registering the nodes. When the data of the embedded points are exposed and returned, the gap of user operation is selected, whether the current browser is idle or not is judged, namely the operation of the user is not received, and asynchronous data acquisition is realized, so that the user experience and the response speed of the browser are improved.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
A9, a method for data collection of a page as in any one of A1-A8, further comprising the steps of:
when the page is closed, storing the data of the exposure nodes which are not sent;
removing the listening events of the nodes and deleting the nodes.
A10, a method for data collection of a page as in any one of A1-A9, further comprising the steps of:
when the application starts to display the page, judging whether the data of the exposure node which is not sent is stored or not;
and if the data of the exposure nodes which are not sent are stored, sending the data to the server.
A11, a method for data collection of a page as in any one of A1-A10, wherein said listening event sending said data to said server comprises the steps of:
judging whether the operation of the user on the page is received or not and returning a judgment result,
and if so, stopping sending the data.
A12, a method for displaying data on a page as in A11, said method further comprising the steps of:
judging whether the page completes response according to the operation of the user on the page or not and returning a judgment result;
and if so, continuing to send the data.
A13, the data collection method of a page as in any one of A1-A12, wherein said data includes the root node of said node, the display time of said node in said viewport and the page element corresponding to said node.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the method for determining the apparatus shutdown state of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (10)

1. A data collection method for a page, adapted to be executed in a computing device connected to a server, wherein an application adapted to display the page resides in the computing device, the method comprising the steps of:
obtaining a page from the server, the page comprising a root node and one or more nodes connected to the root node;
searching for a node to be monitored to acquire data in the one or more nodes;
adding the searched node to a node list and establishing a monitoring event for each node in the node list;
and executing the monitoring event and sending the collected data to the server.
2. The data collecting method for the page according to claim 1, wherein said searching for the node to listen to collect data in said one or more nodes comprises:
and determining the node as a node to be monitored to acquire data according to the attribute value of the node as a preset value.
3. The method for collecting data on a page as claimed in claim 1, wherein the step of adding the found node to the node list comprises the steps of:
setting a root node of the nodes to monitor the creation of the nodes;
setting a display threshold of the node in a viewport of the application.
4. A method for data collection of a page as claimed in any one of claims 1 to 3, wherein said executing said listening event and sending collected data to said server comprises the steps of:
judging whether the time of the node displayed in the viewport is larger than a display threshold value;
and if the judgment result is larger than the display threshold, the node is an exposure node, and the node is added to an exposure node list.
5. The method for data collection of a page of claim 4, further comprising the steps of:
when the page displayed in the viewport receives the change of the page scrolling operation, determining a newly generated exposure node in the viewport and adding the exposure node to the exposure node list.
6. The data acquisition method for pages of claim 4 or 5, further comprising the steps of:
and determining an exposure node which is not displayed in the viewport, and removing the monitoring event of the exposure node.
7. A method of data collection for a page as claimed in claim 5 or 6, wherein the page includes one or more containers embedded in the page suitable for displaying content, the method further comprising:
when a container in the page receives an operation of scrolling the contents of the container to generate a new exposure node, adding the exposure node to the list of exposure nodes.
8. A method of data collection for a page as claimed in any one of claims 1 to 7, further comprising the steps of:
and sending the exposure node list to the server, and sending the data of the exposure nodes in the exposure node list to the server.
9. A computing device, comprising:
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods of claims 1-8.
10. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the methods of claims 1-8.
CN202010295467.9A 2020-04-15 2020-04-15 Page data acquisition method Pending CN111651315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010295467.9A CN111651315A (en) 2020-04-15 2020-04-15 Page data acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010295467.9A CN111651315A (en) 2020-04-15 2020-04-15 Page data acquisition method

Publications (1)

Publication Number Publication Date
CN111651315A true CN111651315A (en) 2020-09-11

Family

ID=72346110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010295467.9A Pending CN111651315A (en) 2020-04-15 2020-04-15 Page data acquisition method

Country Status (1)

Country Link
CN (1) CN111651315A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527880A (en) * 2020-12-16 2021-03-19 平安壹钱包电子商务有限公司 Method, device, equipment and medium for collecting metadata information of big data cluster
CN112685200A (en) * 2020-12-31 2021-04-20 百果园技术(新加坡)有限公司 List data processing method, device, medium and equipment
CN113791944A (en) * 2021-01-18 2021-12-14 北京京东拓先科技有限公司 Monitoring method and device of page timer, medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921199B1 (en) * 2003-09-15 2011-04-05 Oracle America, Inc. Method and system for event notification
CN107729385A (en) * 2017-09-19 2018-02-23 杭州安恒信息技术有限公司 A kind of method for gathering dynamic web page partial data content
CN108846116A (en) * 2018-06-26 2018-11-20 北京京东金融科技控股有限公司 Page Impression collecting method, system, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921199B1 (en) * 2003-09-15 2011-04-05 Oracle America, Inc. Method and system for event notification
CN107729385A (en) * 2017-09-19 2018-02-23 杭州安恒信息技术有限公司 A kind of method for gathering dynamic web page partial data content
CN108846116A (en) * 2018-06-26 2018-11-20 北京京东金融科技控股有限公司 Page Impression collecting method, system, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527880A (en) * 2020-12-16 2021-03-19 平安壹钱包电子商务有限公司 Method, device, equipment and medium for collecting metadata information of big data cluster
CN112527880B (en) * 2020-12-16 2023-08-08 平安壹钱包电子商务有限公司 Method, device, equipment and medium for collecting metadata information of big data cluster
CN112685200A (en) * 2020-12-31 2021-04-20 百果园技术(新加坡)有限公司 List data processing method, device, medium and equipment
CN112685200B (en) * 2020-12-31 2024-03-08 百果园技术(新加坡)有限公司 List data processing method, device, medium and equipment
CN113791944A (en) * 2021-01-18 2021-12-14 北京京东拓先科技有限公司 Monitoring method and device of page timer, medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN103092604B (en) A kind of application program sorting technique and device
CN111651315A (en) Page data acquisition method
US20170323025A1 (en) Browser acceleration method and browser device having accelerator
EP3734446B1 (en) Processing method, storage medium and electronic device
CN110187880B (en) Method and device for identifying similar elements and computing equipment
CN112100136B (en) Document loading method, computing device and readable storage medium
CN113377289B (en) Cache management method, system, computing device and readable storage medium
CN113539313A (en) Audio marking method, audio data playing method and computing equipment
CN114461404B (en) Process migration method, computing device and readable storage medium
WO2021253252A1 (en) Method and apparatus for testing webpage, and electronic device and storage medium
CN113535650B (en) File naming method and computing device
CN114115882A (en) Page display method and device and computing equipment
CN109522282A (en) Picture management method, device, computer installation and storage medium
CN110442380B (en) Data preheating method and computing equipment
CN107508705B (en) Resource tree construction method of HTTP element and computing equipment
CN113326214B (en) Page cache management method, computing device and readable storage medium
CN114422502B (en) Resource downloading method, computing device and storage medium
CN114265533A (en) Resource access method, computing device and storage medium
CN115202643A (en) Icon resource deleting method and device, electronic equipment and medium
CN111966262B (en) Picture display method and computing device
CN113254142B (en) System desktop area dividing method and computing device
CN113419998B (en) Folder processing method, computing device and readable storage medium
CN114417199A (en) Label aggregation method, computing device and readable storage medium
CN114461113B (en) Interaction method, processing device and computing equipment based on task bar
CN113742106B (en) Text pasting method, device, computing equipment and readable storage 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