Page loading methods, apparatus, devices and storage media

By loading a page frame template on the user terminal and retrieving content from the network, the complexity and high cost caused by proxy servers in existing technologies are solved, resulting in faster page loading speeds.

CN114238817BActive Publication Date: 2025-10-31ZHENGZHOU APUS DIGITAL CLOUD INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111579647.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-22
Publication Date
2025-10-31
Estimated Expiration
2041-12-22

AI Technical Summary

Technical Problem

Existing technologies require setting up proxy servers during webpage acceleration, which makes the process complex and costly.

Method used

By acquiring data from multiple target pages, classifying and determining link templates, page frame templates, and content source rules, the page frame is loaded directly on the user's terminal and content is retrieved from the network, avoiding the need for proxy server settings.

Benefits of technology

It improved page loading speed, simplified the implementation process, and reduced costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114238817B_ABST
    Figure CN114238817B_ABST
Patent Text Reader

Abstract

This specification provides a page loading method, apparatus, device, and storage medium according to one embodiment. The method includes: acquiring multiple target page data; classifying the target page data to obtain various types of page data; determining link templates for various types of page data based on page links; determining page frame templates for various types of page data based on HTML elements; analyzing the content sources of the page content for various types of page data to obtain page content source rules; and distributing the link templates, page frame templates, and page content source rules for various types of page data to a user terminal, so that the user terminal can load the page frame of the page to be loaded based on the page frame template, and obtain and load the content of the page to be loaded from the network based on the page content source rules. This embodiment can alleviate the problem of complex and costly implementation processes in existing technologies for webpage acceleration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of computer technology, and in particular to a page loading method, apparatus, device, and storage medium. Background Technology

[0002] Currently, users frequently browse various web pages via mobile phones or computers, such as for online shopping. Therefore, it is necessary to improve web page loading speed to enhance the user's web browsing experience. Existing technologies typically use proxy servers for cloud acceleration to improve loading speed. However, this method requires setting up a proxy server and writing web page acceleration programs on it, resulting in high implementation costs and complex processes. Summary of the Invention

[0003] The purpose of one embodiment of this specification is to provide a page loading method, apparatus, device, and storage medium to alleviate the problem that the prior art is complex and costly in accelerating web pages.

[0004] To solve the above-mentioned technical problems, one embodiment of this specification is implemented as follows:

[0005] Firstly, one embodiment of this specification provides a page loading method, including:

[0006] Multiple target page data are acquired, and the target page data is classified according to the subordinate relationship between the target page data and the page links of the target page data to obtain various types of page data.

[0007] Based on the page links of each type of page data, determine the link templates of each type of page data; based on the Hypertext Markup Language (HTML) elements of each type of page data, determine the page frame templates of each type of page data.

[0008] The content sources of page content for each type of page data are analyzed to obtain page content source rules for each type of page data; the page content source rules include link templates for providing content source links for page content;

[0009] The link templates, page frame templates, and page content source rules for various types of page data are distributed to the user terminal so that when the user terminal loads a page to be loaded that matches the link template, it loads the page frame of the page to be loaded based on the page frame template, and retrieves the page content of the page to be loaded from the network based on the page content source rules and loads it into the page frame of the page to be loaded, so as to display the page to be loaded.

[0010] Secondly, one embodiment of this specification provides a page loading method, including:

[0011] The system acquires and stores link templates, page frame templates, and page content source rules for various types of page data distributed by the server; the page content source rules include link templates used to provide content source links for page content.

[0012] After receiving a page loading request, determine whether there is a target template in the link templates of the various types of page data that matches the page link of the page to be loaded;

[0013] If it exists, load the target page frame template that belongs to the same type of page data as the target template to display the page frame of the page to be loaded;

[0014] Based on the target page content source rules that belong to the same type of page data as the target template, the page content of the page to be loaded is obtained from the network and loaded into the page frame of the page to be loaded to display the page to be loaded.

[0015] Thirdly, one embodiment of this specification provides a page loading apparatus, comprising:

[0016] A page classification unit is used to acquire multiple target page data, classify the target page data according to the subordinate relationship between the target page data and the page links of the target page data, and obtain various types of page data;

[0017] The first determining unit is used to determine the link template of each type of page data based on the page links of each type of page data, and to determine the page frame template of each type of page data based on the Hypertext Markup Language (HTML) elements of each type of page data.

[0018] The second determining unit is used to analyze the content source of the page content of various types of page data to obtain the page content source rules of various types of page data; the page content source rules include link templates for providing content source links of page content;

[0019] The data delivery unit is used to deliver link templates, page frame templates, and page content source rules of various types of page data to the user terminal, so that when the user terminal loads a page to be loaded that matches the link template, it loads the page frame of the page to be loaded based on the page frame template, and obtains the page content of the page to be loaded from the network based on the page content source rules and loads it into the page frame of the page to be loaded, so as to display the page to be loaded.

[0020] Fourthly, one embodiment of this specification provides a page loading apparatus, comprising:

[0021] The data acquisition unit is used to acquire and store the link templates, page frame templates, and page content source rules of various types of page data issued by the server; the page content source rules include link templates for providing content source links for page content;

[0022] The page judgment unit is used to determine, after obtaining the page loading request, whether there is a target template in the link templates of various types of page data that matches the page link of the page to be loaded.

[0023] A frame display unit is used, if it exists, to load a target page frame template that belongs to the same type of page data as the target template, so as to display the page frame of the page to be loaded;

[0024] The page display unit is used to obtain the page content of the page to be loaded from the network based on the target page content source rules that belong to the same type of page data as the target template, and load it into the page frame of the page to be loaded to display the page to be loaded.

[0025] Fifthly, another embodiment of this specification provides a page loading device, including: a memory, a processor, and computer-executable instructions stored in the memory and executable on the processor, wherein the computer-executable instructions, when executed by the processor, implement the steps of the page loading method as described in the first or second aspect above.

[0026] In a sixth aspect, this specification provides a computer-readable storage medium in another embodiment for storing computer-executable instructions that, when executed by a processor, implement the steps of the page loading method as described in the first or second aspect above.

[0027] In one embodiment of this specification, multiple target page data are first acquired and classified to obtain various types of page data. Then, based on the page links of each type of page data, a link template for each type of page data is determined. Based on the Hypertext Markup Language (HTML) elements of each type of page data, a page frame template for each type of page data is determined. Next, the content source of the page content of each type of page data is analyzed to obtain page content source rules for each type of page data. Finally, the link templates, page frame templates, and page content source rules for each type of page data are sent to the user terminal. This allows the user terminal to load the page frame of the page to be loaded based on the page frame template when loading a page whose page link matches the link template, and to retrieve the page content of the page to be loaded from the network based on the page content source rules and load it into the page frame of the page to be loaded for display. As can be seen, in this embodiment, when loading a page, the user terminal can first load the page frame based on the page frame template received locally, and then obtain and load the page content from the network, thereby saving the time spent requesting the page frame, improving the page loading speed, and eliminating the need to set up a proxy server for page loading. This solves the problem that existing technologies require setting up a proxy server when accelerating web pages, which is complex and costly. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in one or more embodiments of this specification, the accompanying drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0029] Figure 1 This is a schematic diagram illustrating an application scenario of the page loading method provided in one embodiment of this specification.

[0030] Figure 2 A schematic flowchart illustrating a page loading method provided in one embodiment of this specification;

