Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The examples of this application relate to the introduction of nouns:
the browser: an application program that can access the content of an HTML (hypertext markup Language) file of a web server or a file system through a web address and enable a user to interact with the file is described. Typically, a browser includes a browser kernel.
Application with web browsing function: and the non-browser application program can call a browser kernel, display the HTML file content provided by the webpage server and enable a user to interact with the file. The application program can be at least one of a voice chat program, an instant chat program, a shopping program, a microblog program and a company management program. Optionally, the user interface in the application is generated by the application, the web browsing function in the application is implemented by calling a browser kernel, and the browser kernel does not generally belong to the application.
The self-owned webpage server: refers to a web server provided by a vendor that provides a browser. Since the web server is provided by the browser manufacturer, the browser can display its own web page as recommended content of the top page. The browser may not display the address bar when displaying its own web page.
Self-service web page: refers to a web page served by an own web server.
A third-party webpage server: refers to a web server provided by a third party vendor other than the vendor providing the browser, i.e., a web server in the conventional sense. When the browser displays the third-party webpage, the browser can display an address bar, and the address bar is displayed with the webpage address.
Third-party web pages: refers to a web page provided by a third-party web server.
Fig. 1 is a block diagram of an information recommendation system for a web page display process according to an exemplary embodiment of the present disclosure. The system comprises: a terminal 120 and a server 160. The terminal 120 and the server 160 are connected via the communication network 140.
The terminal 120 may be a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a desktop computer, and the like. Optionally, the terminal 120 has a touch screen, which is a normal touch screen, or a touch screen supporting floating touch, or a touch screen supporting pressure sensing. The terminal 120 has an operating system and at least one application installed therein. The operating system may be an Android (Android) operating system or an apple (IOS) operating system. The terminal 120 has installed and operated therein an application program, which is a browser program, or a non-browser application program having a web browsing function, which has a capability of calling a browser kernel.
The terminal 120 and the server 160 are connected via a communication network 140, where the communication network 140 may be a wired network or a WIreless network, the wired network may be a metropolitan area network, a local area network, a fiber network, or the like, and the WIreless network may be a mobile communication network or a WIreless Fidelity (WiFi).
The server 160 may be a server for extracting the target information, or may be a server for searching for the expanded information based on the target information. Wherein the server may be provided by a vendor that provides the browser or/and browser kernel.
Fig. 2 is a flowchart of an information recommendation method for a web page display process according to an exemplary embodiment of the present disclosure. The method can be applied to the terminal and is implemented by the execution of an application program in the terminal. The application program can be a browser or an application program with a web page browsing function, and the method comprises the following steps:
in step 101, the terminal displays a first user interface including a first webpage, wherein webpage content of the first webpage includes target information.
The terminal displays a first webpage on a first user interface. Optionally, the first webpage is an owned service webpage provided by an owned webpage server opened by a browser; optionally, the first webpage is a third-party webpage provided by a third-party server opened by a browser; optionally, the first webpage is an own service webpage or a third-party webpage opened by an application having a webpage browsing function.
The webpage content in the first webpage comprises target information, and the target information is representative information in the webpage content. The target information includes but is not limited to at least one of entity words, events, and topics. Entity words include, but are not limited to: at least one of a person name, a place name, a movie work name, a literary work name, a place, a merchant name, and a commodity name; the event refers to an event name extracted from a hot news webpage, wherein the hot news webpage is obtained by counting according to the user click rate and/or exposure rate of the news webpage on the network; the topic refers to a title or a subtitle of the web page content.
In step 102, the terminal receives a shortcut operation triggered on the first user interface, where the shortcut operation is used to trigger expanded search on target information.
The terminal receives shortcut operations triggered on the first user interface, wherein the shortcut operations include but are not limited to: at least one of a single-click operation, a long-press operation, a pressure touch operation, a multi-click operation, a floating touch operation, a double-finger touch operation, a finger joint double-click operation and a pull-down operation.
Wherein, the single-click operation is the operation of clicking the touch screen once; the long-press operation is an operation in which the duration of pressing the touch screen exceeds a first duration; the pressure touch operation is an operation that the pressing pressure exceeds a preset pressure value; the multi-click operation is an operation in which the number of clicks exceeds a predetermined number within a predetermined time; the suspension touch operation is an operation with the time length of suspending above the touch screen exceeding a second time length; the double-finger touch operation is an operation that a user clicks a touch screen simultaneously by using double fingers; the finger joint double-click operation is an operation of a user using a finger joint double-click touch screen; the pull-down operation is an operation in which the user presses the touch screen with a finger and drags down.
The terminal receives the shortcut operation triggered on the first user interface, triggers the terminal or carries out extended search on the target information through the server to obtain at least one type of extended information recommended based on the target information. And the terminal acquires at least one type of extension information recommended based on the target information and generates a second user interface according to the at least one type of extension information.
Optionally, after the terminal identifies the target information of the first webpage, a button control is also displayed on the first user interface, and a user can use at least one of a single-click operation, a long-press operation, a pressure touch operation, a multi-click operation and a floating touch operation as a shortcut operation on the button control; optionally, the terminal does not need to display a button control on the first user interface, and the user may use at least one of a double-finger touch operation, a finger joint double-click operation, and a pull-down operation as a shortcut operation on the first user interface.
In step 103, the terminal displays a second user interface on the first user interface in an overlapping manner, wherein the second user interface comprises at least one type of extension information recommended based on the target information.
And the terminal displays a second user interface generated according to the at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information.
Optionally, the terminal displays the second user interface on the first user interface in an overlapping manner in an area except for the title bar, or displays the second user interface on the first user interface in an overlapping manner in the entire area. Optionally, a function of displaying or hiding the second user interface may be implemented on the second user interface.
Referring schematically to fig. 3, the terminal displays a first user interface 11, the first user interface 11 comprising web page content of a first web page. The button control 12 is a control that is displayed on the first user interface 11 after the terminal recognizes target information in the web page content. When the terminal receives the shortcut operation on the button control 12, a second user interface 22 is displayed, where the second user interface 22 is extension information recommended based on the target information, and the extension information is displayed on the second user interface 22 in a card form with "target information + resource field" as a granularity.
Optionally, the second user interface includes at least two types of extension information displayed in a group by category, and the extension information is content information associated with the target information.
Categories of resource domains include, but are not limited to: encyclopedic information, question and answer community information, literature information, movie and television work information, hot news information, social network information, place information, merchant information and commodity information.
In summary, according to the information recommendation method provided by the present disclosure, in the process of browsing the web content of the first web page by the user, the second user interface including the at least one type of extended information is displayed after the shortcut operation is received on the first user interface, and the at least one type of extended information can be recommended to the user through one shortcut operation in the process of browsing the web content by the user, so that operation steps when the user manually searches for the extended information are reduced, the human-computer interaction efficiency is improved, and the browsing enhancement service is provided.
Based on the exemplary embodiment shown in fig. 2, the terminal may display the button control or not display the button control on the first user interface. For the case that the terminal displays the button control on the first user interface, the following description will be made through the information recommendation method provided by the exemplary embodiments shown in fig. 4, fig. 7, fig. 10, and fig. 12; for the case that the terminal does not display the button control on the first user interface, the information recommendation method provided by the exemplary embodiment shown in fig. 16 is explained.
Fig. 4 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, wherein the application program can be a browser or an application program with a web browsing function, and the method comprises the following steps:
in step 201, a first user interface including a first web page is displayed, and web page content of the first web page includes target information.
The terminal displays a first webpage on a first user interface. Optionally, the first webpage is an owned service webpage provided by an owned webpage server opened by a browser; optionally, the first webpage is a third-party webpage provided by a third-party server opened by a browser; optionally, the first webpage is an own service webpage or a third-party webpage opened by an application having a webpage browsing function.
The webpage content in the first webpage comprises target information, and the target information is representative words in the webpage content.
In step 202, upon confirming that the target information is identified, a button control is displayed on the first user interface.
After acquiring a first URL of a first webpage, a terminal sends the first URL of the first webpage to a server; the server receives a first URL of a first webpage and extracts target information in the first webpage according to the first URL; the server extracts the target information and sends an extraction confirmation signal to the terminal, wherein the extraction confirmation signal is used for indicating that the target information is extracted successfully. And after receiving the extraction confirmation signal, the terminal displays the button control on the first user interface.
Optionally, the terminal acquires the web page content of the first web page, and displays the button control on the first user interface after the terminal identifies the target information in the web page content.
In one possible implementation, the terminal displays a button control on the first user interface to the left or right of the address bar. The address bar is a field for displaying a web page address of the first web page.
Optionally, in the process of browsing the first webpage by the user, if the terminal receives a sliding operation on the first user interface, when the webpage content of the first webpage slides upwards, the address bar may be hidden. And when the address bar is hidden by sliding, displaying a button control on the edge area of the first user interface in an overlapping mode.
Optionally, a button control is displayed in superimposition on the top region on the first user interface.
In the two cases, after receiving at least one type of extension information recommended based on the target information, the terminal changes the button control from the first shape to the second shape, and summary information of the extension information is displayed on the button control in the second shape.
Optionally, the first shape has a first area, the second shape has a second area, the second area is larger than the first area, the button of the first shape is used for displaying a button name, and the button of the second shape is used for displaying summary information of the expanded information.
The first shape includes, but is not limited to: the shape of the eye, at least one of a circle, an ellipse, a square, a diamond, a lip. The second shape includes, but is not limited to: at least one of a circle, an ellipse, a square, a rounded rectangle, and a clipped rectangle.
Optionally, the summary information includes an information summary of the extension information, or the first m characters of the extension information, or a resource domain category to which the extension information belongs.
In another possible implementation manner, the terminal receives a trigger operation acting on the first webpage, wherein the trigger operation includes but is not limited to at least one of a long-press operation, a pressure touch operation, a double-finger press operation, a finger joint double-click operation, a floating touch operation and a multi-click operation; and displaying an auxiliary toolbar in an overlapping mode on the first user interface according to the triggering operation, wherein the auxiliary toolbar comprises a button control. Optionally, the auxiliary toolbar further includes at least one of a copy button control, a paste button control, a search button control, and a share button control.
In step 203, the trigger operation received on the button control is determined to be a shortcut operation.
The terminal receives a trigger operation on a button control on the first user interface, wherein the trigger operation comprises but is not limited to: at least one of long press operation, pressure touch operation, multi-click operation, floating touch operation and single click operation.
And determining the trigger operation as a shortcut operation, wherein the shortcut operation is used for triggering the second user interface to be displayed on the first user interface in a superposition mode.
In step 204, at least one type of extension information recommended based on the target information is obtained.
Optionally, the terminal acquires a first URL of the first webpage; sending the first URL of the first webpage to a server through a wireless network or a wired network; the server acquires target information in the first webpage according to the first URL; the server determines at least one resource field library corresponding to the target information, wherein the resource field library is constructed after information of an offline webpage library is extracted; the server inquires at least one type of extension information corresponding to the target information from at least one resource field, wherein each type of extension information corresponds to the respective resource field; and the server obtains at least one type of extension information recommended based on the target information and sends the at least one type of extension information to the terminal.
And the terminal receives at least one type of extension information recommended by the server based on the target information.
In step 205, a second user interface is generated according to at least one type of extension information.
Optionally, the terminal classifies at least one type of the extended information into different display areas according to the type of the resource field to which each extended information belongs, and then generates a second user interface.
Categories of resource domains include, but are not limited to: encyclopedic information, question and answer community information, literature information, movie and television work information, hot news information, social network information, place information, merchant information and commodity information.
In step 206, the upper half content of the second user interface is displayed superimposed on the lower half of the first user interface.
And the terminal displays the upper half content of the second user interface on the lower half part of the first user interface in a two-dimensional superposition mode. If the first user interface is divided into an upper half and a lower half according to a horizontal line in the center, the lower half refers to an interface area where all or most of the area is located in the lower half.
The upper half of the content refers to the content of the generated second user interface displayed on the upper half of the screen. The lower half refers to the lower half of the first user interface displayed on the screen.
In step 207, when the pull-up operation is received on the top half content, the second user interface is slid up and displayed superimposed on the first user interface.
The terminal receives a pull-up operation on the upper half content of the second user interface, the pull-up operation is an operation that a user touches the screen and generates a slide-up gesture on the screen, the second user interface slides upwards along with the pull-up operation, and finally the terminal displays the second user interface on the first user interface in a two-dimensional superposition mode.
Referring to fig. 5, the terminal displays the first user interface 11, and when target information in the web content of the first web page is recognized, the button control 12 is displayed on the first user interface 11. The terminal receives the shortcut operation triggered on the button control 12, and displays the upper half content 21 of the second user interface 22 on the lower half part of the first user interface 11 in an overlapping manner. The terminal receives a pull-up operation on the top half 21 of the second user interface 22, the second user interface 22 slides up, and finally the terminal displays the second user interface 22 superimposed on the first user interface 11.
As another possible implementation manner, the terminal further displays at least one type of extension information at the bottom of the first user interface. At this time, if the user does not trigger the display of the second user interface, at least one type of extension information may be viewed at the bottom of the first user interface. Referring schematically to fig. 6, the terminal displays extension information 23 at the bottom of the body of the web content, and the extension information 23 may be extension information that is ranked n top in relation to the target information.
In summary, according to the information recommendation method provided by the present disclosure, in the process of browsing the web content of the first web page by the user, the second user interface including the at least one type of extended information is displayed after the shortcut operation is received on the first user interface, and the at least one type of extended information can be recommended to the user through one shortcut operation in the process of browsing the web content by the user, so that operation steps when the user manually searches for the extended information are reduced, the human-computer interaction efficiency is improved, and the browsing enhancement service is provided.
In addition, when the terminal displays the recommended at least one type of extension information, the upper half content of the second user interface is displayed on the lower half part of the first user interface in an overlapping mode, and a user can browse the webpage content of the first webpage and the extension information on the second user interface, wherein the webpage content is included in the first user interface.
The information recommendation function may be referred to as various function names such as a fine search function, a quick search function, a discovery function, and the like, which is not limited in the present application.
Fig. 7 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, wherein the application program can be a browser or an application program with a web browsing function, and the method comprises the following steps:
in step 301, a first user interface including a first web page is displayed, the web page content of the first web page including target information.
The details of this step are shown in step 201.
In step 302, a first URL of a first web page is obtained.
The terminal acquires a first URL of a first webpage.
In step 303, the first URL of the first web page is sent to the server.
The terminal sends the first URL of the first webpage to the server through a wireless network or a wired network.
In step 304, upon confirming that the target information is identified, a button control is displayed on the first user interface to the left or right of the address bar.
The terminal sends a first URL of a first webpage to the server; the server receives a first URL of a first webpage and identifies target information in webpage content of the first webpage according to the first URL; the server identifies the target information and sends feedback information identifying the target information to the terminal; and the terminal receives feedback information identifying the target information and displays a button control on the left side or the right side of the address bar on the first user interface.
Optionally, after obtaining the web page content of the first web page, the terminal identifies target information in the web page content, and then displays the button control on the left side or the right side of the address bar on the first user interface.
Typically, when the browser opens the third-party web page, a rectangular address bar is displayed in the top area of the first user interface, and the address bar includes the URL of the third-party web page.
In step 305, at least one type of extension information fed back by the server is received.
The server searches related extended information according to the target information in the webpage content of the first webpage, obtains at least one type of extended information, and sends the at least one type of extended information to the terminal.
And the terminal receives at least one type of extension information fed back by the server.
In step 306, a button control is displayed in superimposition with an edge region of the first user interface when the address bar is slid hidden.
In the process of browsing the webpage by the user, the terminal receives a sliding operation on the first user interface, and when the first user interface slides upwards, the address bar may be hidden. And when the address bar is hidden by sliding, a button control is displayed in an edge area of the first user interface in an overlapping mode.
Optionally, this step need not be performed when the address bar is not or cannot be slide-hidden.
In step 307, the button control is changed from the first shape to a second shape, and summary information of the extended information is displayed on the button control of the second shape.
And after the terminal obtains at least one type of extended information, the button control is changed from the first shape to the second shape, and summary information of the extended information is displayed on the button control in the second shape.
Optionally, the first shape has a first area, the second shape has a second area, the second area is larger than the first area, the button of the first shape is used for displaying a button name, and the button of the second shape is used for displaying summary information of the expanded information.
The first shape includes, but is not limited to: the shape of the eye, at least one of a circle, an ellipse, a square, a diamond, a lip. The second shape includes, but is not limited to: at least one of a circle, an ellipse, a square, a rounded rectangle, and a clipped rectangle.
Optionally, the summary information includes an information summary of the extension information, or the first m characters of the extension information, or a resource domain category to which the extension information belongs.
Referring to fig. 8, the terminal displays a first user interface 31 including a first web page, the first user interface 31 including an address bar. When the server recognizes the target information, the terminal displays a button control 32 on the right side of the address bar of the first user interface 31. When the address bar is hidden by sliding, the button control 33 is displayed in an overlapping manner in the right edge area of the first user interface 31. The button control 33 is obtained by changing the button control 32 from a first shape to a second shape after the terminal obtains at least one type of extended information, and the control button 33 of the second shape may be a control button 34 displaying summary information of the extended information.
Optionally, the button control (or the button control in the second state) may be changed in position by selecting a dragging operation, and when the distance between the button control and the edge area is smaller than a preset minimum distance, the button control enters the semi-hidden state. Referring to fig. 9 schematically, a user selects the button control 33 in the second shape in the right edge region, and drags the button control 33 to the left edge region, and when the distance between the button control and the edge region is smaller than a preset minimum distance, the button control 33 displays a button control 35 in a semi-hidden state, which is referred to as an adsorption function for short.
This step is an optional step, and the shape of the button control can also be kept unchanged.
In step 308, the trigger operation received on the button control is determined to be a shortcut operation.
The terminal receives a triggered shortcut operation on the button control, wherein the shortcut operation comprises at least one of but not limited to a single click operation, a long press operation, a pressure touch operation and a multi-click operation. The shortcut operation is used to trigger display of a second user interface.
In step 309, a second user interface is generated according to the at least one type of extension information.
And after the terminal receives the shortcut operation, generating a second user interface according to at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information. The content information on the second user interface includes, but is not limited to: and target information corresponding to the extension information, the affiliated resource field and the summary information.
In step 310, the upper half content of the second user interface is displayed in superposition on the lower half of the first user interface.
The details of this step are detailed in step 206.
In step 311, when the top half content receives the pull-up operation, the second user interface is slid up and displayed superimposed on the first user interface.
The details of this step are detailed in step 207.
In summary, according to the information recommendation method provided by the present disclosure, in the process of browsing the web content of the first web page by the user, the second user interface including the at least one type of extended information is displayed after the shortcut operation is received on the first user interface, and the at least one type of extended information can be recommended to the user through one shortcut operation in the process of browsing the web content by the user, so that operation steps when the user manually searches for the extended information are reduced, the human-computer interaction efficiency is improved, and the browsing enhancement service is provided.
In addition, when the terminal displays the recommended at least one type of extension information, the upper half content of the second user interface is displayed on the lower half part of the first user interface in an overlapping mode, and a user can browse the webpage content of the first webpage and the extension information on the second user interface, wherein the webpage content is included in the first user interface.
In the embodiment, the terminal displays the button control in the address bar, so that the shielding of the content information on the first user interface is avoided. The terminal can also change the shape of the button control and display the summary information of the extended information, so that the user can know the type of the extended information under the condition that the second user interface is not opened, and the reference is provided for the user to decide whether to open the second user interface.
Fig. 10 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, and the application program can be a browser or an application program with a web page browsing function.
Illustratively, if the first web page opened by the browser is not a third-party web page, but is an owned services web page, and since the owned services web page would not normally display an address bar on the first user interface, the terminal would display a button control in the top area of the first user interface, step 304 in the exemplary embodiment shown in FIG. 7 could be replaced with step 404 and step 306 would not be present, as shown in FIG. 10:
in step 404, upon identifying the target information, a button control is displayed in a top area on the first user interface.
The terminal sends webpage content of a first webpage to the server; the server receives webpage content of a first webpage and identifies target information in the webpage content; the server identifies the target information and sends feedback information identifying the target information to the terminal; the terminal receives feedback information identifying the target information and displays a button control in a top area on the first user interface.
Optionally, after obtaining the web page content of the first web page, the terminal identifies target information in the web page content, and then displays the button control in the top area on the first user interface.
As an alternative implementation, the terminal may also display a button control, which may be in the form of a bubble, superimposed on the web page content of the first web page.
After step 305, step 307 is entered directly to change the button control from the first shape to the second shape.
Referring to fig. 11 schematically, the terminal displays a first user interface 11, where a first webpage included in the first user interface 11 is a self-service webpage, and when target information in webpage content of the first webpage is identified, a button control 12 is displayed on the first user interface 11. After the terminal obtains at least one type of extended information, the button control 12 is changed from a first shape to a second shape, such as a control button 41, and the control button 41 includes a text bubble displaying summary information of the extended information, namely 'relevant content detected accurately'.
In summary, according to the information recommendation method provided by the present disclosure, in the process of browsing the web content of the first web page by the user, the second user interface including the at least one type of extended information is displayed after the shortcut operation is received on the first user interface, and the at least one type of extended information can be recommended to the user through one shortcut operation in the process of browsing the web content by the user, so that operation steps when the user manually searches for the extended information are reduced, the human-computer interaction efficiency is improved, and the browsing enhancement service is provided.
In addition, when the terminal displays the recommended at least one type of extension information, the upper half content of the second user interface is displayed on the lower half part of the first user interface in an overlapping mode, and a user can browse the webpage content of the first webpage and the extension information on the second user interface, wherein the webpage content is included in the first user interface.
In the above embodiment, the terminal displays the button control in the top area of the first user interface, so that the blocking of the content information on the first user interface is avoided. The terminal can also change the shape of the button control and display the summary information of the extended information, so that the user can know the type of the extended information under the condition that the second user interface is not opened, and the reference is provided for the user to decide whether to open the second user interface.
Fig. 12 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, wherein the application program can be a browser or an application program with a web browsing function, and the method comprises the following steps:
in step 501, a first user interface including a first web page is displayed, the web page content of the first web page including target information.
The details of this step are shown in step 201.
In step 502, a first URL of a first web page is obtained.
The terminal acquires a first URL of a first webpage.
In step 503, the web page content of the first web page is sent to the server.
The terminal sends the first URL of the first webpage to the server through a wireless network or a wired network.
In step 504, a trigger operation acting on the first webpage is received, where the trigger operation includes at least one of a long press operation, a pressure touch operation, a double-finger press operation, a finger joint double-click operation, a floating touch operation, and a multi-click operation.
The triggering operation is used to trigger display of the button control on the first user interface, since the first user interface including the first web page is displayed by the application having the web browsing function and the button control cannot be automatically displayed.
In step 505, an auxiliary toolbar is displayed on the first user interface in an overlaying mode according to the triggering operation, wherein the auxiliary toolbar comprises a button control.
And the terminal superposes and displays an auxiliary toolbar on a local area of the first user interface according to the triggering operation, wherein the auxiliary toolbar comprises a button control. The local area includes, but is not limited to, the adjacent area of the interface area that receives the trigger operation.
Referring to fig. 13, a trigger operation is received on the "article content" of the first user interface 51, and the terminal displays an auxiliary toolbar 52 in a local area in an overlapping manner, where the auxiliary toolbar 52 includes a button control 53. Alternatively, referring to fig. 14, the terminal displays an auxiliary toolbar 54 in a partial area in an overlapping manner, and the auxiliary toolbar 54 includes a button control 55. In fig. 13 and 14, when the terminal receives at least one type of extension information, the button control 62 of the second shape is displayed on the first user interface 61, and the button control 62 is in a semi-hidden state.
In step 506, the trigger operation received on the button control is determined to be a shortcut operation.
The terminal receives a triggered shortcut operation on the button control, wherein the shortcut operation comprises at least one of but not limited to a single click operation, a long press operation, a pressure touch operation and a multi-click operation. The shortcut operation is used for triggering and displaying a second user interface generated according to at least one type of extension information.
In step 507, at least one type of extension information fed back by the server is received.
The server searches related extended information according to the target information in the webpage content of the first webpage, obtains at least one type of extended information, and sends the at least one type of extended information to the terminal.
And the terminal receives at least one type of extension information fed back by the server.
In step 508, a second user interface is generated according to the at least one type of extended information.
And after the terminal receives the shortcut operation, generating a second user interface according to at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information. The content information on the second user interface includes, but is not limited to: and target information corresponding to the extension information, the affiliated resource field and the summary information.
In step 509, the terminal displays a second user interface on the first user interface in an overlapping manner, wherein the second user interface includes at least one type of extension information recommended based on the target information.
And the terminal displays a second user interface generated according to the at least one type of extension information. The extension information is related information of at least one type of resource domain associated with the target information.
Optionally, the second user interface includes at least two types of extension information displayed in a group by category, and the extension information is content information associated with the target information.
Categories of resource domains include, but are not limited to: encyclopedic information, question and answer community information, literature information, movie and television work information, hot news information, social network information, place information, merchant information and commodity information.
Optionally, the terminal displays the second user interface on the first user interface in an overlapping manner in an area except for the title bar, or displays the second user interface on the first user interface in an overlapping manner in the entire area. Optionally, a function of displaying or hiding the second user interface may be implemented on the second user interface.
Referring to fig. 15, when the terminal receives a shortcut operation on a button control, the second user interface 22 is displayed, and the second user interface 22 is extension information recommended based on target information, which is displayed on the second user interface 22 in the form of a card with the target information + resource field as a granularity.
In summary, according to the information recommendation method provided by the present disclosure, in the process of browsing the web content of the first web page by the user, the second user interface including the at least one type of extended information is displayed after the shortcut operation is received on the first user interface, and the at least one type of extended information can be recommended to the user through one shortcut operation in the process of browsing the web content by the user, so that operation steps when the user manually searches for the extended information are reduced, the human-computer interaction efficiency is improved, and the browsing enhancement service is provided.
In addition, the method enables the user to obtain the extension information through two interactive behaviors with the terminal when browsing the webpage opened in the application program with the webpage browsing function.
Fig. 16 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The method provided by the embodiment can be applied to an application program of a terminal, and the application program can be a browser or an application program with a web page browsing function.
It should be noted that, in the application with the web browsing function, the user may trigger to display the second user interface generated according to at least one type of extended information through a pull-down operation, and then step 504, step 505, and step 506 in the exemplary embodiment shown in fig. 12 may be combined and replaced with step 604, as shown in fig. 16:
in step 604, a drag operation toward a preset direction on the first user interface is received, and the drag operation is determined as a shortcut operation.
Optionally, if the application is a third-party non-browser program that invokes a browser kernel to implement a web browsing function, since the first user interface is displayed by the application having the web browsing function, the browser kernel cannot directly display the button control on the first user interface, so that the browser kernel can trigger to display the second user interface by receiving a dragging operation.
The preset direction includes: at least one of an upward direction, a downward direction, a leftward direction, and a rightward direction. Taking the downward direction as an example, the pull-down operation is an operation in which a touch event occurs on the first user interface and a trigger function is realized by a slide operation on the terminal screen.
Referring to fig. 17, when the terminal receives a drag operation on the first user interface 61, which is determined as a shortcut operation, the user interface 63 of the middle course is displayed. After the drag operation is ended, the user interface 63 jumps to the second user interface 22. Finally, the terminal displays the second user interface 22.
Optionally, the second user interface includes at least two types of extension information displayed in a group by category, and the extension information is content information associated with the target information.
Categories of resource domains include, but are not limited to: encyclopedic information, question and answer community information, literature information, movie and television work information, hot news information, social network information, place information, merchant information and commodity information.
Referring to fig. 18 schematically, the second user interface shown in fig. 18 includes extended information obtained by exploring according to the target information "zhangyao star zhao, zhanghaojian li and" sichuan chafing dish ", wherein the extended information includes information in various resource field categories of encyclopedics, movies, questions and answers and comments.
In summary, according to the information recommendation method provided by the present disclosure, in the process of browsing the web content of the first web page by the user, the second user interface including the at least one type of extended information is displayed after the shortcut operation is received on the first user interface, and the at least one type of extended information can be recommended to the user through one shortcut operation in the process of browsing the web content by the user, so that operation steps when the user manually searches for the extended information are reduced, the human-computer interaction efficiency is improved, and the browsing enhancement service is provided.
In addition, the method enables the user to obtain the extension information through one-time interaction with the terminal when browsing the webpage opened in the application program with the webpage browsing function.
Fig. 19 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The embodiment is exemplified by applying the method to the server shown in fig. 1. The method comprises the following steps:
in step 701, a first URL of a first webpage sent by a terminal is received, where the first URL is sent by the terminal after a first user interface is displayed, and the first user interface includes the first webpage.
The server receives a first URL of a first webpage sent by the terminal. Optionally, the terminal sends the first URL and/or the target information of the first webpage to the server, and the server receives the first URL and/or the target information of the first webpage.
Alternatively, the web page content is a file written in HTML. The web page content includes at least one of text, pictures, audio, video, code, and scripts.
In step 702, target information is extracted from web page content of a first web page.
The server performs text processing on the text of the webpage content of the first webpage to acquire target information in the webpage content. The target information is representative information of the contents of the web page. The target information includes but is not limited to: entity words, event names, and topics. Entity words include, but are not limited to: at least one of a person name, a place name, a movie work name, a literary work name, a place, a merchant name, and a commodity name; the event refers to an event name extracted from a hot news webpage, wherein the hot news webpage is obtained by counting according to the user click rate and/or exposure rate of the news webpage on the network; the topic refers to the title or sub-title of a web page.
Optionally, the server performs word segmentation processing on the webpage content of the first webpage, and performs part-of-speech tagging on a word segmentation result; and filtering the word segmentation result according to the part-of-speech tagging result, for example, filtering words with target part-of-speech in the word segmentation result according to the part-of-speech tagging result by the server, wherein the target part-of-speech comprises at least one of adjectives, distinct words, numerics, quantifiers, adverbs, pronouns, prepositions, conjunctions, auxiliary words, sighs and vocabularies. The server extracts the target information from the filtered words.
Optionally, after the server successfully extracts the target information from the web page content, an extraction success signal may be sent to the terminal, where the extraction success signal is used to indicate to the terminal that the target information in the first web page has been successfully extracted.
In step 703, at least one resource domain library corresponding to the target information is determined, where the resource domain library is constructed by extracting information from the offline webpage.
Optionally, the server stores or is connected with at least one resource domain library in advance. Each resource field library corresponds to respective resource category, and each resource field library is constructed by acquiring webpages on each website through a server, storing the webpages off line, and extracting information of the off-line webpages. Resource categories of the resource domain library include, but are not limited to: at least one of character encyclopedias, geographic encyclopedias, event encyclopedias, question and answer libraries, topic circles, various vertical domain websites, various vertical domain forums, various vertical domain channels, microblogs and social networking websites.
Optionally, the server stores a corresponding relationship between the target information and the resource domain library. Or the server stores the corresponding relation between the part of speech of the target information and the resource field library. Table one schematically shows the correspondence.
Watch 1
Optionally, after the server determines the target information, the server queries the detail data of the target information. The detail data comprises at least one type of data in entity word classification, event associated articles and event process set. And then, the server determines a resource field library corresponding to the target information according to the detail data of the target information.
The present embodiment does not limit the form in which the server determines the resource domain library corresponding to the target information.
In step 704, at least one type of extended information corresponding to the target information is queried from at least one resource domain library, where each type of extended information corresponds to a respective resource domain.
After the resource field library corresponding to the target information is determined, the server inquires the extension information corresponding to the target information in each resource field library, and takes the extension information inquired in each resource field library as one type of extension information. That is, each type of extension information corresponds to a respective resource domain (or resource domain, or resource category of resource domain).
For example, if the target information is star a, the server queries encyclopedia information corresponding to star a in the person encyclopedia as first-type extension information; inquiring question-answer information corresponding to the star A in a question-answer library as second type of extension information; inquiring topic information corresponding to the star A in the topic ring as third-class extension information; and inquiring the forum post corresponding to the star A in the star forum as a fourth type of extension information, and the like, which are not described in detail.
In step 705, at least one type of extension information is transmitted to the terminal.
And after inquiring at least one type of extended information corresponding to the target information, the server sends the at least one type of extended information to the terminal.
In summary, in the information recommendation method for a webpage display process provided in the embodiment of the present disclosure, by receiving the webpage content of the first webpage sent by the terminal, the webpage content is sent after a shortcut operation triggered by the terminal on the received first user interface, where the first user interface includes the first webpage; extracting target information from the webpage content of the first webpage; determining at least one resource field library corresponding to the target information, wherein the resource field library is constructed after information of an offline webpage library is extracted; at least one type of extended information corresponding to the target information is inquired from at least one resource field, and each type of extended information corresponds to the respective resource field; and sending at least one type of extension information to the terminal. The method intelligently recommends the related content of the browsed webpage content for the user, reduces the steps of manually inquiring the related content by the user, and provides the enhanced browsing service.
In addition, the information recommendation method in the embodiment of the present disclosure constructs the resource domain library by obtaining the offline webpage information, so that the terminal can obtain the extension information in a very short time, which is schematically shown in the related art, in case that it takes 10 seconds for the terminal to obtain the extension information through online query, the terminal can obtain the extension information from the resource domain library in 1 second or several seconds by caching the offline webpage information in the method.
In an alternative embodiment based on fig. 19, the server continuously collects and extracts the offline webpages to obtain the resource domain library. Reference is made to the following examples for illustrative purposes.
Fig. 20 is a flowchart of an information recommendation method of a web page display process according to another exemplary embodiment of the present disclosure. The embodiment is exemplified by applying the method to the server shown in fig. 1. The method comprises the following steps:
a pretreatment stage: and an offline webpage collecting and processing stage.
In step 801, offline webpage information is obtained, where the offline webpage information includes a correspondence between a URL and webpage content.
The server sends pushing requests to various website servers. After receiving the push request, various website servers regularly push various webpages to the server; or pushing a new webpage to the server after the new webpage exists.
Optionally, each website server sends the correspondence between the URL and the web page content to the server. Table two schematically shows the correspondence.
Watch two
| URL | Web page content |
| URL1 | News web content 1 |
| URL2 | Question and answer web page content 2 |
| URL3 | Topic circle content 1 |
| URL4 | Forum post 1 |
In step 802, redundant information in the URL is filtered to obtain a normalized URL; the redundant information is information in the URL which is irrelevant to the content of the pointed webpage.
Generally, the URLs sent by various types of web servers include: valid information relating to the content of the pointing web page, and information not relating to the content of the pointing web page. Information not related to pointing to web page content includes, but is not limited to: login information of the terminal, user account information, the current connection key and the like. Information that is not relevant to pointing to web page content may be referred to simply as redundant information.
And for the URL of each off-line webpage, the server removes redundant information in the URL to obtain a normalized URL. Optionally, the normalized URL only includes valid information related to pointing to the web page content.
In step 803, target information is extracted from the web page content.
For the webpage content of each offline webpage, the server extracts target information in the webpage content.
Optionally, the server performs text processing on a text in the web page content of the offline web page to obtain target information in the web page content. The target information is representative information of the contents of the web page. The target information includes but is not limited to: entity words, event names, and topics. Entity words include, but are not limited to: at least one of a person name, a place name, a movie work name, a literary work name, a place, a merchant name, and a commodity name; the event refers to an event name extracted from a hot news webpage, wherein the hot news webpage is obtained by counting according to the user click rate and/or exposure rate of the news webpage on the network; the topic refers to the title or sub-title of a web page.
Optionally, the server performs word segmentation processing on the webpage content of the offline webpage, and performs part-of-speech tagging on the word segmentation result; and filtering the word segmentation result according to the part-of-speech tagging result, for example, filtering words with target part-of-speech in the word segmentation result according to the part-of-speech tagging result by the server, wherein the target part-of-speech comprises at least one of adjectives, distinct words, numerics, quantifiers, adverbs, pronouns, prepositions, conjunctions, auxiliary words, sighs and vocabularies. The server extracts the target information from the filtered words.
In step 804, a resource domain library corresponding to the target information is determined.
Optionally, the server is preset or connected with at least one resource domain pool (the initial state may be empty). Each resource domain pool corresponds to a respective resource category. Resource categories of the resource domain library include, but are not limited to: at least one of character encyclopedias, geographic encyclopedias, event encyclopedias, question and answer libraries, topic circles, various vertical domain websites, various vertical domain forums, various vertical domain channels, microblogs and social networking websites.
Optionally, the server stores a corresponding relationship between the target information and the resource domain library. Or the server stores the corresponding relation between the part of speech of the target information and the resource field library.
The present embodiment does not limit the form in which the server determines the resource domain library corresponding to the target information.
In step 805, the URL, target information, and web page content are added to the resource domain library.
For each offline web page, the URL, target information, and web page content of the offline web page are added to the resource domain library. Alternatively, the URL of the offline web page is stored as a key, and the target information and the web page content are stored as values. In some embodiments, the web content is processed web content.
Optionally, the server stores the correspondence between the URL, the target information, and the web page content in the resource domain library of the corresponding category.
Optionally, the collection and processing of the offline web pages is continuously performed or performed periodically.
And (3) information searching and information recommending stage:
in step 806, a first URL of the first webpage sent by the terminal is received, where the first URL is sent by the terminal after the first user interface is displayed, and the first user interface includes the first webpage.
The server receives a first URL of a first webpage sent by the terminal. Optionally, the terminal sends the first URL and/or the target information of the first webpage to the server, and the server receives the first URL and/or the target information of the first webpage.
Optionally, the server filters the first URL to obtain a normalized first URL.
Optionally, the web page content of the first web page is a file written in HTML. The web page content of the first web page includes at least one of text, pictures, audio, video, code, and scripts.
In step 807, target information is extracted from the web page content of the first web page.
The processing procedure in this step may refer to the processing procedure in step 703, and is not described in detail in this embodiment.
Optionally, the server further detects whether the first URL exists in each resource domain library; when the first URL does not exist in any resource domain library, the step 808 is carried out, and then the step 809 is carried out; when there is at least one resource domain pool for the first URL, step 809 is entered directly.
In step 808, when the first URL does not exist in the resource domain library, the first URL, the target information, and the web page content are added to the resource domain library.
When the first URL does not exist in any resource domain library, it indicates that the server does not include the web page content related to the first URL, and the server may add the first URL, the target information, and the web page content to the resource domain library.
In step 809, at least one resource domain library corresponding to the target information is queried in a correspondence relationship, where the correspondence relationship includes a correspondence relationship between the target information and the resource domain library.
Optionally, the server stores a corresponding relationship between the target information and the resource domain library. Or the server stores the corresponding relation between the part of speech of the target information and the resource field library. The above table one schematically shows the correspondence.
The server determines at least one resource domain library corresponding to the target information in the corresponding relationship.
In step 810, at least one type of extended information corresponding to the target information is queried from at least one resource domain library, where each type of extended information corresponds to a respective resource domain.
After the resource field library corresponding to the target information is determined, the server inquires the extended information related to the target information in each resource field library, and takes the extended information inquired in each resource field library as one type of extended information. That is, each type of extension information corresponds to a respective resource domain (or resource domain, or resource category of resource domain).
For example, if the target information is star a, the server queries encyclopedia information corresponding to star a in the person encyclopedia as first-type extension information; inquiring question-answer information corresponding to the star A in a question-answer library as second type of extension information; inquiring topic information corresponding to the star A in the topic ring as third-class extension information; and inquiring the forum post corresponding to the star A in the star forum as a fourth type of extension information, and the like, which are not described in detail.
Optionally, the extended information associated with the target information includes, but is not limited to: extended information having a degree of similarity to the target information, extended information having a correlation with attribute information of the target information, extended information having a correlation with a target information presence event, extended information having a time correlation with the presence of the target information, and extended information having a region correlation with the presence of the target information.
Alternatively, the searched extension information is also referred to as recalled extension information.
In step 811, the attribute parameters corresponding to the recalled at least two types of extension information are obtained.
Since the number of pieces of extension information recalled by the server may be multiple, the terminal only needs to display a limited number of pieces of extension information. Therefore, the server may sort each type or each piece of extension information and then feed back the extension information sorted in the top n bits to the terminal.
Optionally, the server obtains an attribute parameter corresponding to each piece of extension information, where the attribute parameter includes at least one of a correlation between the extension information and the target information, a click exposure ratio of the extension information, and a correlation between the extension information and a user portrait of the terminal.
Optionally, the correlation between each web page content and the target information in the resource domain library is pre-calculated, for example, using TF-IDF (term frequency-inverse text frequency index) to calculate each web page content and the target information.
Optionally, the click exposure ratio of the extension information refers to a ratio of the extension information to be clicked and viewed by the user after being recommended to the user. For example, after the expanded information is pushed to 100 persons, if 76 persons perform click review on the expanded information, the click exposure proportion of the expanded information is 76%. The click exposure proportion is recorded by the server in an accumulated way, or the click exposure proportion is pushed to the server by various website servers.
In step 812, for each class or each extension information, a quality score of the extension information is calculated according to the attribute parameters of the extension information.
Optionally, each attribute parameter corresponds to a respective weight. And for each piece of extended information, calculating the weight sum of the extended information as the quality score of the extended information according to the attribute parameters and the respective weights of the extended information.
In step 813, at least one type of extension information to be recommended is screened out according to the quality score.
Optionally, the server sorts the extension information according to the quality scores, and screens out at least one type of extension information to be recommended to the terminal from the extension information sorted at the top n bits. Each type of extension information comprises at least one piece of extension information.
Optionally, the specific number of classes and pieces of extension information is configurable. Alternatively, the number of classes and the number of pieces of the extension information are dynamically determined according to the capability of the terminal, such as the screen size and the resolution of the terminal.
In step 814, at least one type of extension information is transmitted to the terminal.
Optionally, the server feeds back at least one type of extension information to the terminal. The extended information is used for generating and displaying a second user interface by the terminal.
In summary, in the information recommendation method provided in this embodiment, the web content of the first web page sent by the terminal is received, where the web content is sent after a shortcut operation triggered by the terminal on the received first user interface, and the first user interface includes the first web page; extracting target information from the webpage content of the first webpage; determining at least one resource field library corresponding to the target information, wherein the resource field library is constructed after information of an offline webpage library is extracted; at least one type of extended information corresponding to the target information is inquired from at least one resource field, and each type of extended information corresponds to the respective resource field; and sending at least one type of extension information to the terminal. The method intelligently recommends the related content of the browsed webpage content for the user, reduces the steps of manually inquiring the related content by the user, and provides the enhanced browsing service.
In an illustrative example, fig. 21 is a flowchart illustrating an offline data extraction process in an information recommendation method for a web page display process according to an exemplary embodiment of the present disclosure. The embodiment is exemplified by applying the method to the server shown in fig. 1. The process comprises the following steps:
in step 1001, the execution flow is started.
In step 1002, various news websites request push.
The server obtains off-line webpage information of various news websites, wherein the off-line webpage information comprises a corresponding relation between the URL and webpage content.
In step 1003, the URL flush unifies.
The server cleans redundant information in the URL to obtain a normalized URL; the redundant information is information in the URL which is irrelevant to the content of the pointed webpage.
In step 1004, web page content is extracted.
And acquiring the webpage content of the offline webpage from the terminal.
In step 1005, the text extracts the core concept data.
The terminal extracts core concept data, which is also called target information, from the web page content of the offline web page.
In step 1006, the website and core concept data are cached and stored.
And the terminal caches the website and the core concept information of the target information to a resource field library.
And the terminal determines a resource field library corresponding to the target information, and adds the URL, the target information and the webpage content to the corresponding resource field library.
In step 1007, the above flow ends.
In an exemplary example, fig. 22 is a flowchart of an information recommendation method of a web page display process according to an exemplary embodiment of the present disclosure. The embodiment is exemplified by applying the method to the server shown in fig. 1. The method comprises the following steps:
in step 1101, a user opens a web page initiation request.
And after the user opens the first webpage, sending an information recommendation request to the server. Optionally, the information recommendation request includes a URL of the first web page and web page content of the first web page. In some embodiments, the information recommendation request may include only the URL of the first webpage, and the server obtains the webpage content of the first webpage according to the URL.
In step 1102, the URL is cleaned for normalization.
And the server cleans the redundant information in the first URL to obtain the normalized URL. The redundant information is information which is irrelevant to pointing to the webpage content in the first URL.
In step 1103, the pre-stored data is read.
The server also extracts core concept data from the first webpage content, and reads prestored data from the cached offline data according to the core concept data. The core concept data is also the target information mentioned in the above embodiments.
In step 1104, it is determined whether the pre-stored data is hit.
Judging whether data corresponding to the first URL exists in the offline data or not; if not, go to step 1105; if so, proceed to step 1106.
In step 1105, data extraction is triggered.
Since the server does not record the web content corresponding to the first URL, the server extracts the offline data from the web content corresponding to the first URL.
In step 1106, the knowledge-graph queries the core concept data for association information.
Alternatively, the knowledge graph is a network relationship graph obtained by connecting all different kinds of information together. That is, the server connects the core concept data and the category (part of speech category or entity word category) of the core concept data together to form the knowledge graph.
In step 1107, according to the type of the core concept information and the detailed data in the type, the specified domain resource is distributed and acquired.
And the server is used for determining the type of the core concept information in the first webpage and the detail data under the type. And determining the designated domain resource corresponding to the core concept information. The specified domain resources are also the resource domain library corresponding to the core concept information.
That is, the server determines resource domain libraries corresponding to the core concept information, and determines these resource domain libraries as the designated domain resources.
In step 1108, a specified domain resource is retrieved, the specified domain resource including, but not limited to, at least one of a consulting resource, a topic circle resource, an automobile article resource.
In one illustrative example, the resource domain repositories include a plurality of different categories of resource domain repositories including consulting resources, topic circle resources, automotive article resources, and the like. The server searches for extended information corresponding to the core concept information in the designated domain resource.
Optionally, the server makes the retrieved extension information as recalled extension information.
In step 1109, quality assessment of the resource relevance, etc. index is recalled.
Optionally, the server calculates a quality score of each resource through correlation between the recalled resource and the core concept data, click exposure proportion of the resource, and correlation between the resource and the user portrait, and performs quality evaluation according to the quality score of each resource.
Then, the server determines the resources ranked at the top n as the resources to be recommended to the terminal.
In step 1110, the word + resource field is used as the granularity to compose the UI card output display.
And the server sends the recalled resources to the terminal in the form of 'core concept information + resource field + extended information'. The terminal forms each type of resource into a UI card according to the granularity of 'core concept information + resource field', and generates each UI card into a second user picture (or adds the second user picture to the webpage content of the first webpage) to be output and displayed for further reference of the user.
The following are device embodiments of the present application, and for details that are not described in detail in the device embodiments, reference may be made to corresponding descriptions in the above method embodiments, which are not described in detail herein.
Fig. 23 is a block diagram of an information recommendation apparatus for a web page display process according to an exemplary embodiment of the present disclosure. The apparatus may be implemented as all or a portion of the terminal in software, hardware, or a combination of both. The device includes:
a display module 1220, configured to display a first user interface including a first webpage, where the first webpage includes target information;
the interaction module 1240 is configured to receive a shortcut operation triggered on the first user interface, where the shortcut operation is used to trigger expanded search on target information;
the display module 1220 is configured to display a second user interface on the first user interface in an overlapping manner, where the second user interface includes at least one type of extension information recommended based on the target information.
In an alternative embodiment, the display module 1220 is configured to display a button control on the first user interface after the target information is identified;
and the interaction module 1240 is used for determining the trigger operation received on the button control as a shortcut operation.
In an alternative embodiment, the display module 1220 is configured to display button controls on the left or right side of the address bar on the first user interface.
In an alternative embodiment, the display module 1220 is configured to display the button control in an edge region of the first user interface in an overlapping manner when the address bar is hidden by sliding.
In an alternative embodiment, the display module 1220 is configured to overlay a display button control on a top area of the first user interface, or overlay a display button control on web page content of the first web page.
In an alternative embodiment, the display module 1220 is configured to change the button control from a first shape to a second shape, and the second shape of the button control has summary information of the extended information displayed thereon.
In an optional embodiment, the interaction module 1240 is configured to receive a trigger operation applied to the first web page, where the trigger operation includes at least one of a long-press operation, a pressure touch operation, a double-finger press operation, a finger joint double-click operation, a hover touch operation, and a multi-click operation;
the display module 1220 is configured to display an auxiliary toolbar in an overlapping manner on the first user interface according to the trigger operation, where the auxiliary toolbar includes a button control.
In an alternative embodiment, the interaction module 1240 is configured to receive a drag operation on the first user interface in a preset direction, and determine the drag operation as a shortcut operation; wherein, preset the direction and include: at least one of an upward direction, a downward direction, a leftward direction, and a rightward direction.
In an alternative embodiment, the display module 1220 includes:
an obtaining sub-module 1201, configured to obtain at least one type of extension information recommended based on the target information;
a generating sub-module 1202, configured to generate a second user interface according to at least one type of extension information;
a display module 1220, configured to display the upper half content of the second user interface in a superimposed manner on the lower half of the first user interface; when a pull-up operation is received on the upper half content, the second user interface is slid upward and displayed superimposed on the first user interface.
In an optional embodiment, the second user interface comprises at least two types of extension information which are displayed in a grouping mode according to categories, and the extension information is content information associated with the target information;
the above categories include: encyclopedic information, question and answer community information, literature information, movie and television work information, hot news information, social network information, place information, merchant information and commodity information.
In an optional embodiment, the apparatus further comprises:
an obtaining module 1260, configured to obtain at least one type of extension information recommended based on the target information;
the display module 1220 is configured to display at least one type of extended information at the bottom of the web page content of the first web page in the first user interface.
In an optional embodiment, the obtaining sub-module 1201 includes:
a sending unit 121, configured to send a first uniform resource identifier URL of a first web page to a server;
a receiving unit 122, configured to receive at least one type of extension information fed back by the server.
Fig. 24 is a block diagram of an information recommendation apparatus for a web page display process according to another exemplary embodiment of the present disclosure. The apparatus may be implemented as all or part of a server in software, hardware, or a combination of both. The device includes:
the receiving module 1301 is configured to receive a first uniform resource identifier URL of a first webpage sent by a terminal, where the first URL is sent by the terminal after a first user interface is displayed, and the first user interface includes the first webpage.
The extracting module 1302 is configured to obtain target information in the first webpage according to the first URL.
And the determining module 1303 is configured to determine at least one resource field library corresponding to the target information, where the resource field library is constructed by extracting information from an offline webpage library.
A query module 1304, configured to query at least one type of extended information corresponding to the target information from at least one resource field, where each type of extended information corresponds to a respective resource field.
A sending module 1305, configured to send at least one type of extension information to the terminal.
In an optional embodiment, the determining module 1303 is configured to query at least one resource domain library corresponding to the target information in the corresponding relationship, where the corresponding relationship includes a corresponding relationship between the target information and the resource domain library.
In an optional embodiment, the query module 1304 further includes:
the obtaining sub-module 131 is configured to obtain attribute parameters corresponding to at least two types of recalled extension information, where the attribute parameters include: at least one of a correlation between the extension information and the target information, a click exposure ratio of the extension information, and a correlation between the extension information and a user portrait of the terminal;
the calculating submodule 132 is configured to calculate, for each type or each piece of extended information, a quality score of the extended information according to the attribute parameter of the extended information;
the filtering submodule 133 is configured to filter out at least one type of extension information to be recommended according to the quality score.
In an optional embodiment, the apparatus further comprises:
an obtaining module 1306, configured to obtain offline webpage information, where the offline webpage information includes a correspondence between a uniform resource identifier URL and webpage content;
an extracting module 1302, configured to extract target information from the web page content;
a determining module 1303, configured to determine a resource domain library corresponding to the target information;
and the cache module 1307 is configured to add the URL, the target information, and the web page content to the resource domain library.
In an optional embodiment, the apparatus further comprises:
a filtering module 1308, configured to filter redundant information in the URL to obtain a normalized URL; the redundant information is information in the URL which is irrelevant to the content of the pointed webpage.
In an alternative embodiment of the method according to the invention,
a receiving module 1301, configured to receive a first URL of a first webpage sent by a terminal;
the cache module 1307 is configured to, when the first URL does not exist in the resource domain library, obtain the web page content of the first web page according to the first URL; extracting target information of a first webpage from webpage content of the first webpage; and adding the first URL, the target information of the first webpage and the webpage content into the resource domain library.
Fig. 25 shows a block diagram of an electronic device 2400 provided in an exemplary embodiment of the present application. The electronic device 2400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group audio Layer III, motion Picture Experts compression standard audio Layer 3), an MP4 player (Moving Picture Experts Group audio Layer IV, motion Picture Experts compression standard audio Layer 4), a notebook computer, or a desktop computer. The electronic device 2400 may also be referred to by other names as user device, portable electronic device, laptop electronic device, desktop electronic device, and so forth.
Generally, the electronic device 2400 includes: a processor 2401 and a memory 2402.
Processor 2401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 2401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 2401 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 2401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 2401 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 2402 may include one or more computer-readable storage media, which may be non-transitory. The memory 2402 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 2402 is used to store at least one instruction for execution by processor 2401 to implement the information recommendation method for web page display process provided by method embodiments herein.
In some embodiments, the electronic device 2400 may further optionally include: a peripheral interface 2403 and at least one peripheral. The processor 2401, memory 2402 and peripheral interface 2403 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 2403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 2404, a touch display screen 2405, a camera 2406, an audio circuit 2407, a positioning component 2408 and a power supply 2409.
The peripheral interface 2403 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 2401 and the memory 2402. In some embodiments, processor 2401, memory 2402, and peripheral interface 2403 are integrated on the same chip or circuit board; in some other embodiments, any one or both of processor 2401, memory 2402 and peripherals interface 2403 can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 2404 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 2404 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 2404 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 2404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 2404 may communicate with other electronic devices via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 2404 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 2405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 2405 is a touch display screen, the display screen 2405 also has the ability to capture touch signals on or over the surface of the display screen 2405. The touch signal may be input to the processor 2401 as a control signal for processing. At this point, the display 2405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 2405 may be one, providing a front panel of the electronic device 2400; in other embodiments, the number of the display screens 2405 may be at least two, and each of the display screens is disposed on a different surface of the electronic device 2400 or is in a foldable design; in still other embodiments, the display 2405 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 2400. Even further, the display 2405 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 2405 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 2406 is used to capture images or video. Optionally, camera assembly 2406 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of an electronic apparatus, and a rear camera is disposed on a rear surface of the electronic apparatus. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 2406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 2407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 2401 for processing or inputting the electric signals to the radio frequency circuit 2404 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different positions of the electronic device 2400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from processor 2401 or radio frequency circuit 2404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 2407 may also include a headphone jack.
The positioning component 2408 is utilized to locate a current geographic Location of the electronic device 2400 to implement a navigation or LBS (Location Based Service). The Positioning component 2408 may be based on a Global Positioning System (GPS) in the united states, a beidou System in china, or a galileo System in russia.
The power supply 2409 is used to supply power to various components in the electronic device 2400. The power source 2409 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power supply 2409 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 2400 also includes one or more sensors 2410. The one or more sensors 2410 include, but are not limited to: acceleration sensor 2411, gyro sensor 2412, pressure sensor 2413, fingerprint sensor 2414, optical sensor 2415, and proximity sensor 2416.
The acceleration sensor 2411 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the electronic device 2400. For example, the acceleration sensor 2411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 2401 may control the touch display screen 2405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 2411. The acceleration sensor 2411 may also be used for acquisition of motion data of a game or a user.
The gyroscope sensor 2412 may detect a body direction and a rotation angle of the electronic device 2400, and the gyroscope sensor 2412 may cooperate with the acceleration sensor 2411 to acquire a 3D motion of the user on the electronic device 2400. The processor 2401 may implement the following functions according to the data collected by the gyroscope sensor 2412: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 2413 may be disposed on a side bezel of the electronic device 2400 and/or on a lower layer of the touch display screen 2405. When the pressure sensor 2413 is arranged on the side frame of the electronic device 2400, a holding signal of the user to the electronic device 2400 can be detected, and the processor 2401 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 2413. When the pressure sensor 2413 is arranged at the lower layer of the touch display screen 2405, the processor 2401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 2405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 2414 is used for collecting the fingerprint of the user, and the processor 2401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 2414, or the fingerprint sensor 2414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 2401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 2414 may be disposed on the front, back, or sides of the electronic device 2400. When a physical key or vendor Logo is provided on the electronic device 2400, the fingerprint sensor 2414 may be integrated with the physical key or vendor Logo.
The optical sensor 2415 is used to collect the ambient light intensity. In one embodiment, the processor 2401 may control the display brightness of the touch display screen 2405 according to the ambient light intensity collected by the optical sensor 2415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 2405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 2405 is turned down. In another embodiment, the processor 2401 may also dynamically adjust the shooting parameters of the camera head assembly 2406 according to the intensity of the ambient light collected by the optical sensor 2415.
A proximity sensor 2416, also known as a distance sensor, is typically disposed on the front panel of the electronic device 2400. The proximity sensor 2416 is used to capture the distance between the user and the front of the electronic device 2400. In one embodiment, the processor 2401 controls the touch display screen 2405 to switch from a bright screen state to a dark screen state when the proximity sensor 2416 detects that the distance between the user and the front face of the electronic device 2400 is gradually decreased; when the proximity sensor 2416 detects that the distance between the user and the front surface of the electronic device 2400 becomes gradually larger, the processor 2401 controls the touch display screen 2405 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 25 does not constitute a limitation of the electronic device 2400, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
Fig. 26 is a block diagram of a server, where the server includes a processor and a memory, and the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the information recommendation method for a web page display process provided by the foregoing method embodiments. It should be noted that the server may be a server as provided in fig. 26 below.
Referring to fig. 26, a schematic structural diagram of a server according to an exemplary embodiment of the present application is shown. Specifically, the method comprises the following steps: the server 2500 includes a Central Processing Unit (CPU)2501, a system memory 2504 including a Random Access Memory (RAM)2502 and a Read Only Memory (ROM)2503, and a system bus 2505 connecting the system memory 2504 and the central processing unit 2501. The server 2500 also includes a basic input/output system (I/O system) 2506, which facilitates the transfer of information between various devices within the computer, and a mass storage device 2507 for storing an operating system 2513, application programs 2514, and other program modules 2515.
The basic input/output system 2506 includes a display 2508 for displaying information and an input device 2509, such as a mouse, keyboard, etc., for user input of information. Wherein the display 2508 and input device 2509 are connected to the central processing unit 2501 through an input output controller 2510 coupled to the system bus 2505. The basic input/output system 2506 may also include an input/output controller 2510 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 2510 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 2507 is connected to the central processing unit 2501 through a mass storage controller (not shown) connected to the system bus 2505. The mass storage device 2507 and its associated computer-readable media provide non-volatile storage for the server 2500. That is, the mass storage device 2507 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 2504 and mass storage device 2507 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 2501, the one or more programs containing instructions for implementing the above-described method for interacting in short video programs, and the central processing unit 2501 executing the one or more programs implementing the information recommendation method for the web page display process provided by the various method embodiments described above.
The server 2500 may also operate with remote computers connected to a network through a network, such as the internet, according to various embodiments of the invention. That is, the server 2500 may be connected to the network 2512 through the network interface unit 2511 coupled to the system bus 2505, or may be connected to another type of network or remote computer system (not shown) using the network interface unit 2511.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the one or more programs include steps executed by the server in the information recommendation method for performing the web page display process provided by the embodiment of the present invention.
The present application further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the information recommendation method for a web page display process provided by the above method embodiment.
The present application further provides a computer program product, which when run on an electronic device, causes the electronic device to execute the information recommendation method for a web page display process described in the above method embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.