A page data processing method, device and equipment and storage medium
By obtaining the node list corresponding to the keyword list of the target page, identifying the target node, and loading and concatenating the data, the problem of content loading in multi-data source information flow is solved, and independent processing and unified display of data structure are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ZITIAO NETWORK TECH CO LTD
- Filing Date
- 2022-02-15
- Publication Date
- 2026-08-04
AI Technical Summary
Existing technologies struggle to effectively load content from multiple data sources, especially when the data structures of different data sources are inconsistent, leading to difficulties in data structure coupling and maintenance.
By obtaining the node list corresponding to the keyword list of the target page, the target node is determined, and a data loading instruction is sent to the target node. The page data is then received and assembled, thus enabling the loading of content from multiple data source streams.
It enables the loading of content from multiple data source streams, avoids data structure coupling between different data sources, and simplifies the maintenance process.
Smart Images

Figure CN116644251B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing, and in particular to a method, apparatus, device, and storage medium for processing page data. Background Technology
[0002] Currently, information feeds have become a basic function of content-based applications (APPs). Information feeds refer to a form of content consumption where content is proactively presented to users according to certain sorting rules without requiring users to search for it. Users can usually browse all the content simply by scrolling through the page.
[0003] The content in the information stream is provided by the server, and the client simply sends network requests to load it from the server at appropriate times. In practice, when entering a specific page, the client initiates the first network request (also known as a refresh request) to retrieve a certain amount of data from the server. Before all of this data is displayed, the client initiates another request (also known as a loadMore request) to retrieve more data from the server, appending the retrieved data to the previously retrieved data. By continuously initiating loadMore requests, all content can be retrieved for the client user.
[0004] Since the content in the aforementioned information stream all originates from the same data source—that is, the client obtains data from the same network interface—data retrieval within the information stream is relatively simple. However, with the continuous development of content-based apps, the content in the same information stream may come from multiple different data sources, and the data from different data sources may also have different data structures. Therefore, how to load content from information streams from multiple data sources is a pressing technical problem that needs to be solved. Summary of the Invention
[0005] To address the aforementioned technical problems, this disclosure provides a method for processing page data, which enables the loading of content from information streams from multiple data sources.
[0006] In a first aspect, this disclosure provides a method for processing page data, the method comprising:
[0007] Obtain the node list corresponding to the keyword list of the target page; wherein, the keyword list includes at least one keyword, the node list includes a node corresponding to each keyword, the node type of the node corresponding to the same keyword is determined based on different data sources of the page data corresponding to the keyword, the node carries data loading parameters, and the data loading parameters are used to load data from the data source corresponding to the node based on the keyword;
[0008] Determine the target node in the node list;
[0009] Send a data loading instruction to the target node, wherein the data loading instruction is used to instruct the target node to load page data based on the data loading parameters carried by itself;
[0010] After receiving the page data loaded by the target node, the page data is concatenated to obtain the concatenated page data.
[0011] The target page is displayed based on the stitched page data.
[0012] In one optional implementation, the node further carries a data loading status, which is used to store the current loading progress of the node; the data loading request is used to instruct the target node to load page data based on the node loading parameters it carries and the data loading status.
[0013] In one optional implementation, determining the target node in the node list includes:
[0014] In response to a preset display trigger operation for the target page, the first node in the node list is determined as the target node.
[0015] In one optional implementation, determining the target node in the node list includes:
[0016] In response to a data loading request carrying the target keyword from the keyword list, the first node in the node list corresponding to the target keyword is determined as the target node.
[0017] In one optional implementation, the node type includes a preset first type, and determining the target node in the node list includes:
[0018] In response to a trigger operation on a preset control on the target page, the node belonging to the preset first type among the nodes corresponding to the keywords of the page data displayed on the target page is determined as the target node.
[0019] In one optional implementation, the nodes corresponding to the keywords of the page data displayed on the target page further include preset second-type nodes and preset third-type nodes. The step of receiving the page data loaded from the target node and then concatenating the page data to obtain concatenated page data includes:
[0020] After receiving the page data loaded by the target node, determine the nodes in the node list that correspond to the same keyword as the target node and belong to the preset second type;
[0021] The page data of the target node is concatenated to the adjacent position after the page data of the preset second type of node to obtain the concatenated page data; wherein, the page data of the preset second type of node in the concatenated page data is located before the page data of the preset third type of node.
[0022] In one optional implementation, before obtaining the node list corresponding to the keyword list of the target page, the method further includes:
[0023] Pre-set node objects corresponding to different data sources; wherein, the node object has a node type and includes a loading parameter field;
[0024] Based on the attribute data of the first keyword in the keyword list of the target page, determine at least one node type corresponding to the first keyword;
[0025] The data loading parameters corresponding to the first node type in the at least one node type in the attribute data of the first keyword are stored in the loading parameter field of the node object corresponding to the first node type to obtain the first node corresponding to the first keyword;
[0026] Based on the first node corresponding to the first keyword, a node list corresponding to the keyword list is generated; wherein, the node list includes the node corresponding to each keyword in the keyword list.
[0027] Secondly, this disclosure provides a page data processing apparatus, the apparatus comprising:
[0028] The acquisition module is used to acquire a list of nodes corresponding to the keyword list of the target page; wherein, the keyword list includes at least one keyword, the node list includes a node corresponding to each keyword, the node type of the node corresponding to the same keyword is determined based on different data sources of the page data corresponding to the keyword, the node carries data loading parameters, and the data loading parameters are used to load data from the data source corresponding to the node based on the keyword;
[0029] The first determining module is used to determine the target node in the node list;
[0030] The sending module is used to send a data loading instruction to the target node, wherein the data loading instruction is used to instruct the target node to load page data based on the data loading parameters carried by itself;
[0031] The splicing module is used to splice the page data after receiving the page data loaded by the target node to obtain spliced page data.
[0032] The display module is used to display the target page based on the spliced page data.
[0033] Thirdly, this disclosure provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the above-described method.
[0034] Fourthly, this disclosure provides an apparatus comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method described above.
[0035] Fifthly, this disclosure provides a computer program product comprising a computer program / instruction that, when executed by a processor, implements the method described above.
[0036] The technical solution provided in this disclosure has at least the following advantages compared with the prior art:
[0037] This disclosure provides a method for processing page data. First, a node list corresponding to a keyword list of a target page is obtained. The keyword list includes at least one keyword, and the node list includes nodes corresponding to each keyword. The node type of a node corresponding to the same keyword is determined based on different data sources of page data corresponding to that keyword. Each node carries data loading parameters, which are used to load data from the data source corresponding to the node based on the keyword. Then, a target node in the node list is determined, and a data loading instruction is sent to the target node. The data loading instruction instructs the target node to load page data based on its own data loading parameters. Next, the page data loaded by the target node is received, and the page data is concatenated to obtain concatenated page data. The target page is then displayed based on the concatenated page data. Therefore, this disclosure can convert keywords in a keyword list of a target page into nodes in a node list. By assigning the task of loading page data to the corresponding nodes and uniformly concatenating the web page data loaded by each node, it achieves the loading of content from multiple data source streams. Attached Figure Description
[0038] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0039] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A flowchart illustrating a method for processing page data provided in this embodiment of the disclosure;
[0041] Figure 2 A flowchart illustrating a method for processing page data on a hotspot page, provided in this embodiment of the disclosure;
[0042] Figure 3 A schematic diagram of a node list provided in an embodiment of this disclosure;
[0043] Figure 4 This is a schematic diagram of the structure of a page data processing apparatus provided in an embodiment of the present disclosure;
[0044] Figure 5 This is a schematic diagram of the structure of a page data processing device provided in an embodiment of the present disclosure. Detailed Implementation
[0045] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0046] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0047] Currently, if loading content from a single data source is used to load content from multiple data sources, the client needs to record a large number of status parameters to determine the current loading object, loading method, loading interface, request parameters, etc., based on externally input parameters or the most recently recorded parameters. Furthermore, due to the asynchronous nature of network requests, the loaded data also needs to be processed based on the recorded status to determine the corresponding loading object and processing method. Therefore, if the above method is used to load content from multiple data sources, the client needs to record a large number of status parameters, and the large number of variables used during the loading process makes it prone to errors.
[0048] Furthermore, loading content from multiple data sources using the above method requires transforming the data structure of the data loaded from different data sources, i.e., disguising one data structure as another, which leads to coupling between the two data structures and makes maintenance difficult.
[0049] To address this, this disclosure determines the nodes corresponding to keywords in the keyword list of the target page based on different data sources, and generates a node list corresponding to the keyword list. By delegating the task of loading page data to each node in the node list and completing the acquisition of page data at the node layer, the coupling problem between data structures of different data sources is resolved. Then, the splicing of the loaded page data is processed uniformly, realizing the function of loading content from information streams from multiple data sources.
[0050] In summary, this disclosure provides a method for processing page data. First, a node list corresponding to a keyword list of a target page is obtained. The keyword list includes at least one keyword, and the node list includes nodes corresponding to each keyword. The node type of a node corresponding to the same keyword is determined based on different data sources of the page data corresponding to that keyword. Each node carries data loading parameters, which are used to load data from the data source corresponding to the node based on the keyword. Then, a target node in the node list is determined, and a data loading instruction is sent to the target node. This data loading instruction instructs the target node to load page data based on the data loading parameters it carries. Next, the page data loaded by the target node is received, and the page data is concatenated to obtain concatenated page data. The target page is then displayed based on the concatenated page data.
[0051] As can be seen, the embodiments of this disclosure can convert keywords in the keyword list of the target page into nodes in the node list, assign the task of loading page data to the corresponding nodes, and uniformly splice the web page data loaded by each node, thereby realizing the loading of content in the information flow of multiple data sources.
[0052] Based on this, the present disclosure provides a method for processing page data, referring to... Figure 1 The flowchart below illustrates a method for processing page data according to an embodiment of this disclosure. The method includes:
[0053] S101: Get the list of nodes corresponding to the keyword list of the target page.
[0054] The keyword list includes at least one keyword, the node list includes a node corresponding to each keyword, the node type of the node corresponding to the same keyword is determined based on different data sources of page data corresponding to the keyword, the node carries data loading parameters, and the data loading parameters are used to load data from the data source corresponding to the node based on the keyword.
[0055] In this embodiment, the target page can be a trending page, and the keyword list of the target page can be a trending list corresponding to the trending page. The keyword list of the target page can be used to store the correspondence between keywords and attribute data. The attribute data can include the number and type of data sources for the web page data corresponding to the keyword, as well as the data loading method and parameters of the corresponding data sources. The data source can be a server providing web page data, such as a recommendation server, a trending page server, or other servers. The page data can be video data, audio data, or image / text data. Based on the attribute data corresponding to the keyword, the number, type, data loading method, and data loading parameters of the data sources for the web page data corresponding to that keyword can be obtained.
[0056] To load content from multiple data sources, this embodiment converts each keyword in the keyword list into a node of the corresponding node type, creating a node list for each keyword. Each node in this list then loads the webpage data from its respective data source. From the perspective of a single node, this method loads webpage data from only a single data source, avoiding the problem of numerous state parameters associated with multiple data sources.
[0057] In one optional implementation, before obtaining the node list corresponding to the keyword list of the target page, the node list corresponding to the keyword list of the target page is first determined. Specifically, node objects corresponding to different data sources are pre-defined, wherein the node object has a node type and includes a loading parameter field. For example, assuming the keyword list of the target page is a hotspot list corresponding to a hotspot page, since the webpage data corresponding to the hotspot list can come from multiple data sources, such as hotspot servers, recommendation servers, and other servers, corresponding node objects can be pre-defined for different data sources. The node type of the node object corresponds to the data source, and the node object includes loading parameter resources for storing the data loading parameters corresponding to the node.
[0058] After determining the keyword list corresponding to the target page, at least one node type corresponding to the first keyword is determined based on the attribute data of the first keyword in the keyword list. The first keyword can be any keyword in the keyword list. The data source for the webpage corresponding to the first keyword can be one or more; therefore, the node type determined based on the attribute data of the first keyword can be one or more types.
[0059] After determining the node type corresponding to the first keyword, the data loading parameters corresponding to the first node type in the attribute data of the first keyword are stored in the loading parameter field of the node object corresponding to the first node type, thus obtaining the first node corresponding to the first keyword. The first node type can be any of at least one node type corresponding to the first keyword.
[0060] After obtaining all the nodes corresponding to each keyword in the keyword list, a node list corresponding to the keyword list is generated. This node list includes the nodes corresponding to each keyword in the keyword list.
[0061] In practical applications, assuming the keyword list is a hot topic list, when entering the hot topic page, the node list corresponding to the hot topic list can be obtained first, so as to load the page data on the hot topic page based on the node list.
[0062] It's important to note that because the keywords in the keyword list have an order relationship, the nodes in the corresponding node list also have an order relationship. This order relationship is determined based on the order relationship between the keywords in the keyword list. The order relationship between nodes corresponding to each keyword can be determined based on the node type. For example, for the same trending term, the order relationship between nodes can be that trending type nodes appear before recommendation type nodes, achieving the effect of displaying trending videos first on the trending page, followed by recommended videos related to that trending term.
[0063] In addition, different node types and corresponding node objects can be set separately for different business functions.
[0064] S102: Determine the target node in the node list.
[0065] In this embodiment of the disclosure, after obtaining the node list corresponding to the keyword list, each node in the node list can be scheduled to load the corresponding web page data. Since the loading interfaces, loading parameters, data structures, etc. of different data sources are different, using nodes as the smallest granularity, with each node recording its own state parameters, etc., to load web page data from different data sources, the complexity of loading information flow from multiple data sources can be reduced.
[0066] In one optional implementation, in response to a preset display trigger operation for the target page, the first node in the node list is determined as the target node. Assuming the keyword list is a hotspot list and the target page is a hotspot page, the preset display trigger operation can be a trigger operation for entering the hotspot page. Specifically, upon receiving a trigger request to enter the hotspot page, the first node in the node list corresponding to the hotspot list can be determined as the target node. This first node can be a node of the hotspot type corresponding to the first hotspot word in the hotspot list.
[0067] In another optional implementation, in response to a data loading request carrying a target keyword from the keyword list, the first node in the node list corresponding to the target keyword is determined as the target node. Assuming the keyword list is a hotspot list, upon receiving a data loading request for a target hotspot word, the first node in the node list corresponding to that target hotspot word can be determined as the target node. The target hotspot word can correspond to multiple different types of nodes. When a data loading request is triggered for a target hotspot word, the first node corresponding to the target hotspot word can be scheduled to load the page data first; for example, the first node might be a hotspot type node.
[0068] In another optional implementation, the node type may include a preset first type, which corresponds to a preset first data source. In response to a trigger operation on a preset control on the target page, nodes belonging to the preset first type among the nodes corresponding to the keywords of the page data displayed on the target page are identified as target nodes. Assuming the keyword list is a hot topic list, the preset first type is a hot topic-related type (assuming it's a hidden type), the preset first data source can be a preset first server, and the first keyword is a first hot topic word. Specifically, during the display of a hot video for the first hot topic word on the hot topic page, if a trigger operation is received for a preset control on the hot topic page, video loading for the first server corresponding to the first hot topic word is triggered. It should be noted that nodes of the preset first type can be hidden type nodes; if no trigger operation is received for a hidden type node, that hidden type node will not be scheduled.
[0069] Furthermore, after receiving the page data loaded by the target node, the nodes in the node list corresponding to the same keyword as the target node that belong to the preset second type are identified. Then, the page data of the target node is concatenated to the adjacent position after the page data of the preset second type nodes to obtain concatenated page data; wherein, the page data of the preset second type nodes in the concatenated page data is located before the page data of the preset third type nodes. The order of nodes corresponding to the same keyword in the node list is as follows: preset first type nodes are located between preset second type nodes and preset third type nodes, and preset third type nodes are located last. Specifically, taking preset first type as the recommendation type, preset second type as the hot topic type, and preset third type as the hidden type as an example, among nodes corresponding to the same hot topic keyword, hot topic type nodes are prioritized for loading page data, followed by hidden type nodes, and finally recommendation type nodes.
[0070] S103: Send a data loading command to the target node.
[0071] The data loading instruction is used to instruct the target node to load page data based on the data loading parameters it carries.
[0072] In this embodiment of the disclosure, after determining the target node in the node list, a data loading instruction is sent to the target node to instruct it to load page data based on its own data loading parameters. Specifically, after receiving the data loading instruction, the target node sends a data loading request to the corresponding data source (i.e., the server) based on its own data loading parameters to request web page data from that data source. After loading the web page data from the corresponding data source, the target node returns the loaded web page data.
[0073] In one optional implementation, the node may also carry a data loading status, which is used to store the current loading progress of the node. For example, the data loading status may store that the page data of the corresponding node has been loaded, or it may store which video the page data of the corresponding node has been loaded to.
[0074] In practical applications, after receiving the data loading instruction, the target node first determines the current loading progress based on its own node loading status, assuming it has loaded the Nth video. Then, based on the data loading parameters it carries, it starts loading from the video following the Nth video of the target node.
[0075] S104: After receiving the page data loaded by the target node, the page data is spliced to obtain spliced page data.
[0076] In this embodiment of the disclosure, after receiving the page data loaded by the target node, the page data is concatenated with other loaded page data to form an information stream, which is used to display the information to the client user on the page.
[0077] In this embodiment of the disclosure, the data loading task is assigned to each node based on the node list corresponding to the keyword list of the target page. The page data returned by each node is uniformly spliced, which can avoid the conversion of different data structures between different data sources and avoid coupling between data structures.
[0078] S105: The target page is displayed based on the spliced page data.
[0079] In this embodiment of the disclosure, during the process of displaying page data to the client user, if a "loadMore" request is received, a new target node can be determined from the node list based on the currently loaded page data. A data loading instruction is then sent to this target node to instruct it to load the page data. The page data returned by each node is concatenated to form an information stream, which is then displayed to the client user on the target page.
[0080] In the page data processing method provided in this disclosure, the following steps are taken: First, a node list corresponding to the keyword list of the target page is obtained. The keyword list includes at least one keyword, and the node list includes nodes corresponding to each keyword. The node type of a node corresponding to the same keyword is determined based on different data sources of the page data corresponding to that keyword. Each node carries data loading parameters, which are used to load data from the data source corresponding to the node based on the keyword. Then, a target node in the node list is determined, and a data loading instruction is sent to the target node. The data loading instruction instructs the target node to load page data based on its own data loading parameters. Next, the page data loaded by the target node is received, and the page data is concatenated to obtain concatenated page data. The target page is then displayed based on the concatenated page data. Therefore, this disclosure can convert keywords in the keyword list of the target page into nodes in the node list. By assigning the task of loading page data to the corresponding nodes and uniformly concatenating the web page data loaded by each node, it achieves the loading of content from multiple data source information flows.
[0081] To facilitate understanding of the above embodiments, this disclosure provides a method for processing page data on a hotspot page, referencing... Figure 2The above is a flowchart of a method for processing page data on a hotspot page, provided by an embodiment of this disclosure. The method includes:
[0082] S201: Get the list of nodes corresponding to the hotspot list on the hotspot page.
[0083] In this embodiment of the disclosure, the node list includes nodes corresponding to each hot word in the target hot topic list. Each hot word may include at least one type of node, such as hot topic type nodes, recommendation type nodes, and hidden type nodes. It should be noted that the different types of nodes are determined based on different data sources of web page data. That is, hot topic type nodes, recommendation type nodes, and hidden type nodes correspond to different data sources.
[0084] like Figure 3 The diagram illustrates a node list provided in an embodiment of this disclosure. The first hot topic includes only one type of node, namely, a hot topic type node, Hot Topic 1. The second hot topic includes three types of nodes: a hot topic type node, Hot Topic 2; a recommendation type node, Recommendation 2; and a hidden type node, Hidden 2. It should be noted that Hot Topic 2, Recommendation 2, and Hidden 2 all correspond to the second hot topic in the target hot topic list, meaning that webpage data loading is based on the second hot topic.
[0085] S202: In response to a preset display trigger operation for a hot page, the first node in the node list is determined as the target node.
[0086] In this embodiment of the disclosure, when a preset display trigger operation to enter the hotspot page is received, the first node in the node list corresponding to the target hotspot list is determined as the target node, that is, the web page data corresponding to the first hotspot word is loaded. When loading web page data for a certain hotspot word, it is necessary to start loading from the first node corresponding to that hotspot word (usually the node of the hotspot type).
[0087] Based on the above Figure 3 For example, upon entering the hotspot page, Hotspot 1 is first scheduled to load webpage data. Based on the loadMore request, Hotspot 2 is then scheduled to load webpage data, followed by Recommendation 2. Since the loading condition for Hidden 2's webpage data is receiving a user-triggered action, Hidden 2 will not be scheduled to load webpage data if no user-triggered action is received. Therefore, even without external input parameters, based on the order and type of each node in the node list, the webpage data is loaded sequentially to form an information flow displayed to the client user.
[0088] In one optional implementation, if a data loading request carrying a target hot topic word from the target hot topic list is received, the node corresponding to the target hot topic word is re-identified as the target node, and the target node is scheduled to load the webpage data. It should be noted that the loading of webpage data corresponding to the target hot topic word can begin with the webpage data of the node corresponding to the hot topic type, so as to display an information stream to the client user starting with a video of the hot topic type. Subsequently, recommended videos corresponding to the target hot topic word can also be displayed to the client user to meet the client user's browsing needs for webpage data corresponding to the target hot topic word.
[0089] S203: Send a data loading command to the target node.
[0090] The data loading instruction is used to instruct the target node to load page data based on the data loading parameters and data loading status it carries.
[0091] In this embodiment, the target node is scheduled by sending a data loading command to it. Upon receiving the data loading command, the target node loads page data based on its own data loading status and parameters, and then returns the loaded page data.
[0092] S204: After receiving the page data loaded by the target node, the page data is spliced to obtain spliced page data.
[0093] In this embodiment of the disclosure, after receiving the page data loaded by the target node, the page data is concatenated. It should be noted that the concatenation of page data can be processed in parallel with the scheduling of each node.
[0094] S205: In response to a trigger operation on a preset control on a hot page that displays page data corresponding to the first hot keyword, the hidden type node corresponding to the first hot keyword is redefined as the target node, and the target node is instructed to load the web page data to load the hidden type web page data.
[0095] For example, hidden type webpage data can be webpage data related to the first hot keyword from other servers. For instance, hot keyword type nodes are used to load webpage data corresponding to the first hot keyword from server A, while hidden type nodes are used to load webpage data corresponding to the first hot keyword from server B.
[0096] In one optional implementation, the hot topic page displays preset controls while showing page data of the hot topic type corresponding to the hot topic keywords. When a user triggers an operation on the preset control, the node of the hidden type of the hot topic corresponding to the currently displayed web page data is re-identified as the target node, and the target node is scheduled to load the video of the hidden type corresponding to the hot topic keyword.
[0097] S206: After receiving the webpage data loaded by the target node, based on the node type of the target node, the webpage data is concatenated to the webpage data of the first node corresponding to the first hot keyword to obtain the concatenated page data.
[0098] In this embodiment of the disclosure, if hidden type web page data loaded by the target node is received, the loaded web page data can be concatenated after the hot type web page data of the hot words corresponding to the currently displayed web page data, so as to achieve the display effect of prioritizing the display of hot type web page data to the client user on the hot page, followed by the display of hidden type web page data, and finally the display of recommended type web page data.
[0099] In one alternative implementation, on a trending page, the client user can trigger multiple loadMore requests by continuously swiping the page, thereby browsing the information stream. Upon receiving a loadMore request, the next node in the node list is redefined as the target node, and this redefined target node is scheduled to load the webpage data.
[0100] S207: Display hotspot pages based on the spliced page data.
[0101] In this embodiment of the disclosure, page data is displayed sequentially on the hot page according to the order of different page data in the spliced page data, providing users with a browsing function of information flow from multiple data sources.
[0102] The method for processing page data on a hot page provided in this embodiment converts hot words in the target hot list into nodes in the node list, assigns the task of loading page data to the corresponding nodes, and uniformly splices the web page data loaded by each node, thereby realizing the loading of content from multiple data sources in the information flow of the hot page.
[0103] Based on the above method embodiments, this disclosure also provides a page data processing apparatus, with reference to... Figure 4 This is a schematic diagram of a page data processing apparatus provided in an embodiment of the present disclosure. The apparatus includes:
[0104] The acquisition module 401 is used to acquire a list of nodes corresponding to the keyword list of the target page; wherein, the keyword list includes at least one keyword, the node list includes a node corresponding to each keyword, the node type of the node corresponding to the same keyword is determined based on different data sources of the page data corresponding to the keyword, the node carries data loading parameters, and the data loading parameters are used to load data from the data source corresponding to the node based on the keyword.
[0105] The first determining module 402 is used to determine the target node in the node list;
[0106] The sending module 403 is used to send a data loading instruction to the target node, wherein the data loading instruction is used to instruct the target node to load page data based on the data loading parameters carried by itself;
[0107] The splicing module 404 is used to splice the page data after receiving the page data loaded by the target node to obtain spliced page data.
[0108] Display module 405 is used to display the target page based on the spliced page data.
[0109] In one optional implementation, the node further carries a data loading status, which is used to store the current loading progress of the node; the data loading request is used to instruct the target node to load page data based on the node loading parameters it carries and the data loading status.
[0110] In one optional implementation, the first determining module is specifically used for:
[0111] In response to a preset display trigger operation for the target page, the first node in the node list is determined as the target node.
[0112] In one optional implementation, the first determining module is specifically used for:
[0113] In response to a data loading request carrying the target keyword from the keyword list, the first node in the node list corresponding to the target keyword is determined as the target node.
[0114] In one optional implementation, the node type includes a preset first type, and the first determining module is specifically used for:
[0115] In response to a trigger operation on a preset control on the target page, the node belonging to the preset first type among the nodes corresponding to the keywords of the page data displayed on the target page is determined as the target node.
[0116] In one optional implementation, the nodes corresponding to the keywords of the page data displayed on the target page further include preset second-type nodes and preset third-type nodes, and the splicing module includes:
[0117] The determination submodule is used to determine, after receiving the page data loaded by the target node, the nodes in the node list that correspond to the same keyword as the target node and belong to the preset second type;
[0118] The splicing submodule is used to splice the page data of the target node to an adjacent position after the page data of the first node to obtain spliced page data; wherein, the page data of the preset second type of node in the spliced page data is located before the page data of the preset third type of node.
[0119] In one optional embodiment, the apparatus further includes:
[0120] The configuration module is used to pre-configure node objects corresponding to different data sources; wherein, the node object has a node type and includes a loading parameter field;
[0121] The second determining module is used to determine at least one node type corresponding to the first keyword based on the attribute data of the first keyword in the keyword list of the target page.
[0122] The storage module is used to store the data loading parameters in the attribute data of the first keyword that correspond to the first node type in the at least one node type in the loading parameter field of the node object corresponding to the first node type, so as to obtain the first node corresponding to the first keyword;
[0123] The generation module is used to generate a node list corresponding to the keyword list based on the first node corresponding to the first keyword; wherein, the node list includes the node corresponding to each keyword in the keyword list.
[0124] In the page data processing apparatus provided in this embodiment, a node list corresponding to a keyword list of a target page is first obtained. The keyword list includes at least one keyword, and the node list includes nodes corresponding to each keyword. The node type of a node corresponding to the same keyword is determined based on different data sources of page data corresponding to that keyword. Each node carries data loading parameters, which are used to load data from the data source corresponding to the node based on the keyword. Then, a target node in the node list is determined, and a data loading instruction is sent to the target node. This data loading instruction instructs the target node to load page data based on its own data loading parameters. Subsequently, the page data loaded by the target node is received, and the page data is concatenated to obtain concatenated page data. The target page is then displayed based on the concatenated page data.
[0125] As can be seen, the embodiments of this disclosure can convert keywords in the keyword list of the target page into nodes in the node list, assign the task of loading page data to the corresponding nodes, and uniformly splice the web page data loaded by each node, thereby realizing the loading of content in the information flow of multiple data sources.
[0126] In addition to the methods and apparatus described above, this disclosure also provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the page data processing method described in this disclosure.
[0127] This disclosure also provides a computer program product, which includes a computer program / instruction. When the computer program / instruction is executed by a processor, it implements the page data processing method described in this disclosure.
[0128] In addition, this disclosure also provides a page data processing device, see [link to relevant documentation]. Figure 5 As shown, it may include:
[0129] The device comprises a processor 501, a memory 502, an input device 503, and an output device 504. The number of processors 501 in the page data processing device can be one or more. Figure 5 Taking a processor as an example. In some embodiments of this disclosure, the processor 501, memory 502, input device 503, and output device 504 can be connected via a bus or other means, wherein, Figure 5 Taking the example of a connection between China and Israel via a bus.
[0130] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing of the page data processing device by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc. In addition, the memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. The input device 503 can be used to receive input digital or character information, and to generate signal inputs related to user settings and function control of the page data processing device.
[0131] Specifically in this embodiment, the processor 501 loads the executable files corresponding to the processes of one or more applications into the memory 502 according to the following instructions, and the processor 501 runs the applications stored in the memory 502, thereby realizing the various functions of the page data processing device.
[0132] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0133] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing page data, characterized in that, The method includes: Obtain the node list corresponding to the keyword list of the target page; wherein, the keyword list includes at least one keyword, the node list includes a node corresponding to each keyword, the node type of the node corresponding to the same keyword is determined based on different data sources of the page data corresponding to the keyword, the node carries data loading parameters, and the data loading parameters are used to load data from the data source corresponding to the node based on the keyword; Determine the target node in the node list; Send a data loading instruction to the target node, wherein the data loading instruction is used to instruct the target node to load page data based on the data loading parameters carried by itself; After receiving the page data loaded by the target node, the page data is concatenated to obtain the concatenated page data. The target page is displayed based on the stitched page data.
2. The method according to claim 1, characterized in that, The node also carries a data loading status, which is used to store the current loading progress of the node; the data loading instruction is used to instruct the target node to load page data based on the data loading parameters and the data loading status it carries.
3. The method according to claim 1, characterized in that, Determining the target node in the node list includes: In response to a preset display trigger operation for the target page, the first node in the node list is determined as the target node.
4. The method according to claim 1, characterized in that, Determining the target node in the node list includes: In response to a data loading request carrying the target keyword from the keyword list, the first node in the node list corresponding to the target keyword is determined as the target node.
5. The method according to claim 1, characterized in that, The node type includes a preset first type, and determining the target node in the node list includes: In response to a trigger operation on a preset control on the target page, the node belonging to the preset first type among the nodes corresponding to the keywords of the page data displayed on the target page is determined as the target node.
6. The method according to claim 5, characterized in that, The nodes corresponding to the keywords of the page data displayed on the target page also include nodes of a second preset type and nodes of a third preset type; After receiving the page data loaded by the target node, the process of concatenating the page data to obtain concatenated page data includes: After receiving the page data loaded by the target node, determine the nodes in the node list that correspond to the same keyword as the target node and belong to the preset second type; The page data of the target node is concatenated to the adjacent position after the page data of the preset second type of node to obtain the concatenated page data; wherein, the page data of the preset second type of node in the concatenated page data is located before the page data of the preset third type of node.
7. The method according to claim 1, characterized in that, Before obtaining the list of nodes corresponding to the keyword list of the target page, the process also includes: Pre-set node objects corresponding to different data sources; wherein, the node object has a node type and includes a loading parameter field; Based on the attribute data of the first keyword in the keyword list of the target page, determine at least one node type corresponding to the first keyword; The data loading parameters corresponding to the first node type in the at least one node type in the attribute data of the first keyword are stored in the loading parameter field of the node object corresponding to the first node type to obtain the first node corresponding to the first keyword; Based on the first node corresponding to the first keyword, a node list corresponding to the keyword list is generated; wherein, the node list includes the node corresponding to each keyword in the keyword list.
8. A page data processing apparatus, characterized in that, The device includes: The acquisition module is used to acquire a list of nodes corresponding to the keyword list of the target page; wherein, the keyword list includes at least one keyword, the node list includes a node corresponding to each keyword, the node type of the node corresponding to the same keyword is determined based on different data sources of the page data corresponding to the keyword, the node carries data loading parameters, and the data loading parameters are used to load data from the data source corresponding to the node based on the keyword; The first determining module is used to determine the target node in the node list; The sending module is used to send a data loading instruction to the target node, wherein the data loading instruction is used to instruct the target node to load page data based on the data loading parameters carried by itself; The splicing module is used to splice the page data after receiving the page data loaded by the target node, so as to obtain spliced page data. The display module is used to display the target page based on the spliced page data.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the method as described in any one of claims 1-7.
10. A page data processing device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1-7.
11. A computer program product, characterized in that, The computer program product includes a computer program / instruction that, when executed by a processor, implements the method as described in any one of claims 1-7.