[0031] Figure 3 This is a schematic diagram illustrating the classification of target page data according to an embodiment of this specification;

[0032] Figure 4 A flowchart illustrating a page loading method provided in another embodiment of this specification;

[0033] Figure 5 This is a schematic diagram of the structure of a page loading device provided in one embodiment of this specification;

[0034] Figure 6This is a schematic diagram of the structure of a page loading device provided in another embodiment of this specification;

[0035] Figure 7 This is a schematic diagram of the structure of a page loading device provided in one embodiment of this specification. Detailed Implementation

[0036] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.

[0037] This specification provides an embodiment of a page loading method to improve page loading speed when a user terminal loads a page. Figure 1 This is a schematic diagram illustrating an application scenario of the page loading method provided in one embodiment of this specification, such as... Figure 1 As shown, the scenario includes a user terminal 100 and a server 200. The user terminal 100 and the server 200 are connected via a network 300. Figure 1 In this context, user terminals include, but are not limited to, devices capable of loading web pages, such as mobile phones, desktop computers, tablets, laptops, in-vehicle computers, and wearable devices. Servers can be dedicated to accelerating web pages.

[0038] Figure 1 In this process, the server can obtain multiple target page data, classify them according to the hierarchical relationships and page links between them, and then determine the link templates and page frame templates for each type of page data based on the page links. Next, it analyzes the content sources of each type of page data to obtain page content source rules, which include link templates used to provide links to the content sources of the page content. Finally, the link templates, page frame templates, and page content source rules for each type of page data are distributed to the user terminal.

[0039] Figure 1In the process, after the user terminal receives a page loading request, it determines whether there is a target template in the link templates of various types of page data that matches the page link of the page to be loaded. If so, it loads the target page frame template that belongs to the same type of page data as the target template to display the page frame of the page to be loaded. Furthermore, based on the target page content source rules that belong to the same type of page data as the target template, it obtains the page content of the page to be loaded from the network and loads it into the page frame of the page to be loaded to display the page to be loaded.

[0040] With the page loading method in one or more embodiments of this specification, the user terminal can first load the page frame based on the page frame template received locally, and then obtain and load the page content from the network, thereby saving the time spent requesting the page frame, improving the page loading speed, and eliminating the need to set up a proxy server for page loading. This solves the problem that the prior art requires setting up a proxy server when accelerating web pages, which is complex and costly.

[0041] The following section details the specific process of the page loading method executed by the server.

[0042] Figure 2 This is a schematic flowchart illustrating a page loading method provided in one embodiment of this specification. Figure 2 The page loading method in the code is applied on the server side and executed by the server, such as... Figure 2 As shown, the process includes:

[0043] Step S202: Obtain multiple target page data, classify the target page data according to the subordinate relationship between each target page data and the page links of each target page data, and obtain various types of page data;

[0044] Step S204: Determine the link template for each type of page data based on the page links of each type of page data; determine the page frame template for each type of page data based on the Hypertext Markup Language (HTML) elements of each type of page data.

[0045] Step S206: Analyze the content sources of page content for various types of page data to obtain page content source rules for various types of page data; the page content source rules include link templates used to provide content source links for page content;

[0046] Step S208: The link templates, page frame templates, and page content source rules for various types of page data are sent to the user terminal so that when the user terminal loads a page whose link matches the above link template, it loads the page frame of the page to be loaded based on the page frame template, and retrieves the page content of the page to be loaded from the network based on the page content source rules and loads it into the page frame of the page to be loaded, so as to display the page to be loaded.

[0047] In this embodiment, multiple target page data are first acquired and categorized to obtain various types of page data. Then, based on the page links of each type of page data, link templates are determined, and based on the HTML elements of each type of page data, page frame templates are determined. Next, the content sources of the page content for each type of page data are analyzed to obtain page content source rules. Finally, the link templates, page frame templates, and page content source rules for each type of page data are sent to the user terminal. This allows the user terminal to load the page frame of the page to be loaded based on the page frame template when loading a page whose page link matches the link template, and to retrieve the page content of the page to be loaded from the network based on the page content source rules and load it into the page frame of the page to be loaded for display. As can be seen, this embodiment allows the user terminal to first load the page frame based on the locally received page frame template, and then retrieve and load the page content from the network, thus saving time spent requesting the page frame, improving page loading speed, and eliminating the need to set up a proxy server for page loading. This solves the problem of existing technologies requiring proxy servers for webpage acceleration, which are complex and costly.

[0048] In step S202 above, multiple target page data are acquired. In one embodiment, a large amount of historical page data visited by users on the Internet can be statistically analyzed to determine the 500 web pages with the highest user access frequency within a certain period, such as the last three months, and the data of these 500 web pages can be acquired as target page data.

[0049] In step S202 above, the target page data is classified according to the hierarchical relationships between the target page data and the page links between the target page data, resulting in various types of page data. The hierarchical relationship means that when a user navigates to page B by triggering a control on page A, page B is a page belonging to page A. Page links can be URL (Uniform Resource Locator) links.

[0050] In one embodiment, the target page data is classified according to the hierarchical relationships between the target page data and the page links of the target page data to obtain various types of page data, specifically:

[0051] (a1) If the target page data is website homepage data or subcategory homepage data belonging to the website homepage data, then the target page data is treated as one type of page data; wherein, website homepage data of different websites belong to different categories; homepage data of different subcategories belong to different categories; the different subcategory homepage data includes different subcategory homepage data of the same website and different subcategory homepage data of different websites;

[0052] (a2) If the target page data is subpage data belonging to the same root page data, then the subpage data belonging to the same root page data is classified according to the page links of each subpage data belonging to the same root page data to obtain various types of page data; wherein, the root page data includes the aforementioned sub-category homepage data and the sub-level page data of the aforementioned sub-category homepage data.

[0053] It's understandable that a website has a homepage. Under the homepage, there are various sub-category homepages. For example, a news website has a homepage, and under that, there are sub-category homepages for finance, entertainment, military, etc. Based on this, in the above action (a1), if a target page's data is homepage data or sub-category homepage data, then that target page data is treated as one type of page data. Considering that different websites have different homepages and different sub-category homepages, homepage data from different websites are classified as different categories. Different sub-category homepage data within the same website are also classified as different categories, and different sub-category homepage data from different websites are also classified as different categories.

[0054] In the above action (a2), the subcategory homepage data and the subordinate page data belonging to the subcategory homepage data are used as root page data. For example, if a target page is the sports section homepage data, then this target page is a subcategory homepage and can be used as root page data. If a target page is a sub-page of the sports section homepage data at one or more levels, then this target page is a subordinate page of the subcategory homepage and can also be used as root page data. If multiple target page data are sub-page data belonging to the same root page, then the sub-page data belonging to the same root page is classified according to the page links of each sub-page data belonging to the same root page, resulting in various types of page data. That is, when multiple target page data are sub-page data belonging to the same page, these multiple sub-page data are classified according to the page links of these multiple sub-page data to obtain various types of page data.

[0055] Specifically, based on the page links of the subpages belonging to the same root page data, the subpage data belonging to the same root page data is classified into various categories, as follows:

[0056] (a21) Obtain the page links of each subpage data belonging to the same root page data, and compare the domain name and path in the obtained page links;

