CN112269954B - Page use time length determining method and device - Google Patents
Page use time length determining method and device Download PDFInfo
- Publication number
- CN112269954B CN112269954B CN202011171404.9A CN202011171404A CN112269954B CN 112269954 B CN112269954 B CN 112269954B CN 202011171404 A CN202011171404 A CN 202011171404A CN 112269954 B CN112269954 B CN 112269954B
- Authority
- CN
- China
- Prior art keywords
- url
- page
- current
- determining
- last
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000004044 response Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 7
- 230000015654 memory Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9558—Details of hyperlinks; Management of linked annotations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a method and a device for determining the service life of a page, and relates to the technical field of web pages. The specific embodiment comprises the following steps: responding to the page indicated by the current url, and judging whether the loading progress of the page reaches a progress threshold value or not; responding to the loading progress reaching a progress threshold value, and determining a page view corresponding to the current url; responding to a url set corresponding to the local page view, determining a url corresponding to a page which is opened last before the page indicated by the current url in the url set is opened this time, and determining the url as a previous url; based on the last page operation record of the prior url, a duration of use of the page indicated by the current url is determined. The application can accurately determine the using time of the page by utilizing the last page operation record of the last opened page. And under the condition that the loading progress reaches the progress threshold, the step of determining the using time length is executed, so that the problem that the step of determining the using time length is meaningless due to the fact that the current url is not loaded successfully can be avoided.
Description
Technical Field
The application relates to the technical field of computers, in particular to the technical field of webpages, and particularly relates to a method and a device for determining the time length of a page in use.
Background
With the development of internet technology, various internet platforms are gradually rising. Many platforms will present their content to users via web pages. Typically, each web page has a corresponding url (Uniform Resource Locator ).
At present, in the use process of the page view (webview), how long each webpage opened in the page view is used cannot be well known.
Disclosure of Invention
A page use time length determining method, device, electronic equipment and storage medium are provided.
According to a first aspect, there is provided a page usage time length determining method, including: responding to the page indicated by the current url, and judging whether the loading progress of the page reaches a progress threshold value or not; responding to the loading progress reaching a progress threshold value, and determining a page view corresponding to the current url; responding to a url set corresponding to a local page view, if the current url exists in the url set, determining the url corresponding to the last opened page before the current url indicated page is opened in the url set, and determining the url as the previous url; based on the last page operation record of the prior url, the use duration of the page indicated by the current url is determined.
According to a second aspect, there is provided a page use time length determining apparatus comprising: the judging unit is configured to respond to the page indicated by the current url and judge whether the loading progress of the page reaches a progress threshold value or not; the first determining unit is configured to determine a page view corresponding to the current url in response to the loading progress reaching a progress threshold; the second determining unit is configured to respond to a url set corresponding to the local page view, if the current url exists in the url set, determine the url corresponding to the page which is opened last before the page indicated by the current url in the url set is opened this time, and determine the url as the previous url; and a third determining unit configured to determine a use period of the page indicated by the current url based on the last page operation record of the preceding url.
According to a third aspect, there is provided an electronic device comprising: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of any of the embodiments of the method for determining a length of time for use of a page, for example.
According to a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as any of the embodiments of the page usage time length determination method.
According to the scheme of the application, the last page operation record of the last opened page can be utilized to accurately determine the using time of the page. And under the condition that the loading progress reaches the progress threshold, the step of determining the using time length is executed, so that the problem that the step of determining the using time length is meaningless due to the fact that the current url is not loaded successfully can be avoided.
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 accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which some embodiments of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a page usage time length determination method in accordance with the present application;
FIG. 3 is a schematic diagram of an application scenario of a page usage time length determination method according to the present application;
FIG. 4 is a flow chart of yet another embodiment of a page usage time length determination method in accordance with the present application;
FIG. 5 is a schematic diagram of a structure of one embodiment of a page in-use time length determining apparatus according to the present application;
Fig. 6 is a block diagram of an electronic device for implementing a page usage time length determination method of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 shows an exemplary system architecture 100 of an embodiment of a page usage time length determination method or page usage time length determination device to which the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as video-type applications, live applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smartphones, tablets, electronic book readers, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze the received data, such as the last page operation record of the previous url, and feedback the processing result (for example, the use duration of the page indicated by the current url) to the terminal device.
It should be noted that, the method for determining the time length of use of a page provided by the embodiment of the present application may be executed by the server 105 or the terminal devices 101, 102, 103, and accordingly, the device for determining the time length of use of a page may be provided in the server 105 or the terminal devices 101, 102, 103.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a page usage time length determination method in accordance with the present application is shown. The page service time length determining method comprises the following steps:
in step 201, in response to opening the page indicated by the current url, it is determined whether the loading progress of the page reaches a progress threshold.
In this embodiment, an execution body (for example, a terminal device shown in fig. 1) on which the page usage time length determining method operates may determine, in response to opening a page indicated by a current url, whether a loading progress of the page reaches a preset progress threshold. That is, if the execution subject is opening the page, it may be determined whether the loading progress reaches the progress threshold, and if the determination result is reached, the subsequent steps are executed. In the case of a miss, the execution subject may not do any processing.
And step 202, determining a page view corresponding to the current url in response to the loading progress reaching a progress threshold.
In this embodiment, the executing body may determine a page view corresponding to the current url when the loading progress reaches the progress threshold. A page view may correspond to a plurality of pages, i.e. to a plurality of urls, which may all be opened in the page view. At the same time, there may be only one (or more) open pages in a page view. There is only one (or more) corresponding page view per url.
Step 203, in response to the url set corresponding to the local page view, if the current url exists in the url set, determining the url corresponding to the last opened page before the current url indicated page is opened in the url set, and determining the url as the previous url.
In this embodiment, the executing body may respond to a url set corresponding to the local page view, and if a current url exists in the url set, may determine one url in the url set. The url is the url corresponding to the last opened page before the page indicated by the current url is opened this time. The execution body may determine the url as a previous url.
In practice, in determining whether a local exists, it may be determined whether there is a url set corresponding to the page view in the map data structure that exists locally.
The url collection corresponding to the page view refers to the url collection corresponding to the page opened in the page view.
For example, there are 4 urls in the url collection, url1, url2, url3, url4, respectively. The opening time of the page corresponding to the url is 11 points url1, url2 is 11 points 05 points, url3 is 11 points 20 points, and url4 is 11 points 23 points. Wherein the preceding url is url3.
Step 204, determining the duration of use of the page indicated by the current url based on the last page operation record of the previous url.
In this embodiment, the executing body may determine the usage duration of the page indicated by the current url based on the last page operation record of the previous url. The last page operation record refers to the record of the last operation on the page. The operations herein may include only an open page operation, a close page operation, or any of all operations that trigger a page response.
In practice, the execution body may determine the usage time of the page indicated by the current url based on the last page operation record of the previous url in various manners. For example, the executing body may acquire an actual closing time of the previous page, and use a duration of the current time from the actual closing time as a use duration of the page indicated by the current url. In addition, the executing body may further obtain an operation time indicated by a last page operation record of the page indicated by the previous url, and use a duration of the current distance from the operation time as a use duration of the page indicated by the current url.
The method provided by the embodiment of the application can accurately determine the using time of the page by utilizing the last page operation record of the last opened page. And under the condition that the loading progress reaches the progress threshold, the step of determining the using time length is executed, so that the problem that the step of determining the using time length is meaningless due to the fact that the current url is not loaded successfully can be avoided.
In some optional implementations of the present embodiment, before the current url exists in the url set in step 203, the method may further include: and judging whether the current url exists in the url set.
In these alternative implementations, the execution body may determine whether the current url exists in the url set, so as to avoid meaningless operation procedures caused by the absence of the current url in the url set.
In some optional application scenarios of these implementations, url presence operation timing in a url collection; the method may further include: if the current url does not exist in the url set, stopping the operation timing of the url corresponding to the last opened page in the url set; adding the current url into the url set, and starting the operation timing of the current url.
In these application scenarios, the executing body may add the current url to the set under the condition that the current url does not exist in the url set, and accurately determine the use duration of each page through operation timing. And, can only operate the timing to the url that opens at present, avoid the invalid operation timing.
Optionally, the executing body may add a target duration to a duration obtained by timing the operation of the current url to obtain a use duration of the page indicated by the current url, where the target duration is a time difference between an operation time indicated by the operation record of the first page of the current url and an operation time indicated by the operation record of the last page of the previous url. Therefore, the execution main body can accurately determine the using time of the page by utilizing the last page operation record of the previous page and the accurate timing time of the current page.
In some optional implementations of this embodiment, the progress thresholds corresponding to url of different domain names are different; before determining the page view corresponding to the current url in response to the loading progress reaching the progress threshold in step 202, the method may further include: and determining a progress threshold corresponding to the domain name of the current url.
In these alternative implementations, there is a corresponding progress threshold for each domain name, and the url-corresponding progress thresholds for different domain names may be different. Different domain names may have different web page display conditions, where the web page display conditions may be web page display speed, average smoothness of the web site where the web page is located, and so on. For example, if the website corresponding to the domain name does not have network congestion, the corresponding web page is displayed at a higher speed, and the progress threshold may be smaller (less than the target progress threshold).
The execution main body can determine the progress threshold corresponding to the domain name of the current url, so as to accurately judge whether the time for determining the page use duration is reached according to the actual conditions of different websites.
In some optional implementations of the present embodiments, before responding to the local existence of the url set corresponding to the page view, the method may further include: judging whether a record corresponding to the page view exists locally or not; if yes, judging whether a url set corresponding to the page view exists locally.
In these alternative implementations, the execution body may determine whether a record corresponding to the page view exists locally. If the judging result is that the url exists, judging whether the url set corresponding to the page view exists locally. The execution body can avoid meaningless process of determining whether the url set corresponding to the page view exists locally by determining whether the record of the page view exists.
In some optional application scenarios of these implementations, the method may further include: if no record exists, a new url set is created, the current url is added into the new url set, and the operation timing of the current url is started.
In these optional application scenarios, the execution body may create a new url set for the current url, so as to implement calculation of the usage duration of the current url.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the page usage time length determination method according to the present embodiment.
With further reference to fig. 4, a flow 400 of yet another embodiment of a page usage time length determination method is shown. The process 400 includes the steps of:
Step 401, in response to opening the page indicated by the current url, determining whether the loading progress of the page reaches a progress threshold.
In this embodiment, an execution body (for example, a terminal device shown in fig. 1) on which the page usage time length determining method operates may determine, in response to opening a page indicated by a current url, whether a loading progress of the page reaches a preset progress threshold. That is, if the execution subject is opening the page, it may be determined whether the loading progress has reached the progress threshold, and if so, the subsequent steps are executed. In the case of a failure, no processing may be done.
And step 402, determining a page view corresponding to the current url in response to the loading progress reaching a progress threshold.
In this embodiment, the executing body may determine a page view corresponding to the current url when the loading progress reaches the progress threshold. A page view may correspond to a plurality of pages, i.e. to a plurality of urls, which may all be opened in the page view. At the same time, there may be only one (or more) open pages in a page view. One url may have only one corresponding page view.
In response to the current url being not the last url in the url list, step 403, the current url present in the url list is moved to the last digit of the url list.
In this embodiment, the url set is a url list, and the urls in the url list are arranged in such a way that the last url is the url corresponding to the last opened page. The execution body may always keep the url corresponding to the last page opened in the url list. If the current url already exists in the list, it can be moved to the last bit of the list.
Step 404, determining the url currently arranged in the penultimate url in the url list as the previous url.
In this embodiment, the execution body may determine, as the preceding url, a url currently arranged in the penultimate url list.
For example, if the list includes 10 urls, and the currently open url is just the 8 th url in the list, the execution body may move the 8 th url to the last position in the list, thereby becoming the 10 th url. The 10 th url in the previous list, the 9 th url in the moved list, is the previous url.
Step 405, determining a duration of use of the page indicated by the current url based on the last page operation record of the previous url.
In this embodiment, the executing body may determine the usage duration of the page indicated by the current url based on the last page operation record of the previous url. The last page operation record refers to the record of the last operation on the page.
The embodiment can quickly and accurately determine the prior url through a list form, thereby being beneficial to improving the speed and accuracy of determining the using time of the current url.
In some optional implementations of this embodiment, determining the usage duration of the page indicated by the current url based on the last page operation record of the preceding url includes: determining the difference between the operation time indicated by the operation record of the last page of the current url and the operation time indicated by the operation record of the last page of the previous url; the difference is taken as the duration of use of the page of the current url.
In these alternative implementations, the execution entity may determine a difference between the last page operation record of the current url and the last page operation record of the previous url, where the difference is indicated as the duration of use of the current url.
These implementations can minimize the deviation between the determined length of use and the actual length of use by the last page operation record.
In some optional implementations of the present embodiments, before if there is a current url in the url set, the method may further include: and judging whether the current url exists in the url set.
With further reference to fig. 5, as an implementation of the method shown in the foregoing figures, the present application provides an embodiment of a device for determining a time length of use of a page, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the embodiment of the device may further include the same or corresponding features or effects as the embodiment of the method shown in fig. 2, except for the features described below. The device can be applied to various electronic equipment.
As shown in fig. 5, the page usage time length determining apparatus 500 of the present embodiment includes: a judging unit 501, a first determining unit 502, a second determining unit 503, and a third determining unit 504. Wherein, the judging unit 501 is configured to respond to the opening of the page indicated by the current url and judge whether the loading progress of the page reaches a progress threshold; a first determining unit 502 configured to determine a page view corresponding to the current url in response to the loading progress reaching a progress threshold; a second determining unit 503 configured to determine, in response to a url set corresponding to the local existence page view, if there is a current url in the url set, a url corresponding to a page that is last opened before the current opening of the page indicated by the current url in the url set, and determine the url as a previous url; a third determining unit 504 is configured to determine a usage period of the page indicated by the current url based on the last page operation record of the previous url.
In this embodiment, the specific processes and the technical effects of the judging unit 501, the first determining unit 502, the second determining unit 503, and the third determining unit 504 of the page usage time length determining apparatus 500 may refer to the relevant descriptions of the steps 201, 202, 203, and 204 in the corresponding embodiment of fig. 2, and are not repeated here.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
As shown in fig. 6, there is a block diagram of an electronic device of a page usage time length determination method according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 6, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 601 is illustrated in fig. 6.
The memory 602 is a non-transitory computer readable storage medium provided by the present application. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the page usage time length determination method provided by the present application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to execute the page usage time length determination method provided by the present application.
The memory 602 is used as a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and program instructions/modules (e.g., the determining unit 501, the first determining unit 502, the second determining unit 503, and the third determining unit 504 shown in fig. 5) corresponding to a page usage time length determining method in an embodiment of the present application. The processor 601 executes various functional applications of the server and data processing, i.e., implements the page usage time length determination method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by determining the use of the electronic device according to the page use time length, and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 602 may optionally include memory remotely located with respect to processor 601, which may be connected to the page-in-use time-length determining electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the page use time length determining method may further include: an input device 603 and an output device 604. The processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, for example in fig. 6.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the page usage time determining electronic device, such as a touch screen, keypad, mouse, trackpad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, and like input devices. The output means 604 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
The flowcharts 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 application. 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 involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes a judging unit, a first determining unit, a second determining unit, and a third determining unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the judging unit may also be described as "a unit that judges whether the loading progress of the page reaches the progress threshold in response to opening the page indicated by the current url".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: responding to the page indicated by the current url, and judging whether the loading progress of the page reaches a progress threshold value or not; responding to the loading progress reaching a progress threshold value, and determining a page view corresponding to the current url; responding to a url set corresponding to the page view, if the current url exists in the url set, determining a url corresponding to a page which is finally opened before the page indicated by the current url in the url set is opened this time, and determining the url as a previous url; and determining the using time length of the page indicated by the current url based on the last page operation record of the prior url.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.
Claims (9)
1. A method of determining a length of time for use of a page, the method comprising:
responding to the page indicated by the current url, and judging whether the loading progress of the page reaches a progress threshold value or not;
responding to the loading progress reaching a progress threshold value, and determining a page view corresponding to the current url;
responding to a url set corresponding to the page view, if the current url exists in the url set, determining a url corresponding to a page which is finally opened before the page indicated by the current url in the url set is opened this time, and determining the url as a previous url;
determining the difference between the operation time indicated by the operation record of the last page of the current url and the operation time indicated by the operation record of the last page of the previous url;
Taking the difference as the using time length of the page of the current url; or alternatively
Responding to url existence operation timing in the url set, and determining a duration obtained by timing the operation of the current url as a target duration;
And determining the sum of the difference and the target duration as the using duration of the page indicated by the current url.
2. The method of claim 1, wherein the url collection is a url list, and the url list is arranged in which a last url is a url corresponding to a last opened page;
The responding to the local existence of the url set corresponding to the page view, if the current url exists in the url set, determining the url corresponding to the last opened page before the current url indicated page is opened in the url set, and determining the url as the prior url, including:
Responsive to the current url being not the last url in the url list, moving the current url present in the url list to the last digit of the url list;
And determining the url currently arranged in the last-last position in the url list as the prior url.
3. The method of one of claims 1-2, wherein prior to the presence of the current url in the url collection, the method further comprises:
and judging whether the current url exists in the url set.
4. A method according to claim 3, wherein url presence operations in the url collection are timed; the method further comprises the steps of:
If the current url does not exist in the url set, stopping the operation timing of the url corresponding to the last opened page in the url set;
and adding the current url into the url set, and starting the operation timing of the current url.
5. The method of claim 1, wherein the progress thresholds for url correspondence for different domain names are different;
Before the determining, in response to the loading progress reaching a progress threshold, a page view corresponding to the current url, the method further includes:
And determining a progress threshold corresponding to the domain name of the current url.
6. The method of claim 1 or 4, wherein prior to said responding to the local presence of the corresponding url set of the page view, the method further comprises:
Judging whether a record corresponding to the page view exists locally or not;
if the record is judged to exist, judging whether a url set corresponding to the page view exists locally or not.
7. The method of claim 6, wherein the method further comprises:
if the record does not exist, a new url set is created, the current url is added into the new url set, and the operation timing of the current url is started.
8. An electronic device, comprising:
one or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
9. A computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011171404.9A CN112269954B (en) | 2020-10-28 | 2020-10-28 | Page use time length determining method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011171404.9A CN112269954B (en) | 2020-10-28 | 2020-10-28 | Page use time length determining method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112269954A CN112269954A (en) | 2021-01-26 |
CN112269954B true CN112269954B (en) | 2024-05-03 |
Family
ID=74345145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011171404.9A Active CN112269954B (en) | 2020-10-28 | 2020-10-28 | Page use time length determining method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112269954B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102761456A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Method, device and system for acquiring performance parameters of browser of mobile terminal |
CN103281217A (en) * | 2013-05-23 | 2013-09-04 | 中国科学院计算机网络信息中心 | User page stay time measuring method |
CN103810183A (en) * | 2012-11-07 | 2014-05-21 | 江苏仕德伟网络科技股份有限公司 | Method for obtaining real visitor staying duration |
CN104333588A (en) * | 2014-10-31 | 2015-02-04 | 北京奇虎科技有限公司 | Page timing method and device |
WO2017166806A1 (en) * | 2016-03-29 | 2017-10-05 | 上海斐讯数据通信技术有限公司 | Browser-based method for jumping to access authentication page, and user terminal |
WO2017185741A1 (en) * | 2016-04-26 | 2017-11-02 | 上海斐讯数据通信技术有限公司 | Method and device for optimizing synchronisation of network tariff index on access authentication page |
CN111258736A (en) * | 2020-01-17 | 2020-06-09 | 北京无限光场科技有限公司 | Information processing method and device and electronic equipment |
CN111523072A (en) * | 2020-04-20 | 2020-08-11 | 咪咕文化科技有限公司 | Page access data statistical method and device, electronic equipment and storage medium |
-
2020
- 2020-10-28 CN CN202011171404.9A patent/CN112269954B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102761456A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Method, device and system for acquiring performance parameters of browser of mobile terminal |
CN103810183A (en) * | 2012-11-07 | 2014-05-21 | 江苏仕德伟网络科技股份有限公司 | Method for obtaining real visitor staying duration |
CN103281217A (en) * | 2013-05-23 | 2013-09-04 | 中国科学院计算机网络信息中心 | User page stay time measuring method |
CN104333588A (en) * | 2014-10-31 | 2015-02-04 | 北京奇虎科技有限公司 | Page timing method and device |
WO2017166806A1 (en) * | 2016-03-29 | 2017-10-05 | 上海斐讯数据通信技术有限公司 | Browser-based method for jumping to access authentication page, and user terminal |
WO2017185741A1 (en) * | 2016-04-26 | 2017-11-02 | 上海斐讯数据通信技术有限公司 | Method and device for optimizing synchronisation of network tariff index on access authentication page |
CN111258736A (en) * | 2020-01-17 | 2020-06-09 | 北京无限光场科技有限公司 | Information processing method and device and electronic equipment |
CN111523072A (en) * | 2020-04-20 | 2020-08-11 | 咪咕文化科技有限公司 | Page access data statistical method and device, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
基于偏爱度的多步Markov网页预测模型;刘超慧;荆立夏;牛晓太;;计算机时代(第07期);1-3+6 * |
基于决策树的企业信息系统故障自动诊断分析方法;金鑫;闫龙川;刘军;张书林;;电信科学;第33卷(第03期);163-167 * |
Also Published As
Publication number | Publication date |
---|---|
CN112269954A (en) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10812564B1 (en) | Preloading content for requesting applications | |
CN112527748B (en) | Method, device, equipment and storage medium for analyzing user operation behavior | |
CN111158799A (en) | Page rendering method and device, electronic equipment and storage medium | |
CN111582477B (en) | Training method and device for neural network model | |
KR20100035692A (en) | Method and apparatus that enables a web-based client-server application to be used offline | |
EP2975541A1 (en) | Systems and methods for tracking sharing of web content | |
CN111770161B (en) | https sniffing jump method and device | |
US10169131B2 (en) | Determining a trace of a system dump | |
US20210133270A1 (en) | Referencing multiple uniform resource locators with cognitive hyperlinks | |
CN111783998B (en) | Training method and device for illegal account identification model and electronic equipment | |
CN113765873A (en) | Method and apparatus for detecting abnormal access traffic | |
US9892193B2 (en) | Using content found in online discussion sources to detect problems and corresponding solutions | |
US20170220631A1 (en) | Capturing Intended Selection of Content Due to Dynamically Shifting Content | |
CN112269706A (en) | Interface parameter checking method and device, electronic equipment and computer readable medium | |
US20150205767A1 (en) | Link appearance formatting based on target content | |
CN112269954B (en) | Page use time length determining method and device | |
CN112069137A (en) | Method and device for generating information, electronic equipment and computer readable storage medium | |
CN111290912A (en) | Single-page application performance monitoring method and device and electronic equipment | |
CN113839944B (en) | Method, device, electronic equipment and medium for coping with network attack | |
CN111611476B (en) | Thematic page display method and device | |
CN112598136B (en) | Data calibration method and device | |
CN112770415B (en) | Information processing method and device for wireless hotspots | |
CN112752323B (en) | Method and device for changing hot spot access state | |
CN112182561B (en) | Rear door detection method and device, electronic equipment and medium | |
CN112822302B (en) | Data normalization method and device, electronic equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |