Method and apparatus for processing website site

By constructing multiple data structures to generate different types of websites, the problem of not being able to generate multiple types of websites at once in existing technologies has been solved, achieving efficient and flexible website processing.

CN116340689BActive Publication Date: 2026-07-21BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Filing Date
2023-04-11
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In existing technologies, the processing of website sites is done independently, making it impossible to generate multiple types of website sites in a single operation. Furthermore, it is impossible to adaptively adjust other types of sites during updates, resulting in low processing efficiency and poor flexibility.

Method used

By constructing multiple data structures based on the same set of website materials, different types of websites can be generated, and other websites can be adaptively adjusted during the update process, thus realizing the generation and updating of multiple types of websites.

Benefits of technology

It enables the generation of multiple websites in a single operation, improving processing flexibility and efficiency, and adapting to display needs on different platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116340689B_ABST
    Figure CN116340689B_ABST
Patent Text Reader

Abstract

The present disclosure provides a website site processing method and device, and relates to the technical field of data processing and computer. The specific implementation scheme is: obtaining website materials according to website site generation requirements, constructing multiple data structures according to the website materials, wherein different data structures are used to generate different categories of website sites, and generating a website site corresponding to each data structure according to the data structure, which can generate multiple website sites based on a set of website materials, that is, the processing device can obtain multiple website sites through one-time operation, and the display effect on different terminals can be achieved through one-time operation, thereby improving the flexibility and diversity of website site processing and the efficiency of generating multiple website sites.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the fields of data processing and computer technology, and in particular to a method and apparatus for processing website sites. Background Technology

[0002] With the development of Internet technology, website processing (such as generation and / or updating) has become an important research direction.

[0003] In related technologies, different categories of websites are processed in an "independent processing" manner, such as generating one category of websites at a time. Summary of the Invention

[0004] This disclosure provides a method and apparatus for processing websites to improve the efficiency of website processing.

[0005] According to a first aspect of this disclosure, a method for processing a website site is provided, comprising:

[0006] Obtain website materials based on the website's generation requirements;

[0007] Based on the website materials, various data structures are constructed, with different data structures used to generate different categories of website sites;

[0008] Generate a website site corresponding to each data structure.

[0009] According to a second aspect of this disclosure, a website processing apparatus is provided, comprising:

[0010] The acquisition unit is used to acquire website materials based on the website's generation requirements.

[0011] The building unit is used to build various data structures based on the website materials, wherein different data structures are used to generate different types of website sites;

[0012] The generation unit is used to generate a website site corresponding to each data structure.

[0013] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0014] At least one processor; and

[0015] A memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0017] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method according to the first aspect.

[0018] According to a fifth aspect of this disclosure, a computer program product is provided, the computer program product comprising: a computer program stored in a readable storage medium, wherein at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the method described in the first aspect.

[0019] The website processing method and apparatus disclosed herein include: acquiring website materials according to website generation requirements; constructing multiple data structures based on the website materials, wherein different data structures are used to generate different types of website sites; generating a website site corresponding to each data structure; and by constructing multiple data structures based on website materials to generate different website sites corresponding to different data structures, it is possible to generate multiple website sites based on a set of website materials. That is, the processing apparatus can obtain multiple website sites in a single operation, and the display effect on different terminals can be achieved in a single operation, thereby improving the flexibility and diversity of website processing and increasing the efficiency of generating multiple website sites.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0021] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0022] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure;

[0023] Figure 2 This is a schematic diagram according to the second embodiment of the present disclosure;

[0024] Figure 3 This is a schematic diagram of an embodiment of the present disclosure;

[0025] Figure 4 This is a schematic diagram of another embodiment of the present disclosure;

[0026] Figure 5 This is a schematic diagram according to the third embodiment of the present disclosure;

[0027] Figure 6 This is a schematic diagram according to the fourth embodiment of the present disclosure;

[0028] Figure 7 This is a schematic diagram according to the fifth embodiment of the present disclosure;

[0029] Figure 8 This is a block diagram of an electronic device used to implement the website processing method of the embodiments of this disclosure. Detailed Implementation

[0030] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0031] The terms “comprising” and “having”, and any variations thereof, in this disclosure are intended to cover but not exclusively include, for example, a product or device that includes a series of components is not necessarily limited to those components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0032] To facilitate the reader's understanding of this disclosure, at least some of the terms used in this disclosure are explained below:

[0033] A website site, often simply called a site, refers to the information between the second and third forward slashes of a Uniform Resource Locator (URL), specifically the information between the second and third forward slashes in the URL.

[0034] Alternatively, a website can be simply understood as the pages of a website. For example, a website is generally a multi-page website, meaning it includes multiple pages. These multiple pages could include: a homepage, a details page, and a landing page.

[0035] Website materials, or simply materials, refer to the content displayed on the pages of a website.

[0036] A component is an encapsulation of data and methods. It can be understood as a set of data that provides some operations to achieve some simple functions. For example, a button component is used to implement the function of a button; a jump component is used to implement the function of jumping, and so on, which will not be listed here.

[0037] Data structure refers to the way computers store and organize data.

[0038] Website processing methods can be described from two dimensions: one is the generation dimension, or creation dimension, which can be understood as the generation process of the website; the other is the update dimension, or editing dimension, which can be understood as the update process of the already generated website.

[0039] In related technologies, taking the generation process as an example, the generation processes for different categories of websites are independent of each other. For example, websites of category A and websites of category B are two different categories of websites. Building a website of category A and building a website of category B are two independent building processes, and they are not related to each other.

[0040] Similarly, websites in update category A and websites in update category B are two independent structures and are not related to each other.

[0041] In other words, in the relevant technologies, only one website can be operated independently at a time, and it is not possible to generate "multiple websites" through a single operation.

[0042] For example, if a website of category A is a PC (personal computer) website and a website of category B is a mobile HTML5 (H5) website, then the PC website and the H5 website need to be built separately. It is not possible to build the PC website and the H5 website at the same time, that is, it is not possible to generate a "dual website" (which includes both PC website and H5 website) at the same time.

[0043] Correspondingly, when updating a website, it is necessary to update both the PC website and the H5 website separately. In other words, it is not possible to adapt the H5 website to the PC website update process, nor is it possible to adapt the PC website to the H5 website update process.

[0044] To avoid at least one of the aforementioned technical problems, this disclosure proposes an inventive technical concept: constructing multiple data structures for generating different types of website sites based on the same set of website materials, so as to generate a website site corresponding to each data structure, and accordingly, when a website site is updated, other website sites are adaptively adjusted based on the update process and each data structure.

[0045] For example, based on the same set of website materials, both the data structure of an H5 website and the data structure of a PC website are generated. For easy distinction, the data structure of the H5 website can be called the H5 data structure, and the data structure of the PC website can be called the PC data structure. An H5 website is generated based on the H5 data structure, and a PC website is generated based on the PC data structure.

[0046] Accordingly, when the H5 website is updated, the PC website can be updated accordingly. Alternatively, when the H5 website is updated, the H5 website can be updated accordingly.

[0047] Based on the above-mentioned inventive concept, this disclosure provides a method and apparatus for processing website sites, applied to data processing and computer technology, to generate "multiple website sites" and improve the efficiency and flexibility of website site processing.

[0048] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure, as shown below. Figure 1 As shown, the website processing method of this disclosure includes:

[0049] S101: Obtain website materials based on the website's generation requirements.

[0050] For example, the execution subject of this embodiment can be a website processing device (hereinafter referred to as processing device). The processing device can be a server, a terminal device, a processor, a chip, etc., which will not be listed here.

[0051] For example, if the processing device is a server, the processing device can be a standalone server or a server cluster; it can be a cloud server (such as a server deployed on a cloud platform) or a local server, and this embodiment does not limit it.