[0057] (a22) Subpage data belonging to the same root page data with the same domain name and path are treated as a type of page data.

[0058] Specifically, the process involves retrieving the URLs of multiple subpages belonging to the same root page, comparing the domain name and path in each URL, and grouping subpages with identical domain names and paths into one category. For example, if there are five subpages belonging to the same root page, retrieving their URLs, and comparing them, it's found that subpages 1, 2, and 3 have identical domain names and paths, and subpages 4 and 5 also have identical domain names and paths. Therefore, subpages 1, 2, and 3 can be grouped into one category, and subpages 4 and 5 into another.

[0059] Of course, if a root page contains only one child page, then that child page belongs to a different type of page.

[0060] Figure 3 This is a schematic diagram illustrating the classification of target page data according to an embodiment of this specification, such as... Figure 3 As shown in the example, the target page data obtained comes from website A and website B, including the homepage data of website A, and multiple sub-category homepages A1 and A2 of website A, where A1 and A2 are the homepages of the entertainment section and the finance section, respectively; the homepage data of website B, and multiple sub-category homepages B1 and B2 of website B, where B1 and B2 are the homepages of the sports section and the news section, respectively. Among them, A1 has three sub-page data A11, A12, and A13 with A1 as the root page, and B2 has three sub-page data B11, B12, and B13 with B2 as the root page.

[0061] Using the aforementioned target page data classification method, we can first classify the homepage data of website A, and the sub-category homepages A1 and A2, as well as the homepage data of website B, and the sub-category homepages B1 and B2, into separate categories of page data. Then, we compare the domain names and paths in the URLs of sub-page data A11, A12, and A13. Based on the comparison results, we group A11 and A12 into one category of page data, and A13 into another. Finally, we compare the domain names and paths in the URLs of sub-page data B11, B12, and B13. Based on the comparison results, we group B11 and B13 into one category of page data, and B12 into another.

[0062] Figure 3 If multiple subpages exist with any one of A11, A12, A13, B11, B12, or B13 as their root page, then the domain names and paths in the URLs of these subpages can be compared, and the subpages can be categorized based on the comparison results. Conversely, if a single subpage exists with any one of A11, A12, A13, B11, B12, or B13 as its root page, then that single subpage belongs to its own category.

[0063] Since different websites have different page structures, and web pages at different levels have different page structures, this embodiment divides the website homepage into one category and the sub-category homepage into another category according to the subordinate relationship between the target page data and the page links of the target page data. The subpages are also classified according to the URL links of the subpages to obtain various types of page data. This allows page data with the same page structure to be grouped together, achieving the effect of classifying page data according to the page structure.

[0064] After classification, in step S204 above, the link templates for each type of page data are determined based on the page links of that type of page data. This action specifically includes:

[0065] (b1) When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, use the page links of this type of page data as the link templates of this type of page data.

[0066] (b2) When classifying the sub-page data belonging to the same root page data to obtain various types of page data, the page links of the page data of that type are compared, and a link template of the page data of that type is constructed based on the comparison results.

[0067] Based on the preceding classification process of target page data, we know that there are three types of page data: website homepage data, subcategory homepage data, and subpage data belonging to the root page data. The first two types of page data each constitute a separate category, while the third type is further classified based on the domain name and path in the URL. Therefore, in action (b1), when website homepage data or subcategory homepage data belonging to the website homepage data are classified as a single category, since this category only includes one website homepage or one subcategory homepage, the page link of that category is used as the link template for that category. For example, if website A's homepage A1 is classified as a single category, the URL link of A1 is used as the link template for that category.

[0068] In action (b2), when classifying multiple subpages belonging to the same root page data into different categories, the page links of each page within that category are compared. Based on the comparison results, the common and different parameters in the page links of each page are extracted. A link template for that category of page data is then constructed based on these extracted common and different parameters. For example, if there are five subpages (1, 2, 3, 4, 5), and these five subpages are classified into two categories (1, 2, 3 and 4, 5), in one category, the URLs of 1, 2, and 3 are compared. Based on the comparison results, the common and different parameters in the URLs of 1, 2, and 3 are determined, and a link template for that category of page data is constructed based on these common and different parameters. In the other category of page data, the URLs of 4 and 5 are compared. Based on the comparison results, the common and different parameters in the URLs of 4 and 5 are determined, and a link template for that category of page data is constructed based on these common and different parameters.

[0069] In other embodiments, in action (b2), when classifying multiple subpage data belonging to the same root page data to obtain various types of page data, several sample page data can also be extracted from each type of page data. Here, they can be randomly extracted or extracted in descending order of page access frequency. The page links of the multiple sample page data are compared, and the same and different parameters in the page links of the multiple sample page data are extracted according to the comparison results. Based on the extracted same and different parameters, a link template for this type of page data is constructed.

[0070] Specifically, the link template for this type of page data is constructed based on the same and different parameters. This involves replacing different parameters with preset replacement operators, and then combining the same parameters with the replaced different parameters according to the order of their arrangement to obtain the link template for this type of page data. For example, in the previous example, the URL link for subpage data 4 is abc.4.news, and the URL link for subpage data 5 is abc.5.news. The same parameters are identified as "abc" and "new," and the different parameters are "4" and "5." The replacement operator "*" is used to replace "4" and "5," and the same parameters with the replaced different parameters are combined according to the order of their arrangement to obtain the link template "abc.*.news."

[0071] Of course, in the case of action (b2), if a root page has only one subpage, then the subpage belongs to a type of page, and the link template of that type of page is the URL link of the subpage.

[0072] As can be seen, through this embodiment, a corresponding URL link template can be constructed for each type of page data, and the URL link template can represent the common characteristics of the URL links of that type of page data.

[0073] After determining the link templates for various types of page data, in step S204, the page frame templates for various types of page data are also determined based on the HyperText Markup Language (HTML) elements of various types of page data.

[0074] In one embodiment, the page frame template for each type of page data is determined based on the Hypertext Markup Language (HTML) elements of that type of page data, specifically as follows:

[0075] (c1) When the website homepage data or the sub-category homepage data belonging to the website homepage data is regarded as a type of page data, multiple HTML elements corresponding to the type of page data at multiple different access times are obtained, and the common parts of the multiple HTM elements are extracted to form the page frame template of the type of page data.

[0076] (c2) When classifying the sub-page data belonging to the same root page data to obtain various types of page data, extract multiple sub-page data from each type of page data, obtain multiple HTML elements corresponding to these multiple sub-page data, extract the common parts from these multiple HTM elements, and construct the page frame template of this type of page data.

[0077] Based on the previous classification process of target page data, we know that there are three types of page data: website homepage data, subcategory homepage data, and subpage data belonging to the root page data. The first two types of page data each constitute a separate category, while the third type is further classified based on the domain name and path in the URL. Therefore, in action (c1), when website homepage data or subcategory homepage data belonging to the website homepage data are treated as a single category of page data, this category includes only one page data. Multiple HTML elements corresponding to accessing this page data at different times are obtained, and the common parts of these multiple HTM elements are extracted to form the page frame template for this page data. For example, if a website homepage WWW.A.COM is a category of page data, three HTML elements corresponding to accessing this page data at different times, such as the past week, three days, and one day, are obtained, and the common parts of these three HTM elements are extracted to form the page frame template for this page data. The page frame template can also be called a UI template.

