CN109299416B - Webpage processing method and device, electronic equipment and storage medium - Google Patents

Webpage processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109299416B
CN109299416B CN201811219964.XA CN201811219964A CN109299416B CN 109299416 B CN109299416 B CN 109299416B CN 201811219964 A CN201811219964 A CN 201811219964A CN 109299416 B CN109299416 B CN 109299416B
Authority
CN
China
Prior art keywords
target
webpage
local page
page area
adjusted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811219964.XA
Other languages
Chinese (zh)
Other versions
CN109299416A (en
Inventor
易潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201811219964.XA priority Critical patent/CN109299416B/en
Publication of CN109299416A publication Critical patent/CN109299416A/en
Priority to PCT/CN2019/095566 priority patent/WO2020078054A1/en
Application granted granted Critical
Publication of CN109299416B publication Critical patent/CN109299416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure discloses a webpage processing method, a webpage processing device, electronic equipment and a storage medium. Wherein, the method comprises the following steps: the method comprises the steps of obtaining the staying time of at least two users for at least one local page area to be adjusted in a target webpage, wherein the target webpage comprises at least two local page areas; accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted; determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form corresponding rule; and according to the target display form, adjusting the display form of the local page area to be adjusted in the target webpage. The embodiment of the disclosure can process the target webpage according to the webpage operation data of different users, and provide the processed target webpage as the user attention distribution map to the users, so that the users can know the attention distribution conditions of all the users.

Description

Webpage processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to a web page operation data processing technology, and in particular, to a web page processing method and apparatus, an electronic device, and a storage medium.
Background
The commodity display page is a webpage opened for the user to see after the user clicks commodity related information published by the social media or searches the commodity related information by using a search engine. The general goods exhibition page displays the expansion content related to the goods.
The publisher of the goods presentation page may want to know the attention distribution data of the user to the published goods presentation page in time, so that the goods presentation page may be evaluated and modified according to the user feedback. The publisher of the goods presentation page may obtain feedback information of the user on the published web page according to the attention distribution map of the user, for example, may know a key focus area of the user on the goods presentation page. In the prior art, no effective measure is available for obtaining the attention distribution map of the user in real time according to the interaction data of each user and the webpage.
Disclosure of Invention
The disclosure provides a webpage processing method, a webpage processing device, electronic equipment and a storage medium, so as to obtain a user attention distribution map in real time according to interaction data of each user and a webpage.
In a first aspect, an embodiment of the present disclosure provides a method for processing a web page, including:
the method comprises the steps of obtaining the staying time of at least two users for at least one local page area to be adjusted in a target webpage, wherein the target webpage comprises at least two local page areas;
accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted;
determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form corresponding rule;
and according to the target display form, adjusting the display form of the local page area to be adjusted in the target webpage.
In the foregoing solution, optionally, determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form correspondence rule includes:
adjusting the total retention time corresponding to the local page area to be adjusted to a standard data range according to a preset data processing rule;
and then determining the target color corresponding to the local page area to be adjusted according to the preset color corresponding rule and the adjusted total retention time.
In the foregoing solution, optionally, the obtaining of the staying time of at least two users for at least one local page area to be adjusted in the target webpage includes:
acquiring sliding operation data generated in the process of browsing a target webpage by a user;
acquiring at least one target local page area associated with the sliding operation data in a target webpage;
and calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data.
In the foregoing scheme, optionally, the obtaining of the sliding operation data generated in the process of browsing the target webpage by the user includes:
in the process of determining that a user browses a target webpage, regularly acquiring a screen touch position of the user under a display screen of the target webpage according to a set interval duration;
and determining a webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage under the display screen.
In the foregoing scheme, optionally, before the step of obtaining the screen touch position of the user under the display screen of the target webpage at regular time according to the set interval duration in the process of determining that the user browses the target webpage, the method further includes:
when a user is detected to open a target webpage, determining the content position of a first row webpage in the target webpage;
in a target webpage, acquiring at least one target local page area associated with sliding operation data, wherein the method comprises the following steps:
determining the first-row webpage content position as a reference webpage comparison position;
sequentially acquiring target sliding operation data as a comparison webpage touch position according to the sequence of the acquisition time of the sliding operation data from far to near;
in the target webpage, acquiring a local page area included between the comparison webpage touch position and the reference webpage comparison position as a target local page area associated with the target sliding operation data;
and after the target sliding operation data is determined as a new reference webpage comparison position, returning to execute the sequence from far to near according to the acquisition time of the sliding operation data, and sequentially acquiring one target sliding operation data as the operation of comparing the webpage touch positions until the processing of all the sliding operation data is completed.
In the foregoing solution, optionally, calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data, includes:
counting the acquisition times corresponding to the local page area to be adjusted in the target webpage according to the acquired target local page area respectively associated with each sliding operation data;
and taking the set interval duration as operation association duration matched with the sliding operation data, and taking the product of the acquisition times of the local page area to be adjusted and the operation association duration as the retention time of the user for the local page area to be adjusted in the target webpage.
In the foregoing scheme, optionally, the method further includes:
and dividing and labeling the target webpage according to a preset mode to obtain at least two local page areas corresponding to the target webpage.
In a second aspect, an embodiment of the present disclosure further provides a web page processing apparatus, including:
the time acquisition module is used for acquiring the stay time of at least two users aiming at least one local page area to be adjusted in a target webpage, wherein the target webpage comprises at least two local page areas;
the time accumulation module is used for accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted;
the display form determining module is used for determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form corresponding rule;
and the display form adjusting module is used for adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
In the foregoing solution, optionally, the display form determining module includes:
the time adjusting unit is used for adjusting the total retention time corresponding to the local page area to be adjusted to a standard data range according to a preset data processing rule;
and the color determining unit is used for determining the target color corresponding to the local page area to be adjusted according to the preset color corresponding rule and the adjusted total retention time.
In the foregoing solution, optionally, the time obtaining module includes:
the data acquisition unit is used for acquiring sliding operation data generated in the process of browsing a target webpage by a user;
the region acquisition unit is used for acquiring at least one target local page region related to the sliding operation data in the target webpage;
and the time calculation unit is used for calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data.
In the foregoing solution, optionally, the data obtaining unit includes:
the position acquisition subunit is used for acquiring the screen touch position of the user under the display screen of the target webpage at regular time according to the set interval duration in the process of determining that the user browses the target webpage;
and the data determining subunit is used for determining the webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage under the display screen.
In the foregoing scheme, optionally, the method further includes:
the first determining subunit is used for determining the content position of the first-line webpage in the target webpage when detecting that the target webpage is opened by a user;
the area acquisition unit includes:
the second determining subunit is used for determining the first-row webpage content position as a reference webpage comparison position;
the data acquisition subunit is used for sequentially acquiring target sliding operation data as comparison webpage touch positions according to the sequence of the acquisition time of the sliding operation data from far to near;
the area acquisition subunit is used for acquiring a local page area included between the comparison webpage touch position and the reference webpage comparison position in the target webpage, and the local page area is used as a target local page area associated with the target sliding operation data;
and the third determining subunit is used for returning to execute the sequence from far to near according to the acquisition time of the sliding operation data, and sequentially acquiring one target sliding operation data as the operation of comparing the touch positions of the webpages until the processing of all the sliding operation data is finished.
In the foregoing solution, optionally, the time calculating unit includes:
the number counting subunit is used for counting the acquisition times corresponding to the local page areas to be adjusted in the target webpage according to the acquired target local page areas respectively associated with the sliding operation data;
and the time calculation subunit is used for taking the set interval duration as the operation association duration matched with the sliding operation data, and taking the product of the acquisition times of the local page area to be adjusted and the operation association duration as the staying time of the user for the local page area to be adjusted in the target webpage.
In the foregoing scheme, optionally, the method further includes:
and the region dividing module is used for dividing and labeling the target webpage according to a preset mode to obtain at least two local page regions corresponding to the target webpage.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the web page processing method according to the embodiment of the present disclosure.
In a fourth aspect, the disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the web page processing method according to the disclosed embodiment.
The method and the device for adjusting the local page area of the webpage have the advantages that the staying time of at least two users for at least one local page area to be adjusted in the target webpage is obtained, the target webpage comprises at least two local page areas, the staying time is accumulated to obtain the total staying time corresponding to the local page area to be adjusted, the target display form corresponding to the local page area to be adjusted is determined according to the total staying time and the preset display form corresponding rule, the display form adjustment is carried out on the local page area to be adjusted according to the target display form, the problem that no effective measure can be used in the prior art to obtain the user attention distribution map according to the interaction data of each user and the webpage in real time is solved, the target webpage can be processed according to webpage operation data of different users, and the processed target webpage is provided for the users as the user attention distribution map, so that the user is informed of the attention distribution of all users.
Drawings
Fig. 1 is a flowchart of a web page processing method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a web page processing method according to an embodiment of the disclosure;
fig. 3 is a flowchart of a web page processing method according to an embodiment of the disclosure;
fig. 4 is a flowchart of a web page processing method according to an embodiment of the disclosure;
fig. 5 is a flowchart of a web page processing method according to an embodiment of the disclosure;
fig. 6 is a flowchart of a web page processing method according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of a web page processing apparatus according to an embodiment of the disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Fig. 1 is a flowchart of a web page processing method provided in an embodiment of the present disclosure, where the present embodiment is applicable to a case of processing a web page, the method may be executed by a web page processing apparatus, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in an electronic device, for example, a terminal device or a server. As shown in fig. 1, the method may include the steps of:
step 101, obtaining the staying time of at least two users for at least one local page area to be adjusted in a target webpage, wherein the target webpage comprises at least two local page areas.
The target webpage is a webpage which can be accessed and browsed by a user. For example, the target webpage may be a webpage opened to the user after the user clicks the commodity-related information published by the social media or searches the commodity-related information by using a search engine. The target webpage comprises at least two local page areas. The local page area is obtained by dividing and labeling the target webpage according to a preset mode. For example, the target web page is equally divided into 1000 partial page areas in the vertical direction, and sequentially numbered from top to bottom.
And acquiring the stay time of at least two users aiming at least one local page area to be adjusted in the target webpage. Optionally, the staying time of each user for at least one local page area to be adjusted in the target webpage is obtained. The local page area to be adjusted is a local page area which needs to be adjusted in display form according to the staying time of the user in the target webpage.
In a specific example, each local page area in the target webpage may be a local page area to be adjusted. The method comprises the steps of obtaining the staying time of at least two users for at least one local page area to be adjusted in a target webpage, namely obtaining the staying time of at least two users for each local page area in the target webpage.
In another specific example, the local page area to be adjusted may be a local page area specified in the target web page according to business requirements. For example, the local page area to be adjusted is an advertisement area or an entertainment news area in the target webpage. The method comprises the steps of obtaining the staying time of at least two users for at least one local page area to be adjusted in a target webpage, namely obtaining the staying time of a specified local page area.
Specifically, in the process of browsing a target webpage by a user, the sliding operation of the user is monitored, and the sliding operation data generated in the process of browsing the target webpage by the user is acquired. And determining at least one target local page area associated with the sliding operation data according to the content position of the first row webpage of the target webpage and all the sliding operation data of the user in the current access process. And then, according to the target local page area and the operation associated duration matched with the sliding operation data, calculating the staying time of the user for the local page area to be adjusted in the target webpage.
The sliding operation may be a behavior that a user slides on the screen of the mobile terminal by moving a finger or a touch pen, or a behavior that the user controls the screen switching of the PC side of the computer by using the sliding of the mouse. The sliding operation data may include a webpage touch position of the user on the target webpage. The webpage touch position is the touch position of the user with the target webpage when the user slides on the screen.
And 102, accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted.
After the residence time of at least two users for at least one local page area to be adjusted in the target webpage is obtained, the residence time corresponding to each local page area to be adjusted is accumulated to obtain the total residence time corresponding to the local page area to be adjusted.
In a specific example, if each local page area in the target webpage is a local page area to be adjusted, the retention time corresponding to each local page area is accumulated to obtain the total retention time corresponding to each local page area.
In another specific example, the local page area to be adjusted may be a local page area specified in the target webpage according to the service requirement, and the retention time corresponding to the specified local page area is accumulated to obtain the total retention time corresponding to the specified local page area.
And 103, determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form corresponding rule.
The target display form is a display form corresponding to the local page area to be adjusted. The display form can be color, font, typesetting mode or animation. The preset display form corresponding rule is a corresponding rule of the total staying time and the display form.
Optionally, the display form is color. The color is the page background color of the target web page. The preset display form corresponding rule is a preset color corresponding rule: the total dwell time corresponds to the color value of the color in the color bar. Different total dwell times correspond to different color values. And determining the color corresponding to the total dwell time according to the color value corresponding to the total dwell time. The color is a target color corresponding to the local page area to be adjusted. Therefore, according to the total staying time and the preset color corresponding rule, the target color corresponding to the local page area to be adjusted can be determined. And the target color corresponding to the local page area to be adjusted is the target display form corresponding to the local page area to be adjusted.
In a specific example, each local page area in the target web page is a local page area to be adjusted. The preset color correspondence rule is that the color values of the colors in the hue bar correspond to the numerical values of the standard data range. Optionally, the standard data range is 0-100% of the data range. Specifically, after the total staying time corresponding to each local page area is obtained, the total staying time corresponding to each local page area is adjusted to be within a data range of 0-100% according to a preset data processing rule, and then the target color corresponding to each local page area is determined according to a preset color corresponding rule and the adjusted total staying time. For example, the target color corresponding to the local page area to be adjusted with the adjusted total dwell time of 100% is red. And the target color corresponding to the total staying time of the local page area to be adjusted with the adjusted total staying time of 0 is blue.
And 104, adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
After a target display form corresponding to the local page area to be adjusted is determined, the display form of the local page area to be adjusted in the target webpage is adjusted according to the target display form, and the display form of the local page area to be adjusted in the target webpage is adjusted to be the corresponding target display form.
Optionally, the target display form is a target color. Each local page area in the target webpage is a local page area to be adjusted. After the target color corresponding to each local page area is determined, the page background color of each local page area in the target webpage is adjusted to be the corresponding target color. For example, the target color corresponding to the local page area to be adjusted with the adjusted total dwell time of 100% is red. And adjusting the page background color of the local page area to be adjusted to be corresponding red. The area with the red page background color is the important attention area of the user in the target webpage.
Therefore, the webpage operation data of different users are collected, the target webpage is processed according to the webpage operation data, and then the adjusted target webpage is used as the user attention distribution map. The user can know the attention distribution conditions of all users based on the adjusted target webpage.
In the technical scheme of this embodiment, the staying time of at least two users for at least one to-be-adjusted local page area in the target webpage is obtained, where the target webpage includes at least two local page areas, then the staying time is accumulated to obtain the total staying time corresponding to the to-be-adjusted local page area, and the target display form corresponding to the to-be-adjusted local page area is determined according to the total staying time and the preset display form correspondence rule, and the display form adjustment is performed on the to-be-adjusted local page area according to the target display form, so as to solve the problem that no effective measure in the prior art can obtain the user attention distribution map in real time according to the interaction data of each user and the webpage, process the target webpage according to the webpage operation data of different users, and provide the processed target webpage as the user attention distribution map to the user, so that the user is informed of the attention distribution of all users.
Fig. 2 is a flowchart of a web page processing method provided in an embodiment of the present disclosure, where this embodiment may be combined with various alternatives in one or more of the foregoing embodiments, and in this embodiment, determining a target display form corresponding to a local page area to be adjusted according to a total staying time and a preset display form correspondence rule may include: adjusting the total retention time corresponding to the local page area to be adjusted to a standard data range according to a preset data processing rule; and then determining the target color corresponding to the local page area to be adjusted according to the preset color corresponding rule and the adjusted total retention time.
As shown in fig. 2, the method may include the steps of:
step 201, obtaining the staying time of at least two users for at least one local page area to be adjusted in a target webpage, wherein the target webpage comprises at least two local page areas.
And each local page area in the target webpage is a local page area to be adjusted.
Step 202, accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted.
And 203, adjusting the total residence time corresponding to the local page area to be adjusted to a standard data range according to a preset data processing rule.
Wherein the standard data range is 0-100% of the data range. And after the total retention time corresponding to each local page area is obtained, calculating the numerical value of the total retention time corresponding to each local page area according to a preset data processing rule, and adjusting the total retention time corresponding to each local page area to be within a data range of 0-100%.
Specifically, the calculating the total retention time value corresponding to each local page area according to the preset data processing rule includes: the adjusted total residence time is calculated according to the following formula:
Figure BDA0001834515700000091
wherein,T1For the total residence time before adjustment, T2For adjusted total residence time, TminThe total dwell time, T, with the smallest value among the total dwell times corresponding to each local page areamaxThe total dwell time with the maximum value in the total dwell time corresponding to each local page area.
And step 204, determining a target color corresponding to the local page area to be adjusted according to the preset color corresponding rule and the adjusted total retention time.
The preset color corresponding rule is that the color value of the color in the hue bar corresponds to the numerical value of the standard data range. And determining the target color corresponding to each local page area according to the preset color corresponding rule and the adjusted total retention time. For example, the target color corresponding to the local page area to be adjusted with the adjusted total dwell time of 100% is red. And the target color corresponding to the total staying time of the local page area to be adjusted with the adjusted total staying time of 0 is blue.
And step 205, adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
Wherein the target display form is a target color. Each local page area in the target webpage is a local page area to be adjusted. After the target color corresponding to each local page area is determined, the page background color of each local page area in the target webpage is adjusted to be the corresponding target color.
According to the technical scheme of the embodiment, the total retention time corresponding to the local page area to be adjusted is adjusted to be within a standard data range according to a preset data processing rule; and then determining a target color corresponding to the local page area to be adjusted according to a preset color corresponding rule and the adjusted total retention time, adjusting the page background color of each local area in the target webpage according to webpage operation data of different users, and providing the adjusted target webpage as a user attention distribution diagram for the user so that the user can visually know the attention distribution condition of all users according to the page background color of the target webpage.
Fig. 3 is a flowchart of a web page processing method provided in an embodiment of the present disclosure, where this embodiment may be combined with various alternatives in one or more of the foregoing embodiments, and in this embodiment, acquiring a retention time of at least two users for at least one local page area to be adjusted in a target web page includes: acquiring sliding operation data generated in the process of browsing a target webpage by a user; acquiring at least one target local page area associated with the sliding operation data in a target webpage; and calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data.
And, further comprising: and dividing and labeling the target webpage according to a preset mode to obtain at least two local page areas corresponding to the target webpage.
As shown in fig. 3, the method may include the steps of:
step 301, dividing and labeling the target webpage according to a preset mode to obtain at least two local page areas corresponding to the target webpage.
The local page area is obtained by dividing and labeling the target webpage according to a preset mode. Optionally, the preset manner is to equally divide the target webpage into 1000 local page areas in the vertical direction, and sequentially mark serial numbers 1 to 1000 from top to bottom.
Step 302, obtaining sliding operation data generated in the process of browsing the target webpage by the user.
The method comprises the steps of monitoring sliding operation of a user in the process of browsing a target webpage by the user, and acquiring sliding operation data generated in the process of browsing the target webpage by the user. The sliding operation may be a behavior that a user slides on the screen of the mobile terminal by moving a finger or a touch pen, or a behavior that the user controls the screen switching of the PC side of the computer by using the sliding of the mouse. The sliding operation data may include a webpage touch position of the user on the target webpage. The webpage touch position is the touch position of the user with the target webpage when the user slides on the screen.
In a specific example, in the process of determining that the user browses the target webpage, the sliding operation data generated in the process of browsing the target webpage by the user may be periodically acquired according to the set interval duration.
In another specific example, the generated sliding operation data may be acquired when the sliding operation of the user is detected.
Step 303, in the target webpage, acquiring at least one target local page area associated with the sliding operation data.
And determining at least one target local page area associated with the sliding operation data according to the content position of the first row webpage of the target webpage and all the sliding operation data of the user in the current access process. The top line web page content location is the location of the top line web page content of the target web page. Generally, when a user opens a target webpage, the user can browse the first row webpage content of the target webpage. Such as the title of the target web page.
Specifically, the reference webpage comparison position is the last sliding operation data corresponding to the current sliding operation data. And when the sliding operation data is processed for the first time, determining the first row webpage content position as a reference webpage comparison position. And sequentially acquiring target sliding operation data as a comparison webpage touch position according to the sequence of the acquisition time of the sliding operation data from far to near. And then, acquiring a local page area included between the comparison webpage touch position and the reference webpage comparison position, namely acquiring a local page area included between the comparison webpage touch position and the first row webpage content position as a target local page area associated with the target sliding operation data. And after determining a target local page area associated with the target sliding operation data, determining the target sliding operation data as a new reference webpage comparison position. And then returning to execute the operation of sequentially acquiring new target sliding operation data as the touch position of the comparison webpage according to the sequence of the acquisition time of the sliding operation data from far to near, acquiring a local page area included between the touch position of the comparison webpage and the comparison position of the reference webpage in the target webpage as a target local page area associated with the new target sliding operation data until the processing of all the sliding operation data is completed, and determining the target local page area associated with each piece of sliding operation data.
For example, when the sliding operation data is processed for the first time, the content position of the first line of the webpage is located in the local page area 1, and the touch position of the comparison webpage is located in the local page area 3. Namely, the reference webpage comparison position is located in the local page area 1, and the local page areas included between the comparison webpage touch position and the reference webpage comparison position are the local page area 1, the local page area 2 and the local page area 3. The local page area 1, the local page area 2, and the local page area 3 are set as target local page areas associated with the target slide operation data. And then determining the target sliding operation data as a new reference webpage comparison position, namely, setting the new reference webpage comparison position as a local page area 3. And sequentially acquiring target sliding operation data as a comparison webpage touch position according to the sequence of the acquisition time of the sliding operation data from far to near. The new comparison web page touch position is a local page area 4, and the local page areas included between the comparison web page touch position and the reference web page comparison position are a local page area 3 and a local page area 4. The partial page area 3 and the partial page area 4 are set as target partial page areas associated with new target slide operation data.
And 304, calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data, wherein the target webpage comprises at least two local page areas.
After the processing of all the sliding operation data is completed, the staying time of the user for the local page area to be adjusted in the target webpage is calculated according to at least one target local page area associated with the sliding operation data and the operation associated duration matched with the sliding operation data.
Optionally, each local page area in the target webpage is a local page area to be adjusted. And after the processing of all the sliding operation data is finished, calculating the staying time of the user for each local page area in the target webpage according to at least one target local page area associated with the sliding operation data and the operation associated duration matched with the sliding operation data.
Optionally, the local page area to be adjusted is a local page area specified in the target webpage according to the service requirement. And after the processing of all the sliding operation data is finished, calculating the stay time of the user for the specified local page area in the target webpage according to at least one target local page area associated with the sliding operation data and the operation associated duration matched with the sliding operation data.
In a specific example, the set interval period is taken as the operation-related period that matches the slide operation data. Specifically, according to the obtained target local page areas respectively associated with each sliding operation data, the obtaining times corresponding to the local page areas to be adjusted in the target webpage are counted, and then the product of the obtaining times of the local page areas to be adjusted and the operation associated duration is used as the staying time of the user for the local page areas to be adjusted in the target webpage.
In another specific example, when the user has a sliding operation, when it is detected that the user has a sliding operation, the generated sliding operation data is acquired, and the duration from the previous sliding operation to the current sliding operation is detected, and the duration is used as the operation associated duration matched with the sliding operation data of the current sliding operation. Specifically, according to the obtained target local page area respectively associated with each sliding operation data and the operation associated duration, the operation associated duration corresponding to the local page area to be adjusted in the target webpage is determined, and then the operation associated durations corresponding to the local page area to be adjusted are accumulated to be used as the staying time of the user for the local page area to be adjusted in the target webpage.
And 305, accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted.
And step 306, determining a target display form corresponding to the local page area to be adjusted according to the total retention time and the preset display form corresponding rule.
And 307, adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
According to the technical scheme of the embodiment, the sliding operation data generated in the process of browsing the target webpage by the user is acquired, then at least one target local page area associated with the sliding operation data is acquired in the target webpage, the staying time of the user for the local page area to be adjusted in the target webpage is calculated according to the target local page area and the operation associated duration matched with the sliding operation data, and the staying time of each user for the local page area to be adjusted in the webpage can be determined in real time according to the webpage operation data of the user.
Fig. 4 is a flowchart of a web page processing method provided in an embodiment of the present disclosure, where this embodiment may be combined with various alternatives in one or more of the foregoing embodiments, and in this embodiment, acquiring sliding operation data generated in a process of a user browsing a target web page may include: in the process of determining that a user browses a target webpage, regularly acquiring a screen touch position of the user under a display screen of the target webpage according to a set interval duration; and determining a webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage under the display screen.
As shown in fig. 4, the method may include the steps of:
step 401, in the process of determining that the user browses the target webpage, regularly acquiring the screen touch position of the user under the display screen of the target webpage according to the set interval duration.
Wherein the set interval duration is a preset duration. For example, the interval duration is set to 1 second. In the process of determining that the user browses the target webpage, monitoring the sliding operation of the user, and regularly acquiring the screen touch position of the user under the display screen of the target webpage every 1 second.
Step 402, according to the current display content of the target webpage under the display screen, determining a webpage touch position matched with the screen touch position as sliding operation data.
The webpage touch position is the touch position of the target webpage when the user slides on the screen. The display screen may not be able to display the entire target web page content. The user needs to browse the entire contents of the target web page by switching the screen through a sliding operation. The current display content is the webpage content of the target webpage currently displayed under the display screen. According to the screen touch position of the user under the display screen of the target webpage and the current display content of the target webpage under the display screen, the touch position of the user and the target webpage, namely the webpage touch position, can be determined.
And step 403, acquiring at least one target local page area associated with the sliding operation data in the target webpage.
Step 404, calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data, wherein the target webpage comprises at least two local page areas.
And 405, accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted.
And 406, determining a target display form corresponding to the local page area to be adjusted according to the total retention time and the preset display form corresponding rule.
And 407, adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
According to the technical scheme of the embodiment, in the process of determining that the user browses the target webpage, the screen touch position of the user under the display screen of the target webpage is obtained regularly according to the set interval duration; according to the current display content of the target webpage on the display screen, the webpage touch position matched with the screen touch position is determined to be used as sliding operation data, and the touch position of the target webpage when a user slides on the screen can be determined according to the webpage operation data of the user in real time.
Fig. 5 is a flowchart of a web page processing method provided in an embodiment of the present disclosure, where this embodiment may be combined with various alternatives in one or more of the foregoing embodiments, and in this embodiment, before regularly acquiring a screen touch position of a user under a display screen of a target web page according to a set interval duration in a process of determining that the user browses the target web page, the method may further include: when the situation that a user opens a target webpage is detected, determining the content position of a first row webpage in the target webpage.
And acquiring, in the target webpage, at least one target local page area associated with the sliding operation data, which may include: determining the first-row webpage content position as a reference webpage comparison position; sequentially acquiring target sliding operation data as a comparison webpage touch position according to the sequence of the acquisition time of the sliding operation data from far to near; in the target webpage, acquiring a local page area included between the comparison webpage touch position and the reference webpage comparison position as a target local page area associated with the target sliding operation data; and after the target sliding operation data is determined as a new reference webpage comparison position, returning to execute the sequence from far to near according to the acquisition time of the sliding operation data, and sequentially acquiring one target sliding operation data as the operation of comparing the webpage touch positions until the processing of all the sliding operation data is completed.
As shown in fig. 5, the method may include the steps of:
step 501, when it is detected that a user opens a target webpage, determining the content position of a first row webpage in the target webpage.
And the first row webpage content position is the position of the first row webpage content of the target webpage. Generally, when a user opens a target webpage, the user can browse the first row webpage content of the target webpage. Such as the title of the target web page.
Step 502, in the process of determining that the user browses the target webpage, the screen touch position of the user under the display screen of the target webpage is obtained regularly according to the set interval duration.
Step 503, determining a webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage on the display screen.
Step 504, determining the first row webpage content position as a reference webpage comparison position.
And the reference webpage comparison position is the last sliding operation data corresponding to the current sliding operation data. And when the sliding operation data is processed for the first time, determining the first row webpage content position as a reference webpage comparison position.
And 505, sequentially acquiring target sliding operation data as the touch positions of the comparison web pages according to the sequence of the acquisition time of the sliding operation data from far to near.
And the target sliding operation data is the current sliding operation data. When each sliding operation data generated in the process of browsing the target webpage by the user is acquired, recording the current time as the acquisition time corresponding to the sliding operation data.
Step 506, in the target webpage, a local page area included between the comparison webpage touch position and the reference webpage comparison position is obtained and is used as a target local page area associated with the target sliding operation data.
When the sliding operation data is processed for the first time, a local page area included between the comparison webpage touch position and the reference webpage comparison position is obtained, namely the local page area included between the comparison webpage touch position and the first row webpage content position is obtained. For example, when the sliding operation data is processed for the first time, the content position of the first line of the webpage is located in the local page area 1, and the touch position of the comparison webpage is located in the local page area 3. Namely, the reference webpage comparison position is located in the local page area 1, and the local page areas included between the comparison webpage touch position and the reference webpage comparison position are the local page area 1, the local page area 2 and the local page area 3. The local page area 1, the local page area 2, and the local page area 3 are set as target local page areas associated with the target slide operation data.
And 507, after the target sliding operation data is determined as a new reference webpage comparison position, returning to execute the sequence from far to near according to the acquisition time of the sliding operation data, and sequentially acquiring one target sliding operation data as the operation of comparing the webpage touch positions until the processing of all the sliding operation data is completed.
And after determining a target local page area associated with the target sliding operation data, determining the target sliding operation data as a new reference webpage comparison position. And then returning to execute the operation of sequentially acquiring new target sliding operation data as the touch position of the comparison webpage according to the sequence of the acquisition time of the sliding operation data from far to near, acquiring a local page area included between the touch position of the comparison webpage and the comparison position of the reference webpage in the target webpage as a target local page area associated with the new target sliding operation data until the processing of all the sliding operation data is completed, and determining the target local page area associated with each piece of sliding operation data.
Step 508, calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data, wherein the target webpage comprises at least two local page areas.
Step 509, accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted.
And step 510, determining a target display form corresponding to the local page area to be adjusted according to the total staying time and the preset display form corresponding rule.
And 511, adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
According to the technical scheme of the embodiment, a first-line webpage content position is determined as a reference webpage comparison position, a target sliding operation data is sequentially acquired as a comparison webpage touch position according to the sequence of the acquisition time of the sliding operation data from far to near, then a local page area included between the comparison webpage touch position and the reference webpage comparison position is acquired in a target webpage as a target local page area associated with the target sliding operation data, after the target sliding operation data is determined as a new reference webpage comparison position, the sequence of the acquisition time of the sliding operation data from far to near is returned to be executed, a target sliding operation data is sequentially acquired as an operation of comparing the webpage touch position until the whole sliding operation data are processed, and each local page area of the target webpage corresponding to the sliding operation of a user when the user slides on a screen can be determined in real time according to the webpage operation data of the user A domain.
Fig. 6 is a flowchart of a web page processing method provided in an embodiment of the present disclosure, which may be combined with various alternatives in one or more of the foregoing embodiments, and in this embodiment, calculating a staying time of a user for a local page area to be adjusted in a target web page according to the target local page area and an operation associated duration matched with sliding operation data may include: counting the acquisition times corresponding to the local page area to be adjusted in the target webpage according to the acquired target local page area respectively associated with each sliding operation data; and taking the set interval duration as operation association duration matched with the sliding operation data, and taking the product of the acquisition times of the local page area to be adjusted and the operation association duration as the retention time of the user for the local page area to be adjusted in the target webpage.
As shown in fig. 6, the method may include the steps of:
step 601, in the process of determining that the user browses the target webpage, regularly acquiring the screen touch position of the user under the display screen of the target webpage according to the set interval duration.
Step 602, determining a webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage under the display screen.
Step 603, acquiring at least one target local page area associated with the sliding operation data in the target webpage.
And step 604, counting the acquisition times corresponding to the local page areas to be adjusted in the target webpage according to the acquired target local page areas respectively associated with the sliding operation data.
After at least one target local page area associated with each sliding operation data is obtained, the obtaining times corresponding to the local page area to be adjusted in the target webpage are counted. The acquisition number is the number of times the local page area is associated with the slide operation data.
For example, a total of 3 sliding operation data are acquired. The target local page area associated with the 1 st sliding operation data is: local page area 1 and local page area 2. The target local page associated with the 2 nd sliding operation data is: regional local page region 2 and local page region 3. The target local page area associated with the 3 rd sliding operation data is: a partial page area 2 and a partial page area 3. Counting the acquisition times respectively corresponding to each local page area in the target webpage: the acquisition frequency of the local page area 1 is 1 time; the acquisition frequency of the local page area 2 is 3 times; the number of times of acquisition of the partial page area 3 is 2.
Step 605, taking the set interval duration as an operation association duration matched with the sliding operation data, and taking the product of the acquisition times of the local page area to be adjusted and the operation association duration as the retention time of the user for the local page area to be adjusted in the target webpage, wherein the target webpage comprises at least two local page areas.
Wherein the set interval duration is a preset duration. For example, the interval duration is set to 1 second. Counting the acquisition times respectively corresponding to each local page area in the target webpage: the acquisition frequency of the local page area 1 is 1 time; the acquisition frequency of the local page area 2 is 3 times; the number of times of acquisition of the partial page area 3 is 2. And taking the product of the acquisition times of the local page areas and the operation associated duration as the staying time of the user for the local page areas in the target webpage. That is, the dwell time of the local page area 1 is 1 second, the dwell time of the local page area 2 is 3 seconds, and the acquisition frequency of the local page area 3 is 2 seconds.
And 606, accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted.
Step 607, determining a target display form corresponding to the local page area to be adjusted according to the total staying time and the preset display form corresponding rule.
And 608, adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
According to the technical scheme of the embodiment, the acquisition times corresponding to the local page area to be adjusted in the target webpage are counted according to the acquired target local page area respectively associated with each sliding operation data; the set interval duration is used as operation association duration matched with the sliding operation data, the product of the acquisition times of the local page area to be adjusted and the operation association duration is used as the staying time of the user for the local page area to be adjusted in the target webpage, the local page area associated with the sliding operation data of the user can be determined in real time, and the staying time of the user for the local page area to be adjusted in the target webpage can be calculated and used as user attention distribution data.
Fig. 7 is a schematic structural diagram of a web page processing apparatus according to an embodiment of the present disclosure, which is applicable to a case of processing a web page. The apparatus can be implemented in software and/or hardware, and the apparatus can be configured in an electronic device. As shown in fig. 7, the apparatus may include: a time acquisition module 701, a time accumulation module 702, a display form determination module 703 and a display form adjustment module 704.
The time obtaining module 701 is configured to obtain a retention time of at least two users for at least one local page area to be adjusted in a target webpage, where the target webpage includes at least two local page areas; a time accumulation module 702, configured to accumulate the retention time corresponding to the local page area to be adjusted to obtain a total retention time corresponding to the local page area to be adjusted; a display form determining module 703, configured to determine, according to the total retention time and a preset display form correspondence rule, a target display form corresponding to the local page area to be adjusted; and a display form adjusting module 704, configured to adjust a display form of the local page area to be adjusted in the target webpage according to the target display form.
In the technical scheme of this embodiment, the staying time of at least two users for at least one to-be-adjusted local page area in the target webpage is obtained, where the target webpage includes at least two local page areas, then the staying time is accumulated to obtain the total staying time corresponding to the to-be-adjusted local page area, and the target display form corresponding to the to-be-adjusted local page area is determined according to the total staying time and the preset display form correspondence rule, and the display form adjustment is performed on the to-be-adjusted local page area according to the target display form, so as to solve the problem that no effective measure in the prior art can obtain the user attention distribution map in real time according to the interaction data of each user and the webpage, process the target webpage according to the webpage operation data of different users, and provide the processed target webpage as the user attention distribution map to the user, so that the user is informed of the attention distribution of all users.
Optionally, on the basis of the foregoing technical solution, the display form determining module 704 may include: the time adjusting unit is used for adjusting the total retention time corresponding to the local page area to be adjusted to a standard data range according to a preset data processing rule; and the color determining unit is used for determining the target color corresponding to the local page area to be adjusted according to the preset color corresponding rule and the adjusted total retention time.
Optionally, on the basis of the foregoing technical solution, the time obtaining module 701 may include: the data acquisition unit is used for acquiring sliding operation data generated in the process of browsing a target webpage by a user; the region acquisition unit is used for acquiring at least one target local page region related to the sliding operation data in the target webpage; and the time calculation unit is used for calculating the staying time of the user for the local page area to be adjusted in the target webpage according to the target local page area and the operation associated duration matched with the sliding operation data.
Optionally, on the basis of the above technical solution, the data obtaining unit may include: the position acquisition subunit is used for acquiring the screen touch position of the user under the display screen of the target webpage at regular time according to the set interval duration in the process of determining that the user browses the target webpage; and the data determining subunit is used for determining the webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage under the display screen.
Optionally, on the basis of the above technical solution, the method further includes: the first determining subunit is used for determining the content position of the first-line webpage in the target webpage when detecting that the target webpage is opened by a user; the area acquisition unit may include: the second determining subunit is used for determining the first-row webpage content position as a reference webpage comparison position; the data acquisition subunit is used for sequentially acquiring target sliding operation data as comparison webpage touch positions according to the sequence of the acquisition time of the sliding operation data from far to near; the area acquisition subunit is used for acquiring a local page area included between the comparison webpage touch position and the reference webpage comparison position in the target webpage, and the local page area is used as a target local page area associated with the target sliding operation data; and the third determining subunit is used for returning to execute the sequence from far to near according to the acquisition time of the sliding operation data, and sequentially acquiring one target sliding operation data as the operation of comparing the touch positions of the webpages until the processing of all the sliding operation data is finished.
Optionally, on the basis of the above technical solution, the time calculating unit may include: the number counting subunit is used for counting the acquisition times corresponding to the local page areas to be adjusted in the target webpage according to the acquired target local page areas respectively associated with the sliding operation data; and the time calculation subunit is used for taking the set interval duration as the operation association duration matched with the sliding operation data, and taking the product of the acquisition times of the local page area to be adjusted and the operation association duration as the staying time of the user for the local page area to be adjusted in the target webpage.
Optionally, on the basis of the above technical solution, the method further includes: and the region dividing module is used for dividing and labeling the target webpage according to a preset mode to obtain at least two local page regions corresponding to the target webpage.
The web page processing device provided by the embodiment of the disclosure can execute the web page processing method provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
Referring now to fig. 8, a schematic diagram of an electronic device (e.g., a terminal device or server) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: the method comprises the steps of obtaining the staying time of at least two users for at least one local page area to be adjusted in a target webpage, wherein the target webpage comprises at least two local page areas; accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted; determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form corresponding rule; and according to the target display form, adjusting the display form of the local page area to be adjusted in the target webpage.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. 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 modules and units described in the embodiments of the present disclosure may be implemented by software or hardware. For example, the time accumulation module may be further described as a "module that accumulates the retention time corresponding to the local page area to be adjusted to obtain the total retention time corresponding to the local page area to be adjusted", and the time adjustment unit may be further described as a "unit that adjusts the total retention time corresponding to each local page area to the standard data range according to the preset data processing rule".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (7)

1. A method for processing a web page, comprising:
in the process of determining that a user browses a target webpage, regularly acquiring a screen touch position of the user under a display screen of the target webpage according to a set interval duration;
determining a webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage under the display screen;
acquiring at least one target local page area associated with the sliding operation data in the target webpage, wherein the target webpage comprises at least two local page areas;
counting the acquisition times corresponding to the local page area to be adjusted in the target webpage according to the acquired target local page area respectively associated with each sliding operation data;
taking the set interval duration as an operation association duration matched with the sliding operation data, and taking the product of the acquisition times of the local page area to be adjusted and the operation association duration as the staying time of the user for the local page area to be adjusted in the target webpage;
accumulating the residence time corresponding to the local page area to be adjusted to obtain the total residence time corresponding to the local page area to be adjusted;
determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form corresponding rule;
and according to the target display form, adjusting the display form of the local page area to be adjusted in the target webpage.
2. The method according to claim 1, wherein determining a target display form corresponding to the local page area to be adjusted according to the total dwell time and a preset display form correspondence rule comprises:
adjusting the total retention time corresponding to the local page area to be adjusted to a standard data range according to a preset data processing rule;
and then determining the target color corresponding to the local page area to be adjusted according to a preset color corresponding rule and the adjusted total retention time.
3. The method of claim 1, before the step of periodically obtaining the screen touch position of the user under the display screen of the target webpage according to the set interval duration in the process of determining that the user browses the target webpage, further comprising:
when the target webpage is detected to be opened by the user, determining the content position of the first row webpage in the target webpage;
in the target webpage, acquiring at least one target local page area associated with the sliding operation data, including:
determining the first-line webpage content position as a reference webpage comparison position;
sequentially acquiring target sliding operation data as a comparison webpage touch position according to the sequence of the acquisition time of the sliding operation data from far to near;
in the target webpage, acquiring a local page area included between the comparison webpage touch position and the reference webpage comparison position as a target local page area associated with the target sliding operation data;
and after determining the target sliding operation data as a new reference webpage comparison position, returning to execute the sequence from far to near according to the acquisition time of the sliding operation data, and sequentially acquiring one target sliding operation data as the operation of comparing the webpage touch positions until the processing of all the sliding operation data is completed.
4. The method of claim 1, further comprising:
and dividing and labeling the target webpage according to a preset mode to obtain at least two local page areas corresponding to the target webpage.
5. A web page processing apparatus, comprising:
the time acquisition module comprises: the position acquisition subunit is used for acquiring the screen touch position of the user under the display screen of the target webpage at regular time according to the set interval duration in the process of determining that the user browses the target webpage; the data determining subunit is used for determining a webpage touch position matched with the screen touch position as sliding operation data according to the current display content of the target webpage under the display screen; the system comprises an area acquisition unit, a sliding operation data acquisition unit and a sliding operation data acquisition unit, wherein the area acquisition unit is used for acquiring at least one target local page area related to the sliding operation data in a target webpage, and the target webpage comprises at least two local page areas; the number counting subunit is used for counting the acquisition times corresponding to the local page areas to be adjusted in the target webpage according to the acquired target local page areas respectively associated with the sliding operation data; the time calculation subunit is used for taking the set interval duration as operation association duration matched with the sliding operation data, and taking the product of the acquisition times of the local page area to be adjusted and the operation association duration as the staying time of the user for the local page area to be adjusted in the target webpage;
the time accumulation module is used for accumulating the retention time corresponding to the local page area to be adjusted to obtain the total retention time corresponding to the local page area to be adjusted;
the display form determining module is used for determining a target display form corresponding to the local page area to be adjusted according to the total retention time and a preset display form corresponding rule;
and the display form adjusting module is used for adjusting the display form of the local page area to be adjusted in the target webpage according to the target display form.
6. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the web page processing method of any one of claims 1-4.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the web page processing method according to any one of claims 1 to 4.
CN201811219964.XA 2018-10-19 2018-10-19 Webpage processing method and device, electronic equipment and storage medium Active CN109299416B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811219964.XA CN109299416B (en) 2018-10-19 2018-10-19 Webpage processing method and device, electronic equipment and storage medium
PCT/CN2019/095566 WO2020078054A1 (en) 2018-10-19 2019-07-11 Webpage processing method and apparatus, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811219964.XA CN109299416B (en) 2018-10-19 2018-10-19 Webpage processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109299416A CN109299416A (en) 2019-02-01
CN109299416B true CN109299416B (en) 2020-01-14

Family

ID=65158201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811219964.XA Active CN109299416B (en) 2018-10-19 2018-10-19 Webpage processing method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109299416B (en)
WO (1) WO2020078054A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299416B (en) * 2018-10-19 2020-01-14 北京字节跳动网络技术有限公司 Webpage processing method and device, electronic equipment and storage medium
CN113242397B (en) * 2021-06-02 2022-11-29 北京字节跳动网络技术有限公司 Frame rate adjusting method, device and equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022945A1 (en) * 2009-07-24 2011-01-27 Nokia Corporation Method and apparatus of browsing modeling
CN101882162B (en) * 2010-06-29 2016-05-11 北京搜狗科技发展有限公司 A kind of network information push method and system
CN102184240B (en) * 2011-05-16 2014-03-12 广州市动景计算机科技有限公司 Webpage layout method and system based on mobile communication equipment terminal
CN104239042B (en) * 2014-09-03 2017-08-01 北京国双科技有限公司 Heating power drawing generating method and device
CN104166741B (en) * 2014-09-10 2018-09-18 北京国双科技有限公司 Web page browsing analysis and processing method and device
CN104484453B (en) * 2014-12-30 2018-01-26 北京元心科技有限公司 Determine the method and device of Webpage hot spot region
CN108268491A (en) * 2016-12-30 2018-07-10 北京国双科技有限公司 Heating power drawing generating method and device
CN108268532A (en) * 2016-12-30 2018-07-10 北京国双科技有限公司 Page analysis method and apparatus
CN109299416B (en) * 2018-10-19 2020-01-14 北京字节跳动网络技术有限公司 Webpage processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2020078054A1 (en) 2020-04-23
CN109299416A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN110704684B (en) Video searching method and device, terminal and storage medium
CN111510760B (en) Video information display method and device, storage medium and electronic equipment
CN109976620B (en) Method, device, equipment and storage medium for determining list item display attribute information
CN109740085B (en) Page content display method, device, equipment and storage medium
US9116654B1 (en) Controlling the rendering of supplemental content related to electronic books
US20130042171A1 (en) Method and system for generating and managing annotation in electronic book
CN106843791A (en) Multi-screen display method and device
WO2023088442A1 (en) Live streaming preview method and apparatus, and device, program product and medium
US20180275838A1 (en) Method, device and browser for presenting recommended news, and electronic device
US10121154B2 (en) Information display apparatus, distribution apparatus, information display method, and non-transitory computer readable storage medium
CN111782918A (en) Page information processing method and device and electronic equipment
KR101873339B1 (en) System and method for providing interest contents
CN109299416B (en) Webpage processing method and device, electronic equipment and storage medium
WO2023035835A1 (en) Information display method and apparatus, and device and medium
CN115567745A (en) Display method, display device, electronic equipment and computer readable medium
US20160188556A1 (en) Adaptive electronic document
CN115080816A (en) Method, device, equipment and medium for generating summary information and displaying search result
CN111259270A (en) Weather reminding method, equipment and computer readable medium
CN110688578A (en) Screen locking wallpaper recommendation method and device and electronic equipment
CN109492163A (en) A kind of recording method, device, terminal device and storage medium that list is shown
CN117171406A (en) Application program function recommendation method, device, equipment and storage medium
WO2020078100A1 (en) Method and device for processing webpage operation data, electronic apparatus, and storage medium
CN109683726B (en) Character input method, character input device, electronic equipment and storage medium
CN116017019A (en) Video playing method and device, electronic equipment and computer readable medium
CN115544368A (en) Recommendation method and device for media content

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