[0052] Website requirements refer to the needs for generating a website, such as the content the website needs to display. Correspondingly, website materials can be understood as the materials obtained that meet the website requirements, that is, the materials that satisfy the website's needs.

[0053] The following example can be used to obtain website materials:

[0054] In one example, the processing unit can be connected to the material acquisition device and receive website materials sent by the material acquisition device.

[0055] In another example, the processing device can provide a tool for loading website materials, which users can use to transfer website materials to the processing device.

[0056] The tool for loading website materials can be an interface for connecting to external devices, such as an interface for connecting to other storage devices, through which website materials transmitted by external devices can be obtained; the tool for loading website materials can also be a display device, such as a processing device that can input the website material loading function on the display device, through which users can import website materials to the processing device, and the processing device can obtain the imported website materials.

[0057] S102: Construct multiple data structures based on website materials, where different data structures are used to generate different categories of website sites.

[0058] This embodiment does not limit the number of data structures; it can be determined based on requirements. For example, multiple data structures can be two, three, or even more.

[0059] For example, various data structures are included: data structure 1 up to data structure N (N is a positive integer greater than or equal to 2). Accordingly, data structure 1 is used to generate websites of category 1, up to data structure N used to generate websites of category N.

[0060] Based on the above analysis, N can be equal to 2, and the two data structures are H5 data structure and PC data structure, respectively. H5 data structure is used to generate H5 website sites, and PC data structure is used to generate PC website sites.

[0061] In other words, in this embodiment, the website materials used to construct multiple data structures are the same set of website materials. That is, multiple data structures can be constructed based on the same set of website materials to adapt to the generation of website sites corresponding to each of the multiple data structures.

[0062] S103: Generate a website site corresponding to each data structure.

[0063] For example, if the data structure is an H5 data structure, an H5 website corresponding to the H5 data structure can be generated based on the H5 data structure, and a PC website corresponding to the PC data structure can be generated based on the PC data structure.

[0064] Based on the above analysis, this disclosure provides a website processing method, including: obtaining website materials according to website generation requirements; constructing multiple data structures based on the website materials, wherein different data structures are used to generate different types of website sites; generating a website site corresponding to each data structure; and by constructing multiple data structures based on website materials to generate different website sites corresponding to different data structures, it is possible to generate multiple website sites based on a set of website materials. That is, the processing device can obtain multiple website sites in a single operation, and the display effect on different terminals can be achieved in a single operation, thereby improving the flexibility and diversity of website processing and increasing the efficiency of generating multiple website sites.

[0065] To facilitate the reader's understanding of this disclosure, we will now take the example of generating a "dual website site" that includes both an H5 website site and a PC website site, combined with... Figures 2 to 4 The implementation principles of this disclosure are explained in detail. Among them, Figure 2 This is a schematic diagram based on the second embodiment of the present disclosure, as shown below. Figure 2 As shown, the website processing method of this disclosure includes:

[0066] S201: Obtain website materials based on the website generation requirements, including the content to be displayed on the page.

[0067] It should be understood that, in order to avoid tedious descriptions, the same technical features as those in the above embodiments will not be repeated in this embodiment.

[0068] For example, the implementation principle of S201 can be found in the description of S101, and will not be repeated here.

[0069] The content to be displayed on the page refers to the content that needs to be displayed on the page of the website that corresponds to the website generation requirements.

[0070] S202: Based on the content to be displayed on the page, generate the components to be displayed on each page, as well as the relationships between the components to be displayed on each page.

[0071] The components to be displayed on a page refer to the components that need to be displayed on the pages of the website. There are multiple components, and the specific number is determined based on the website's generation requirements. Accordingly, there may be a sequential display relationship between the components to be displayed on each page, or there may be a jump display relationship, etc., which will not be listed here. These display relationships can be referred to as association relationships.