[0078] In action (c2), when classifying multiple subpage data belonging to the same root page data into various types of page data, for each type of page data, several subpage data are extracted from each type of page data. This can be done randomly or in descending order of page access frequency. Multiple sets of HTML elements corresponding to these subpage data are obtained, and the common parts of these multiple HTM elements are extracted to form the page frame template for that type of page data. For example, if there are 5 subpage data 1, 2, 3, 4, and 5, and these 5 subpage data are classified into two types of page data 1, 2, 3 and 4, 5, in one type of page data, 1 and 2 are extracted from 1, 2, 3, and two sets of HTML elements corresponding to 1 and 2 are obtained. The common parts of these two sets of HTM elements are extracted to form the page frame template for that type of page data. In the other type of page data, 4 and 5 are extracted, and two sets of HTML elements corresponding to 4 and 5 are obtained. The common parts of these two sets of HTM elements are extracted to form the page frame template for that type of page data.

[0079] Of course, in the case of action (c2), if a root page has only one child page, then the child page itself belongs to a type of page data. In this case, the action (c1) can be used to obtain multiple HTML elements corresponding to the child page at multiple different access times, extract the common parts of the multiple HTML elements, and form the page frame template of the child page.

[0080] As can be seen, through this embodiment, a corresponding page frame template can be determined for each type of page data. This page frame template can represent the common characteristics of the webpage frame of this type of page data, that is, the common characteristics of the UI.

[0081] In step S206 above, the content source of page content for various types of page data is further analyzed to obtain page content source rules for various types of page data; the page content source rules include link templates used to provide content source links for page content. In one embodiment, this step specifically includes:

[0082] (d1) When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain the content source link used to provide page content to this type of page data, and use the content source link as the link template for the content source link to provide page content to this type of page data;

[0083] (d2) When classifying the sub-page data belonging to the same root page data to obtain various types of page data, extract multiple sample page data in each type of page data, obtain the content source links used to provide page content to the sample page data, compare the content source links corresponding to each sample page data in each type of page data, and construct the link template for providing page content to each type of page data based on the comparison results.

[0084] Based on the preceding target page data classification process, we know that there are three types of page data: website homepage data, subcategory homepage data, and subpage data belonging to the root page data. The first two types of page data each constitute a separate category, while the third type is further classified based on the domain name and path in the URL. Therefore, in action (d1), when website homepage data or subcategory homepage data belonging to the website homepage data are classified as a single category, this category contains only one page data. The content source link providing the page content to this page data is obtained, and this content source link is used as the link template for the content source links providing content to this category of page data. For example, if a website homepage WWW.A.COM is a category of page data, the content source links base1.com and data1.com providing the page content to this page data are obtained through manual statistics, and base1.com and data1.com are used as the link template for the content source links providing content to this category of page data.

[0085] In action (d2), when classifying multiple subpage data belonging to the same root page data to obtain various types of page data, multiple sample page data are extracted from each type of page data. These can be randomly extracted or extracted in descending order of page access frequency. The content source links used to provide page content to the sample page data are obtained. In each type of page data, the content source links corresponding to each sample page data are compared. Based on the comparison results, the same and different parameters in the content source links are extracted. Based on the extracted same and different parameters, a link template for providing page content to each type of page data is constructed. For example, given five subpages (1, 2, 3, 4, 5), when classifying these five subpages into two categories (1, 2, 3 and 4, 5), in one category, pages 1 and 2 are extracted as sample pages. The content source link aaaa.bbbb.com, used to provide content to page 1, and the content source link aaaa.cccc.com, used to provide content to page 2, are obtained. The content source links aaaa.bbbb.com and aaaa.cccc.com are compared. Based on the comparison results, the common parameter aaaa.com and the different parameters bbbb and cccc are extracted from the content source links. Based on these extracted common and different parameters, a link template for providing content to each category of page data is constructed, resulting in aaaa.****.com.

[0086] In another type of page data, pages 4 and 5 are extracted as sample pages. The content source links mmm.111.com and nnn.111.com used by users to provide page content to page 4 are obtained, as are mmm.222.com and nnn.222.com used to provide page content to page 5. These content source links mmm.111.com, mmm.222.com, nnn.111.com, and nnn.222.com are compared. Based on the comparison results, the common parameters mmm.com and nnn.com and the different parameters 111 and 222 are extracted from the content source links. Based on these extracted common and different parameters, link templates for providing page content to each type of page data are constructed, resulting in mmm.***.com and nnn.***.com. This example demonstrates that when each sample page data has multiple content source links and the number of content source links is the same, a link template for each content source link is generated.

[0087] Specifically, the link template for the content source link is constructed based on the same parameters and different parameters. This involves replacing different parameters with preset replacement characters, and combining the same parameters and the replaced different parameters according to the order of arrangement between the same parameters and different parameters to construct the link template for the content source link.

[0088] For example, in the example above, for aaaa.bbbb.com and aaaa.cccc.com, we determine that the common parameters are aaaa and com, and the different parameters are bbbb and cccc. Then, we use the substitution symbol * to replace bbbb and cccc, and combine the common parameters and the replaced different parameters according to the order of the common parameters and the different parameters to get the link template aaaa.****.com.

[0089] Of course, in the case of action (d2), if a root page has only one subpage, then the subpage belongs to a type of page. In this case, action (d1) can be used to obtain the content source link that provides page content to the page, and use the content source link as the link template for the content source link that provides page content to the page.

[0090] As can be seen, through this embodiment, a corresponding page content source rule can be determined for each type of page data. The page content source rule can include a link template for providing content source links for page content, thereby reflecting the common source of page content for this type of page data through the page content source rule.

[0091] As demonstrated above, after obtaining multiple target page data sets, it's possible to categorize the data and acquire link templates, page frame templates, and content source rules for each type of page data. For example, for a certain type of page data, its link template might be www.abc.***.com, and its page frame template might be... <span id=”title”> <div class=”content”> The page content sources include www.base.***.com and www.data.***.com. When determining the page frame template, the Cascading Style Sheets (CSS) for this type of page data are retrieved and saved together. The CSS for this type of page data can be the CSS of the sample page data within that type of page data. When classifying website homepage data or subcategories of homepage data belonging to the website homepage as a single category of page data, the sample page data is the website homepage data or the subcategory homepage data. When classifying various subpage data belonging to the same root page data to obtain different categories of page data, the sample page data is the page data extracted from that category of page data. The extraction method can be random extraction or extraction in descending order of page access frequency.

[0092] Finally, in step S208, the link templates, page frame templates, and page content source rules for various types of page data are sent to the user terminal. This allows the user terminal to load the page frame of the page to be loaded based on the page frame template when loading a page link that matches the above link template, and to retrieve the page content of the page to be loaded from the network based on the page content source rules and load it into the page frame of the page to be loaded, so as to display the page to be loaded.

[0093] As can be seen, in this embodiment, when loading a page, the user terminal can first load the page frame based on the page frame template received locally, and then obtain and load the page content from the network, thereby saving the time spent requesting the page frame, improving the page loading speed, and eliminating the need to set up a proxy server for page loading. This solves the problem that existing technologies require setting up a proxy server when accelerating web pages, which is complex and costly.

[0094] The following describes the detailed process of page loading on the user terminal. Figure 4 This is a schematic flowchart illustrating a page loading method provided in another embodiment of this specification. Figure 4 The page loading method in the code is applied to the user terminal and executed by the user terminal, such as... Figure 4 As shown, the process includes:

[0095] Step S402: Obtain and store the link templates, page frame templates, and page content source rules for various types of page data sent by the server; the page content source rules include link templates used to provide content source links for page content;

[0096] Step S404: After obtaining the page loading request, determine whether there is a target template in the link templates of various types of page data that matches the page link of the page to be loaded.

[0097] Step S406: If it exists, load the target page frame template that belongs to the same type of page data as the target template to display the page frame of the page to be loaded.

[0098] Step S408: Based on the target page content source rules that belong to the same type of page data as the target template, obtain the page content of the page to be loaded from the network and load it into the page frame of the page to be loaded to display the page to be loaded.

[0099] As can be seen, in this embodiment, when loading a page, the user terminal can first load the page frame based on the page frame template received locally, and then obtain and load the page content from the network, thereby saving the time spent requesting the page frame, improving the page loading speed, and eliminating the need to set up a proxy server for page loading. This solves the problem that existing technologies require setting up a proxy server when accelerating web pages, which is complex and costly.

[0100] In step S402 above, the user terminal obtains and stores the link templates, page frame templates, and page content source rules for various types of page data sent by the server. The page content source rules include link templates used to provide content source links for the page content. The user terminal can store the link templates, page frame templates, and page content source rules for various types of page data locally.

[0101] In step S404 above, after the user terminal obtains a page loading request based on the user's page access operation, it determines whether there is a target template in the link templates of various types of page data stored locally that matches the page link of the page to be loaded. For example, if the page link of the page to be loaded is www.abc.123.com, and the user terminal has pre-stored a link template for a certain type of page data as www.abc.***.com, then it is determined that there is a target template in the link templates of various types of page data stored locally that matches the page link of the page to be loaded.

[0102] If present, in step S406 above, the user terminal loads a target page frame template (i.e., a UI frame) belonging to the same type of page data as the target template to display the page frame of the page to be loaded. Specifically, after determining that a target template exists, the page data category to which the target template belongs is determined, and a page frame template of that type of page data is retrieved from local storage as the target page frame template. This target page frame template is then loaded to display the page frame of the page to be loaded. Page frames include, but are not limited to, the various frame components within a webpage.

[0103] In step S408 above, based on the target page content source rule belonging to the same type of page data as the target template, the page content of the page to be loaded is obtained from the network and loaded into the page frame of the page to be loaded to display the page to be loaded. Specifically, after determining that a target template is stored, the page data category to which the target template belongs is determined, and the page content source rule of that type of page data is obtained from local storage as the target page content source rule. In one embodiment, obtaining the page content of the page to be loaded from the network based on the target page content source rule belonging to the same type of page data as the target template specifically involves:

[0104] (e1) Analyze the page to be loaded to determine the source link of the page content corresponding to the page to be loaded;

[0105] (e2) In the page content source links corresponding to the page to be loaded, filter the links that match the link templates included in the target page content source rules;

[0106] (e3) Request the content corresponding to the matching link from the network and use it as the page content of the page to be loaded.

[0107] Specifically, first, the page to be loaded is analyzed to determine the source links of its content. For example, the analysis might identify three source links: link 1, link 2, and link 3. Then, among these source links, links matching the templates included in the target page's content source rules are filtered. For instance, if the target page's content source rules include templates A and B, links matching either template A or template B are filtered from links 1, 2, and 3. Based on the filtering results, link 1 matches template A, link 2 matches template B, and link 3 has no matching template. Finally, the content corresponding to these matching links is requested from the network—that is, the content corresponding to links 1 and 2—as the page content for the page to be loaded. Since link 3 has no matching template, it's possible that link 3 is a temporary advertising link generated for the page to be loaded.

[0108] Finally, the content of the page to be loaded is loaded into the page frame of the page to be loaded, thus displaying the complete page to be loaded.

[0109] As can be seen, in this embodiment, when loading a page, the user terminal can first load the page frame based on the page frame template received locally, and then obtain and load the page content from the network, thereby saving the time spent requesting the page frame, improving the page loading speed, and eliminating the need to set up a proxy server for page loading. This solves the problem that existing technologies require setting up a proxy server when accelerating web pages, which is complex and costly.

[0110] In one embodiment, the server periodically (e.g., every week) re-determines frequently accessed pages as target page data based on internet users' webpage browsing patterns, and then re-processes the data. Figure 2 The method process categorizes the latest target page data and sends link templates, page frame templates, and page content source rules for various types of page data to the user terminal, thereby enabling the user terminal to store link templates, page frame templates, and page content source rules for the latest target page data.

[0111] In one embodiment, if in step S404 above, it is determined that there is no target template in the link templates of various types of page data that matches the page link of the page to be loaded, then on the one hand, the user terminal can load the page to be loaded in the usual way; on the other hand, the user terminal requests the server to use the page data to be loaded as the target page data, requests the server to reclassify the target page data, and updates the link templates, page frame templates, and page content source rules of various types of page data.

[0112] In one embodiment, after receiving link templates, page frame templates, and page content source rules for various types of page data from the server, the user terminal sets the validity period of these link templates, page frame templates, and page content source rules to one week or other predetermined duration. Within the validity period, the user terminal... Figure 4 When the validity period of the loading page expires, the user terminal can actively request the server to reissue the link templates, page frame templates, and page content source rules for various page data.

[0113] Figure 5 This is a schematic diagram of a page loading device provided in one embodiment of this specification. The device is applied to a server-side application. Figure 5 As shown, the device includes:

[0114] Page classification unit 51 is used to acquire multiple target page data, classify each target page data according to the subordinate relationship between each target page data and the page link of each target page data, and obtain various types of page data.

[0115] The first determining unit 52 is used to determine the link template of each type of page data based on the page links of each type of page data, and to determine the page frame template of each type of page data based on the Hypertext Markup Language (HTML) elements of each type of page data.

[0116] The second determining unit 53 is used to analyze the content source of the page content of various types of page data to obtain the page content source rules of various types of page data; the page content source rules include link templates for providing content source links of page content;

[0117] The data distribution unit 54 is used to distribute the link templates, page frame templates, and page content source rules of various types of page data to the user terminal, so that when the user terminal loads a page to be loaded that matches the link template, it loads the page frame of the page to be loaded based on the page frame template, obtains the page content of the page to be loaded from the network based on the page content source rules, and loads it into the page frame of the page to be loaded to display the page to be loaded.

[0118] Optionally, the page classification unit is specifically used for:

[0119] If the target page data is website homepage data or homepage data belonging to a subcategory of website homepage data, then the target page data is considered as one type of page data; wherein, homepage data of different websites belong to different categories; homepage data of different subcategories belong to different categories;

[0120] If the target page data is subpage data belonging to the same root page data, then the subpage data belonging to the same root page data is classified according to the page links of each subpage data belonging to the same root page data to obtain various types of page data; wherein, the root page data includes the sub-category homepage data and the sub-level page data of the sub-category homepage data.

[0121] Optionally, the page classification unit is further specifically used for:

[0122] Retrieve the page links of each subpage belonging to the same root page data, and compare the domain names and paths in the retrieved page links;

[0123] Subpages belonging to the same root page and having the same domain name and path are grouped into one type of page data.

[0124] Optionally, the first determining unit is specifically used for:

[0125] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, use the page links of this type of page data as the link templates of this type of page data.

[0126] When classifying the subpage data belonging to the same root page data to obtain various types of page data, the page links of the page data of that type are compared, and a link template for the page data of that type is constructed based on the comparison results.

[0127] Optionally, the first determining unit is specifically used for:

[0128] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain multiple HTML elements corresponding to this type of page data at multiple different access times, extract the common parts in these multiple HTM elements, and construct the page frame template of this type of page data.

[0129] When classifying the subpage data belonging to the same root page data to obtain various types of page data, multiple subpage data are extracted from each type of page data, and multiple HTML elements corresponding to these multiple subpage data are obtained. The common parts of these multiple HTML elements are extracted to form the page frame template of this type of page data.

[0130] Optionally, the second determining unit is specifically used for:

[0131] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain the content source link used to provide page content to the page data of that type, and use the content source link as the link template for the content source link to provide page content to the page data of that type;

[0132] When classifying subpage data belonging to the same root page data to obtain various types of page data, multiple sample page data are extracted from each type of page data, and content source links for providing page content to the sample page data are obtained. In each type of page data, the content source links corresponding to each sample page data are compared, and a link template for providing page content to each type of page data is constructed based on the comparison results.

[0133] The page loading device in this embodiment can implement the various processes of the aforementioned page loading method applied to the server side and achieve the same function and effect, which will not be repeated here.

[0134] Figure 6 This is a schematic diagram of a page loading device provided in another embodiment of this specification. This device is applied to a user terminal, such as... Figure 6 As shown, the device includes:

[0135] The data acquisition unit 61 is used to acquire and store the link templates, page frame templates, and page content source rules of various types of page data sent by the server; the page content source rules include link templates for providing content source links for page content;

[0136] The page judgment unit 62 is used to determine, after obtaining the page loading request, whether there is a target template in the link template of various types of page data that matches the page link of the page to be loaded.

[0137] The frame display unit 63 is used to load, if present, a target page frame template belonging to the same type of page data as the target template, so as to display the page frame of the page to be loaded.

[0138] The page display unit 64 is used to obtain the page content of the page to be loaded from the network based on the target page content source rules that belong to the same type of page data as the target template, and load it into the page frame of the page to be loaded to display the page to be loaded.

[0139] Optionally, the page display unit is specifically used for:

[0140] The page to be loaded is analyzed to determine the source link of the page content corresponding to the page to be loaded;

[0141] Among the page content source links corresponding to the page to be loaded, links that match the link templates included in the target page content source rules are filtered out;

[0142] The content corresponding to the matching link is requested from the network and used as the page content of the page to be loaded.

[0143] The page loading device in this embodiment can implement all the processes of the aforementioned page loading method applied to the user terminal and achieve the same function and effect, which will not be repeated here.

[0144] Furthermore, one embodiment of this specification also provides a page loading device. Figure 7 This is a schematic diagram of the structure of a page loading device provided in one embodiment of this specification, as shown below. Figure 7 As shown, the device includes a memory 701, a processor 702, a bus 703, and a communication interface 704. The memory 701, processor 702, and communication interface 704 communicate via the bus 703. The communication interface 704 may include input / output interfaces, including but not limited to a keyboard, mouse, monitor, microphone, and loudspeaker.

[0145] In one embodiment, the memory 701 stores computer-executable instructions that can run on the processor 702, which, when executed by the processor 702, implement the following process:

[0146] Multiple target page data are acquired, and the target page data is classified according to the subordinate relationship between the target page data and the page links of the target page data to obtain various types of page data.

[0147] Based on the page links of each type of page data, determine the link templates of each type of page data; based on the Hypertext Markup Language (HTML) elements of each type of page data, determine the page frame templates of each type of page data.

[0148] The content sources of page content for each type of page data are analyzed to obtain page content source rules for each type of page data; the page content source rules include link templates for providing content source links for page content;

[0149] The link templates, page frame templates, and page content source rules for various types of page data are distributed to the user terminal so that when the user terminal loads a page to be loaded that matches the link template, it loads the page frame of the page to be loaded based on the page frame template, and retrieves the page content of the page to be loaded from the network based on the page content source rules and loads it into the page frame of the page to be loaded, so as to display the page to be loaded.

[0150] Optionally, when the computer-executable instructions are executed by the processor, the target page data are classified according to the hierarchical relationship between the target page data and the page links of the target page data to obtain various types of page data, including:

[0151] If the target page data is website homepage data or homepage data belonging to a subcategory of website homepage data, then the target page data is considered as one type of page data; wherein, homepage data of different websites belong to different categories; homepage data of different subcategories belong to different categories;

[0152] If the target page data is subpage data belonging to the same root page data, then the subpage data belonging to the same root page data is classified according to the page links of each subpage data belonging to the same root page data to obtain various types of page data; wherein, the root page data includes the sub-category homepage data and the sub-level page data of the sub-category homepage data.

[0153] Optionally, when the computer-executable instructions are executed by the processor, the sub-page data belonging to the same root page data are classified according to the page links of the sub-page data belonging to the same root page data to obtain various types of page data, including:

[0154] Retrieve the page links of each subpage belonging to the same root page data, and compare the domain names and paths in the retrieved page links;

[0155] Subpages belonging to the same root page and having the same domain name and path are grouped into one type of page data.

[0156] Optionally, when the computer-executable instructions are executed by the processor, a link template for each type of page data is determined based on the page links of that type of page data, including:

[0157] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, use the page links of this type of page data as the link templates of this type of page data.

[0158] When classifying the subpage data belonging to the same root page data to obtain various types of page data, the page links of the page data of that type are compared, and a link template for the page data of that type is constructed based on the comparison results.

[0159] Optionally, when the computer-executable instructions are executed by the processor, the page frame templates for the various types of page data are determined based on the Hypertext Markup Language (HTML) elements of the various types of page data, including:

[0160] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain multiple HTML elements corresponding to this type of page data at multiple different access times, extract the common parts in these multiple HTM elements, and construct the page frame template of this type of page data.

[0161] When classifying the subpage data belonging to the same root page data to obtain various types of page data, multiple subpage data are extracted from each type of page data, and multiple HTML elements corresponding to these multiple subpage data are obtained. The common parts of these multiple HTML elements are extracted to form the page frame template of this type of page data.

[0162] Optionally, when the computer-executable instructions are executed by the processor, the content source of the page content of various types of page data is analyzed to obtain page content source rules for various types of page data, including:

[0163] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain the content source link used to provide page content to the page data of that type, and use the content source link as the link template for the content source link to provide page content to the page data of that type;

[0164] When classifying subpage data belonging to the same root page data to obtain various types of page data, multiple sample page data are extracted from each type of page data, and content source links for providing page content to the sample page data are obtained. In each type of page data, the content source links corresponding to each sample page data are compared, and a link template for providing page content to each type of page data is constructed based on the comparison results.

[0165] The page loading device in this embodiment can implement all the processes of the aforementioned page loading method applied to the server side and achieve the same function and effect, which will not be repeated here.

[0166] In another embodiment, the memory 701 stores computer-executable instructions that can run on the processor 702, which, when executed by the processor 702, implement the following process:

[0167] The system acquires and stores link templates, page frame templates, and page content source rules for various types of page data distributed by the server; the page content source rules include link templates used to provide content source links for page content.