[0072] For example, the components to be displayed on the page include component 1 up to M (M is a positive integer greater than or equal to 2), and the relationship between the components to be displayed on the page can include: component 1 is the first component.

[0073] S203: Based on the components to be displayed on each page and the relationships between the components to be displayed on each page, construct the H5 data structure and the PC data structure respectively.

[0074] For example, the processing device can construct an H5 data structure based on the components to be displayed on each page and the relationships between the components to be displayed on each page; and construct a PC data structure based on the components to be displayed on each page and the relationships between the components to be displayed on each page.

[0075] In other words, the content used to build the H5 data structure and the content used to build the PC data structure are the same components to be displayed on each page, as well as the relationships between the components to be displayed on each page. That is, the content used to build the H5 data structure and the content used to build the PC data structure originates from the same set of website materials. By generating two different data structures at once based on the same set of materials, the efficient generation of "dual website sites" can be achieved when generating corresponding website sites based on the two different data structures.

[0076] In some embodiments, each data structure includes material nodes and node attributes, where material nodes represent components to be displayed on each page, and node attributes represent the relationships between components to be displayed on each page.

[0077] For example, the H5 data structure includes material nodes and node attributes. Material nodes represent components to be displayed on each page, and node attributes represent the relationships between these components. The PC data structure also includes material nodes and node attributes. Material nodes represent components to be displayed on each page, and node attributes represent the relationships between these components.

[0078] S204: In response to an edit operation on the target data structure, update the corresponding website site for each data structure according to the edit operation.

[0079] Among them, there are multiple data structures, including the target data structure.

[0080] For example, users can make adaptive adjustments to the website based on their needs, such as adjusting the order in which components are displayed, adding components, deleting components, or modifying components. Editing operations can be understood as operations performed by users on the target data structure based on their needs.

[0081] Multiple data structures include the target data structure. When multiple data structures include H5 data structures and PC data structures, the target data structure can be either an H5 data structure or a PC data structure.

[0082] Correspondingly, if the target data structure is an H5 data structure, then in response to the user's editing operation on the H5 data structure, the processing device can update the website site corresponding to the H5 data structure according to the editing operation, and can also update the website site corresponding to the PC data structure according to the editing operation.

[0083] In this embodiment, when an editing operation is performed on a certain data structure among multiple data structures, the website sites corresponding to each data structure are adaptively updated according to the editing operation, thereby improving the comprehensiveness and efficiency of website site updates.

[0084] In some embodiments, S204 may include the following steps:

[0085] First step: Obtain the editing information corresponding to the editing operation.

[0086] Editing information can be understood as information corresponding to the user's editing operations, such as the content of the user's editing of the target data structure.

[0087] The second step is to edit other data structures based on the editing information to obtain updated data structures and generate website sites corresponding to the updated data structures.

[0088] For example, multiple data structures include a target data structure and other data structures. In the case where multiple data structures include H5 data structures and PC data structures, if the target data structure is an H5 data structure, then the other data structures are PC data structures, and vice versa.

[0089] For example, if the target data structure is an H5 data structure and other data structures are PC data structures, when the H5 data structure is edited by the user, the data device edits the PC data structure according to the editing information corresponding to the editing operation to obtain an updated PC data structure, and generates a website site corresponding to the updated PC data structure based on the updated PC data structure, so as to realize the update of the website site corresponding to the PC data structure.

[0090] Similarly, when the PC data structure is edited by the user, the data device edits the H5 data structure according to the editing information corresponding to the editing operation to obtain the updated H5 data structure, and generates a website site corresponding to the updated H5 data structure based on the updated H5 data structure, so as to realize the update of the website site corresponding to the H5 data structure.

[0091] In this embodiment, other data structures are edited by combining editing information to obtain updated data structures, and the corresponding website sites are further updated to improve the reliability and effectiveness of updating the website sites.

[0092] In some embodiments, the editing information includes editing components and editing content; the second step may include the following sub-steps:

[0093] First sub-step: Obtain the attribute information of the editing component in the target data structure.

[0094] Among them, the editing component refers to the component targeted by the editing operation, and the attribute information refers to the relevant information corresponding to the editing component, such as information related to the type of the editing component, or information related to the editing position, etc.

[0095] The second sub-step involves editing other data structures based on the attribute information and the content to be edited.

[0096] The edited content refers to the edited content of the editing operation on the editing component, such as the deletion of the editing component or the modification of the editing component.

[0097] In this embodiment, by combining attribute information and editing content to edit other data, the comprehensiveness, reliability, and effectiveness of the editing process can be achieved.

[0098] In some embodiments, the attribute information includes: component type and component location; the second sub-step may include the following refined steps:

[0099] The first refinement step is to identify potential components to be edited from other data structures based on the component type.

[0100] For example, attribute information can be described from at least two dimensions: a type dimension and a position dimension. The type dimension can be represented by the component type, and the position dimension can be represented by the component position.

[0101] The component type refers to the type of the edit component. For example, if the component type is carousel, then the edit component is a carousel component.

[0102] The component position refers to the index of the edit component within the same component type. For example, the edit component is the second carousel component.

[0103] For example, such as Figure 3 As shown, the target data structure is a PC data structure, and the other data structures are H5 data structures. Both the PC data structure and the H5 data structure include K (K is a positive integer greater than or equal to 2) components, which are component 1 to component K respectively.

[0104] In the PC data structure, component 1 is the first carousel component. The component type of the editing component is a carousel component, and its component position is 1. That is, the editing component is the first carousel component, and the editing component is component 1 in the PC data structure.

[0105] In the H5 data structure, there are two components of carousel type, namely component 1 and component K. Therefore, the components that are suspected to be edited include component 1 and component K in the H5 data structure.

[0106] The second refinement step: Identify the component to be edited from the suspected components based on its location.

[0107] Based on the above analysis, if the component position is 1, then component 1 in the H5 data structure is determined as the component to be edited.

[0108] The third step is to refine the components to be edited based on the content to be edited.

[0109] Based on the above analysis, component 1 in the H5 data structure is edited according to the content to be edited.

[0110] In this embodiment, by first identifying the suspected component to be edited and then confirming the component to be edited, the accuracy and effectiveness of the editing process can be improved.

[0111] In some embodiments, the editing component includes multiple editing objects, including images and / or text. The editing operation is an operation on the editing object, and the editing content is the operation content on the editing object. The attribute information may further include the object type and object position of the editing object. Then, after the processing device determines the component to be edited, it can further determine the object to be edited from the component to be edited, and determine the object to be edited based on the object type and object position, and perform editing processing on the object to be edited based on the editing content.

[0112] In this disclosure, the term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0113] Combining the above examples and Figure 4 The editing component is component 1 in the PC data structure, and the component to be edited is component 1 in the H5 data structure. Both the editing component and the component to be edited contain T images, such as image 1 up to image T.

[0114] like Figure 4As shown, if the object type is an image and the object position is the first image, that is, the object to be edited is image 1 in component 1 of the PC data structure, then image 1 in component 1 of the H5 data structure is determined as the object to be edited.

[0115] Figure 5 This is a schematic diagram based on the third embodiment of the present disclosure, as shown below. Figure 5 As shown, the website processing apparatus of this disclosure includes:

[0116] The acquisition unit 501 is used to acquire website materials based on the website's generation requirements.

[0117] The construction unit 502 is used to construct multiple data structures based on the website materials, wherein different data structures are used to generate different types of website sites.

[0118] The generation unit 503 is used to generate a website site corresponding to each data structure.

[0119] Figure 6 This is a schematic diagram based on the fourth embodiment of the present disclosure, as shown below. Figure 6 As shown, the website processing apparatus of this disclosure includes:

[0120] The acquisition unit 601 is used to acquire website materials based on the website's generation requirements.