[0168] After receiving a page loading request, determine whether there is a target template in the link templates of the various types of page data that matches the page link of the page to be loaded;

[0169] If it exists, load the target page frame template that belongs to the same type of page data as the target template to display the page frame of the page to be loaded;

[0170] Based on the target page content source rules that belong to the same type of page data as the target template, the page content of the page to be loaded is obtained from the network and loaded into the page frame of the page to be loaded to display the page to be loaded.

[0171] Optionally, when the computer-executable instructions are executed by the processor, the page content of the page to be loaded is obtained from the network based on the target page content source rules belonging to the same type of page data as the target template, including:

[0172] The page to be loaded is analyzed to determine the source link of the page content corresponding to the page to be loaded;

[0173] Among the page content source links corresponding to the page to be loaded, links that match the link templates included in the target page content source rules are filtered out;

[0174] The content corresponding to the matching link is requested from the network and used as the page content of the page to be loaded.

[0175] The page loading device in this embodiment can implement all the processes of the aforementioned page loading method applied to the user terminal and achieve the same function and effect, which will not be repeated here.

[0176] Furthermore, another embodiment of this specification provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process:

[0177] Multiple target page data are acquired, and the target page data is classified according to the subordinate relationship between the target page data and the page links of the target page data to obtain various types of page data.

[0178] Based on the page links of each type of page data, determine the link templates of each type of page data; based on the Hypertext Markup Language (HTML) elements of each type of page data, determine the page frame templates of each type of page data.

[0179] The content sources of page content for each type of page data are analyzed to obtain page content source rules for each type of page data; the page content source rules include link templates for providing content source links for page content;

[0180] The link templates, page frame templates, and page content source rules for various types of page data are distributed to the user terminal so that when the user terminal loads a page to be loaded that matches the link template, it loads the page frame of the page to be loaded based on the page frame template, and retrieves the page content of the page to be loaded from the network based on the page content source rules and loads it into the page frame of the page to be loaded, so as to display the page to be loaded.

[0181] Optionally, when the computer-executable instructions are executed by the processor, the target page data are classified according to the hierarchical relationship between the target page data and the page links of the target page data to obtain various types of page data, including:

[0182] If the target page data is website homepage data or homepage data belonging to a subcategory of website homepage data, then the target page data is considered as one type of page data; wherein, homepage data of different websites belong to different categories; homepage data of different subcategories belong to different categories;

[0183] If the target page data is subpage data belonging to the same root page data, then the subpage data belonging to the same root page data is classified according to the page links of each subpage data belonging to the same root page data to obtain various types of page data; wherein, the root page data includes the sub-category homepage data and the sub-level page data of the sub-category homepage data.

[0184] Optionally, when the computer-executable instructions are executed by the processor, the sub-page data belonging to the same root page data are classified according to the page links of the sub-page data belonging to the same root page data to obtain various types of page data, including:

[0185] Retrieve the page links of each subpage belonging to the same root page data, and compare the domain names and paths in the retrieved page links;

[0186] Subpages belonging to the same root page and having the same domain name and path are grouped into one type of page data.

[0187] Optionally, when the computer-executable instructions are executed by the processor, a link template for each type of page data is determined based on the page links of that type of page data, including:

[0188] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, use the page links of this type of page data as the link templates of this type of page data.

[0189] When classifying the subpage data belonging to the same root page data to obtain various types of page data, the page links of the page data of that type are compared, and a link template for the page data of that type is constructed based on the comparison results.

[0190] Optionally, when the computer-executable instructions are executed by the processor, the page frame templates for the various types of page data are determined based on the Hypertext Markup Language (HTML) elements of the various types of page data, including:

[0191] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain multiple HTML elements corresponding to this type of page data at multiple different access times, extract the common parts in these multiple HTM elements, and construct the page frame template of this type of page data.

[0192] When classifying the subpage data belonging to the same root page data to obtain various types of page data, multiple subpage data are extracted from each type of page data, and multiple HTML elements corresponding to these multiple subpage data are obtained. The common parts of these multiple HTML elements are extracted to form the page frame template of this type of page data.

[0193] Optionally, when the computer-executable instructions are executed by the processor, the content source of the page content of various types of page data is analyzed to obtain page content source rules for various types of page data, including:

[0194] When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain the content source link used to provide page content to the page data of that type, and use the content source link as the link template for the content source link to provide page content to the page data of that type;

[0195] When classifying subpage data belonging to the same root page data to obtain various types of page data, multiple sample page data are extracted from each type of page data, and content source links for providing page content to the sample page data are obtained. In each type of page data, the content source links corresponding to each sample page data are compared, and a link template for providing page content to each type of page data is constructed based on the comparison results.

[0196] The computer-readable storage medium includes read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc.

[0197] The storage medium provided in one embodiment of this specification can implement the various processes of the aforementioned page loading method applied to the server side and achieve the same function and effect, which will not be repeated here.

[0198] Furthermore, another embodiment of this specification provides a computer-readable storage medium for storing computer-executable instructions that, when executed by a processor, implement the following process:

[0199] The system acquires and stores link templates, page frame templates, and page content source rules for various types of page data distributed by the server; the page content source rules include link templates used to provide content source links for page content.

[0200] After receiving a page loading request, determine whether there is a target template in the link templates of the various types of page data that matches the page link of the page to be loaded;

[0201] If it exists, load the target page frame template that belongs to the same type of page data as the target template to display the page frame of the page to be loaded;

[0202] Based on the target page content source rules that belong to the same type of page data as the target template, the page content of the page to be loaded is obtained from the network and loaded into the page frame of the page to be loaded to display the page to be loaded.

[0203] Optionally, when the computer-executable instructions are executed by the processor, the page content of the page to be loaded is obtained from the network based on the target page content source rules belonging to the same type of page data as the target template, including:

[0204] The page to be loaded is analyzed to determine the source link of the page content corresponding to the page to be loaded;

[0205] Among the page content source links corresponding to the page to be loaded, links that match the link templates included in the target page content source rules are filtered out;

[0206] The content corresponding to the matching link is requested from the network and used as the page content of the page to be loaded.

[0207] The computer-readable storage medium includes read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc.

[0208] The storage medium provided in one embodiment of this specification can implement the various processes of the aforementioned page loading method applied to a user terminal and achieve the same function and effect, which will not be repeated here.

[0209] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0210] The above description is merely an embodiment of this specification and is not intended to limit this document. Various modifications and variations can be made to the embodiments described in this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this document should be included within the scope of the claims of this document.

Claims

1. A page loading method, characterized in that, include: Multiple target page data are acquired, and the target page data is classified according to the subordinate relationship between the target page data and the page links of the target page data to obtain various types of page data. Based on the page links of each type of page data, determine the link templates of each type of page data; based on the Hypertext Markup Language (HTML) elements of each type of page data, determine the page frame templates of each type of page data. The content sources of page content for each type of page data are analyzed to obtain page content source rules for each type of page data; the page content source rules include link templates for providing content source links for page content; The link templates, page frame templates, and page content source rules of various types of page data are distributed to the user terminal so that when the user terminal loads a page to be loaded that matches the link template, it loads the page frame of the page to be loaded based on the page frame template, obtains the page content of the page to be loaded from the network based on the page content source rules, and loads it into the page frame of the page to be loaded to display the page to be loaded. The step of determining link templates for various types of page data based on page links, and determining page frame templates for various types of page data based on Hypertext Markup Language (HTML) elements, includes: When treating website homepage data or subcategories of homepage data as a type of page data, the page links of the type of page data are used as the link templates of the type of page data; multiple HTML elements corresponding to the type of page data at multiple different access times are obtained, and the common parts of the multiple HTML elements are extracted to form the page frame template of the type of page data. When classifying the subpage data belonging to the same root page data to obtain various types of page data, the page links of the page data of the class are compared, and the link template of the page data of the class is constructed based on the comparison results. Multiple subpage data are extracted from each type of page data, multiple HTML elements corresponding to the multiple subpage data are obtained, and the common parts in the multiple HTML elements are extracted to form the page frame template of the page data of the class. The content sources of the page content for each type of page data are analyzed to obtain the page content source rules for each type of page data, including: When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain the content source link used to provide page content to the type of page data, and use the content source link as the link template for the content source link to provide page content to the type of page data; When classifying the subpage data belonging to the same root page data to obtain various types of page data, multiple sample page data are extracted from each type of page data, and content source links used to provide page content to the sample page data are obtained. In each type of page data, the content source links corresponding to each sample page data are compared, and a link template for providing page content to each type of page data is constructed based on the comparison results.

2. The method according to claim 1, characterized in that, Based on the hierarchical relationships between the target page data and the page links of the target page data, the target page data is classified to obtain various types of page data, including: If the target page data is website homepage data or homepage data belonging to a subcategory of website homepage data, then the target page data is considered as one type of page data; wherein, homepage data of different websites belong to different categories; homepage data of different subcategories belong to different categories; If the target page data is subpage data belonging to the same root page data, then the subpage data belonging to the same root page data is classified according to the page links of each subpage data belonging to the same root page data to obtain various types of page data; wherein, the root page data includes the sub-category homepage data and the sub-level page data of the sub-category homepage data.

3. The method according to claim 2, characterized in that, Based on the page links of the subpages belonging to the same root page data, the subpages are categorized to obtain various types of page data, including: Retrieve the page links of each subpage belonging to the same root page data, and compare the domain names and paths in the retrieved page links; Subpages belonging to the same root page and having the same domain name and path are grouped into one type of page data.

4. A page loading method, characterized in that, include: The system acquires and stores link templates, page frame templates, and page content source rules for various types of page data distributed by the server; the page content source rules include link templates used to provide content source links for page content. The server executes the page loading method as described in any one of claims 1-3; After receiving a page loading request, determine whether there is a target template in the link templates of the various types of page data that matches the page link of the page to be loaded; If it exists, load the target page frame template that belongs to the same type of page data as the target template to display the page frame of the page to be loaded; Based on the target page content source rules that belong to the same type of page data as the target template, the page content of the page to be loaded is obtained from the network and loaded into the page frame of the page to be loaded to display the page to be loaded.

5. The method according to claim 4, characterized in that, Based on the target page content source rules belonging to the same type of page data as the target template, the page content of the page to be loaded is obtained from the network, including: The page to be loaded is analyzed to determine the source link of the page content corresponding to the page to be loaded; Among the page content source links corresponding to the page to be loaded, links that match the link templates included in the target page content source rules are filtered out; The content corresponding to the matching link is requested from the network and used as the page content of the page to be loaded.

6. A page loading device, characterized in that, include: A page classification unit is used to acquire multiple target page data, classify the target page data according to the subordinate relationship between the target page data and the page links of the target page data, and obtain various types of page data; The first determining unit is used to determine the link template of each type of page data based on the page links of each type of page data, and to determine the page frame template of each type of page data based on the Hypertext Markup Language (HTML) elements of each type of page data. The second determining unit is used to analyze the content source of the page content of various types of page data to obtain the page content source rules of various types of page data; the page content source rules include link templates for providing content source links of page content; The data delivery unit is used to deliver link templates, page frame templates, and page content source rules of various types of page data to the user terminal, so that when the user terminal loads a page to be loaded that matches the link template, it loads the page frame of the page to be loaded based on the page frame template, and obtains the page content of the page to be loaded from the network based on the page content source rules and loads it into the page frame of the page to be loaded, so as to display the page to be loaded. In the first determining unit, the step of determining the link template for each type of page data based on the page links of each type of page data, and determining the page frame template for each type of page data based on the Hypertext Markup Language (HTML) elements of each type of page data, includes: When treating website homepage data or subcategories of homepage data as a type of page data, the page links of the type of page data are used as the link templates of the type of page data; multiple HTML elements corresponding to the type of page data at multiple different access times are obtained, and the common parts of the multiple HTML elements are extracted to form the page frame template of the type of page data. When classifying the subpage data belonging to the same root page data to obtain various types of page data, the page links of the page data of the class are compared, and the link template of the page data of the class is constructed based on the comparison results. Multiple subpage data are extracted from each type of page data, multiple HTML elements corresponding to the multiple subpage data are obtained, and the common parts in the multiple HTML elements are extracted to form the page frame template of the page data of the class. In the second determining unit, the content source of the page content of each type of page data is analyzed to obtain the page content source rules for each type of page data, including: When treating website homepage data or sub-category homepage data belonging to website homepage data as a type of page data, obtain the content source link used to provide page content to the type of page data, and use the content source link as the link template for the content source link to provide page content to the type of page data; When classifying the subpage data belonging to the same root page data to obtain various types of page data, multiple sample page data are extracted from each type of page data, and content source links used to provide page content to the sample page data are obtained. In each type of page data, the content source links corresponding to each sample page data are compared, and a link template for providing page content to each type of page data is constructed based on the comparison results.

7. The apparatus according to claim 6, characterized in that, The page classification unit is specifically used for: If the target page data is website homepage data or homepage data belonging to a subcategory of website homepage data, then the target page data is considered as one type of page data; wherein, homepage data of different websites belong to different categories; homepage data of different subcategories belong to different categories; If the target page data is subpage data belonging to the same root page data, then the subpage data belonging to the same root page data is classified according to the page links of each subpage data belonging to the same root page data to obtain various types of page data; wherein, the root page data includes the sub-category homepage data and the sub-level page data of the sub-category homepage data.

8. The apparatus according to claim 7, characterized in that, The page classification unit is also specifically used for: Retrieve the page links of each subpage belonging to the same root page data, and compare the domain names and paths in the retrieved page links; Subpages belonging to the same root page and having the same domain name and path are grouped into one type of page data.

9. A page loading device, characterized in that, include: A data acquisition unit is used to acquire and store link templates, page frame templates, and page content source rules for various types of page data sent by the server; the page content source rules include link templates for providing content source links for page content; the server includes a page loading device as described in any one of claims 6-8; The page judgment unit is used to determine, after obtaining the page loading request, whether there is a target template in the link templates of various types of page data that matches the page link of the page to be loaded. A frame display unit is used, if it exists, to load a target page frame template that belongs to the same type of page data as the target template, so as to display the page frame of the page to be loaded; The page display unit is used to obtain the page content of the page to be loaded from the network based on the target page content source rules that belong to the same type of page data as the target template, and load it into the page frame of the page to be loaded to display the page to be loaded.

Citation Information

Patent Citations

  • Generating templates of nodes to structure content objects and steps to process the content objects

    CN101206570A

  • Method and device for dynamically generating web pages

    CN102902673A