[0121] The construction unit 602 is used to construct multiple data structures based on the website materials, wherein different data structures are used to generate different types of website sites.

[0122] In some embodiments, the website materials include content to be displayed on the page; the construction unit 602 includes:

[0123] The first generation subunit 6021 is used to generate each page component to be displayed and the relationship between each page component to be displayed based on the content to be displayed on the page.

[0124] The sub-unit 6022 is used to construct the various data structures based on the components to be displayed on each page and the relationships between the components to be displayed on each page.

[0125] In some embodiments, each data structure includes a material node and a node attribute, wherein the material node represents the component to be displayed on each page, and the node attribute represents the relationship between the components to be displayed on each page.

[0126] The generation unit 603 is used to generate a website site corresponding to each data structure.

[0127] In some embodiments, the multiple data structures include: a PC data structure and a mobile H5 data structure;

[0128] The different categories of websites include: PC websites and H5 websites.

[0129] The update unit 604 is used to update the website site corresponding to each data structure according to the edit operation in response to the edit operation.

[0130] The various data structures include the target data structure.

[0131] In some embodiments, the update unit 604 includes:

[0132] Acquisition subunit 6041 is used to acquire the editing information corresponding to the editing operation.

[0133] The processing subunit 6042 is used to edit other data structures according to the editing information to obtain updated other data structures.

[0134] In some embodiments, the editing information includes editing components and editing content; the processing subunit 6042 includes:

[0135] The acquisition module is used to acquire the attribute information of the editing component in the target data structure.

[0136] The processing module is used to edit the other data structures based on the attribute information and the edit content.

[0137] In some embodiments, the attribute information includes: component type and component location; the processing module includes:

[0138] The first determination submodule is used to determine the suspected component to be edited from the other data structures based on the component type.

[0139] The second determining submodule is used to determine the component to be edited from the suspected components to be edited based on the component position.

[0140] The processing submodule is used to edit the component to be edited according to the edit content.

[0141] Generating subunit 6043 is used to generate website sites corresponding to the other updated data structures.

[0142] The various data structures include the target data structure and the other data structures.

[0143] Figure 7 This is a schematic diagram based on the fifth embodiment of the present disclosure, as shown below. Figure 7 As shown, the electronic device 700 in this disclosure may include a processor 701 and a memory 702.

[0144] Memory 702 is used to store programs. Memory 702 may include volatile memory, such as random-access memory (RAM), such as static random-access memory (SRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), etc.; memory may also include non-volatile memory, such as flash memory. Memory 702 is used to store computer programs (such as application programs, functional modules, etc. that implement the above methods), computer instructions, etc. The computer programs, computer instructions, etc., can be partitioned and stored in one or more memories 702. Furthermore, the computer programs, computer instructions, data, etc., can be accessed by processor 701.

[0145] The aforementioned computer programs and instructions can be stored in one or more partitions of memory 702. Furthermore, the aforementioned computer programs and instructions can be invoked by processor 701.

[0146] The processor 701 is configured to execute the computer program stored in the memory 702 to implement the various steps in the methods described in the above embodiments.

[0147] For details, please refer to the relevant descriptions in the preceding method embodiments.

[0148] The processor 701 and the memory 702 can be independent structures or integrated structures. When the processor 701 and the memory 702 are independent structures, the memory 702 and the processor 701 can be coupled together via bus 703.

[0149] The electronic device in this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principle are the same, and will not be repeated here.

[0150] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0151] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0152] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the scheme provided in any of the above embodiments.

[0153] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0154] like Figure 8 As shown, device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0155] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0156] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as website processing methods. For example, in some embodiments, the website processing methods may be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the website processing methods described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform website processing methods by any other suitable means (e.g., by means of firmware).

[0157] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0158] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0159] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0160] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0161] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0162] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service ecosystem, addressing the shortcomings of traditional physical hosts and VPS (Virtual Private Server, or simply "VPS") services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.

[0163] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0164] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for processing a website site, comprising: Obtain the same set of website materials based on the website's generation requirements; Multiple data structures are constructed based on the same set of website materials, and different data structures are used to generate different types of website sites; Generate a website site corresponding to each data structure; In response to an edit operation on a target data structure, the website site corresponding to each of the multiple data structures is updated according to the edit operation. The various data structures include the target data structure and other data structures.

2. The method according to claim 1, wherein, The various data structures include: PC data structure and H5 data structure for mobile devices; The different categories of websites include: PC websites and H5 websites.

3. The method according to claim 1 or 2, wherein, The website materials include the content to be displayed on the page; Multiple data structures are constructed based on the same set of website materials, including: Based on the content to be displayed on the page, generate the components to be displayed on each page, as well as the relationships between the components to be displayed on each page; Based on the components to be displayed on each page and the relationships between the components to be displayed on each page, the various data structures are constructed.

4. The method according to claim 3, wherein, Each data structure includes a material node and node attributes. The material node represents the component to be displayed on each page, and the node attributes represent the relationship between the components to be displayed on each page.

5. The method according to claim 1, wherein, Update the corresponding website sites for each data structure according to the edit operations, including: Obtain the editing information corresponding to the editing operation; The other data structures are edited according to the editing information to obtain the updated other data structures, and the website sites corresponding to the updated other data structures are generated.

6. The method according to claim 5, wherein, The editing information includes editing components and editing content; Editing other data structures among the multiple data structures based on the edit information includes: Obtain the attribute information of the editing component in the target data structure; The other data structures are edited based on the attribute information and the edited content.

7. The method according to claim 6, wherein, The attribute information includes: component type and component location; editing the other data structures based on the attribute information and the edit content includes: Based on the component type, identify the suspected component to be edited from the other data structures; The component to be edited is determined from the suspected components to be edited based on the component's location; The component to be edited is edited according to the edit content.

8. A website processing device, comprising: The acquisition unit is used to acquire the same set of website materials based on the website's generation requirements. The building unit is used to build multiple data structures based on the same set of website materials, wherein different data structures are used to generate different types of website sites; The generation unit is used to generate a website site corresponding to each data structure. An update unit is configured to respond to an edit operation on a target data structure and update the website site corresponding to each of the multiple data structures according to the edit operation. The various data structures include the target data structure and other data structures.

9. The apparatus according to claim 8, wherein, The various data structures include: PC data structure and H5 data structure for mobile devices; The different categories of websites include: PC websites and H5 websites.

10. The apparatus according to claim 8 or 9, wherein, The website materials include the content to be displayed on the page; The building unit includes: The first generation subunit is used to generate each page component to be displayed and the relationship between each page component to be displayed based on the content to be displayed on the page. The sub-unit is used to construct the various data structures based on the components to be displayed on each page and the relationships between the components to be displayed on each page.

11. The apparatus according to claim 10, wherein, Each data structure includes a material node and node attributes. The material node represents the component to be displayed on each page, and the node attributes represent the relationship between the components to be displayed on each page.

12. The apparatus according to claim 8, wherein, The update unit includes: A subunit is used to acquire the editing information corresponding to the editing operation. The processing subunit is used to edit other data structures according to the editing information to obtain updated other data structures; A sub-unit is generated to generate website sites corresponding to the other updated data structures.

13. The apparatus according to claim 12, wherein, The editing information includes editing components and editing content; the processing subunit includes: The acquisition module is used to acquire the attribute information of the editing component in the target data structure; The processing module is used to edit the other data structures based on the attribute information and the edit content.

14. The apparatus according to claim 13, wherein, The attribute information includes: component type and component location; the processing module includes: The first determining submodule is used to determine the suspected component to be edited from the other data structures based on the component type; The second determining submodule is used to determine the component to be edited from the suspected components to be edited based on the component position; The processing submodule is used to edit the component to be edited according to the edit content.

15. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7.

17. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-7.