CN115795142A - Webpage content generating method and device based on personalized format package - Google Patents

Webpage content generating method and device based on personalized format package Download PDF

Info

Publication number
CN115795142A
CN115795142A CN202210975593.8A CN202210975593A CN115795142A CN 115795142 A CN115795142 A CN 115795142A CN 202210975593 A CN202210975593 A CN 202210975593A CN 115795142 A CN115795142 A CN 115795142A
Authority
CN
China
Prior art keywords
data information
information
format
stored data
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210975593.8A
Other languages
Chinese (zh)
Inventor
王继春
阮高
黄晓佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kuaiyinke E Commerce Co ltd
Original Assignee
Shenzhen Kuaiyinke E Commerce Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kuaiyinke E Commerce Co ltd filed Critical Shenzhen Kuaiyinke E Commerce Co ltd
Priority to CN202210975593.8A priority Critical patent/CN115795142A/en
Publication of CN115795142A publication Critical patent/CN115795142A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a webpage content generating method based on a personalized format package, which comprises the following steps: determining display content, and acquiring data information of the display content and format information corresponding to the data information; compressing the data information and the format information; making the compressed data information and format information into a personalized format packet; and generating a content display webpage based on the display content and the personalized format package. The invention also provides a webpage content generating device based on the personalized format package.

Description

Webpage content generating method and device based on personalized format package
The application is a divisional application of invention patents with the application numbers of 202201696738.0, 2022.06.20, entitled "web page content generation method, apparatus and computer readable storage medium".
Technical Field
The present invention relates to the field of internet, and in particular, to a method and an apparatus for generating web page content, and a computer-readable storage medium.
Background
With the rapid development of internet science and technology, online display contents of the internet are increasingly rich and various, and the requirements of users on the online contents of the internet are more personalized and diversified.
The fonts of the internet contents are basic carriers of various information, and when a user edits the contents of various internet information, in order to highlight a certain main body, the user can select some fonts with strong individuation, so that the internet contents are attracted to the eye, and the key points of the contents can be highlighted, so that people can see the internet contents clearly.
However, in the environment of the existing content display technology, to implement the personalized display of the internet content fonts, the font packages corresponding to the content need to be downloaded and installed in the system, and because various fonts are various, many font packages need to be downloaded, the updating process is complicated, and a user needs to consume a large amount of flow and wait for the installation of the font packages when browsing the personalized content.
Therefore, it is desirable to provide a web content generating method, a web content generating apparatus, and a computer-readable storage medium capable of improving the display efficiency of personalized content.
Disclosure of Invention
The invention provides a webpage content generating method and a webpage content generating device capable of improving the display efficiency of personalized content, and aims to solve the technical problem that the display efficiency of the personalized content in the conventional webpage content generating method and device is low.
The embodiment of the invention provides a webpage content generating method, which comprises the following steps:
determining display content, and acquiring data information of the display content and format information corresponding to the data information;
compressing the data information and the format information;
making the compressed data information and format information into a personalized format packet; and
and generating a content display webpage based on the display content and the personalized format package.
In the method for generating web page content according to the embodiment of the present invention, the step of compressing the data information and the format information includes:
setting n to 1;
acquiring nth data information of the display content;
comparing whether the nth data information is identical to the stored data information,
if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the stored data information;
if the data information is the same as the stored data information, acquiring format information corresponding to the nth data information, and comparing whether the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information;
if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the format information corresponding to the stored data information;
if the n-th data information and the corresponding format information are the same, deleting the n-th data information and the corresponding format information;
n = n +1, and the step of obtaining the nth data information of the display content is returned until all the data information of the display content is obtained.
In the method for generating web page content according to the embodiment of the present invention, the step of updating the stored data information includes:
acquiring format information corresponding to adjacent data information of the stored data information, and if the format information corresponding to the adjacent data information of the stored data information is the same as the format information corresponding to the stored data information, updating the stored data information;
and if the format information corresponding to the adjacent data information of the stored data information is different from the format information corresponding to the stored data information, updating the stored data information and the format information corresponding to the stored data information at the same time.
In the method for generating web page content according to the embodiment of the present invention, the step of updating the stored data information and the format information corresponding to the stored data information at the same time includes:
setting an additional code for the stored data information so as to distinguish the stored data information from other stored data information;
corresponding format information is set for the stored data information provided with the additional code.
In the method for generating web page content according to the embodiment of the present invention, the step of updating format information corresponding to the stored data information includes:
and updating the stored data information according to the format information corresponding to the stored data information.
In the method for generating web page content according to the embodiment of the present invention, the step of updating the stored data information according to the format information corresponding to the stored data information includes:
classifying the stored data information by format information, and setting an additional code for the first stored data information of each category;
corresponding format information is set for the stored data information provided with the additional code.
The present invention also provides a web content generating apparatus, which includes:
the information acquisition module is used for determining display content and acquiring data information of the display content and format information corresponding to the data information;
the information compression module is used for compressing the data information and the format information;
the format packet making module is used for making the compressed data information and the format information into a personalized format packet; and
and the webpage generating module is used for generating a content display webpage based on the display content and the personalized format package.
In the apparatus for generating web content according to an embodiment of the present invention, the information compression module includes:
the data information acquisition unit is used for acquiring the nth data information of the display content;
the comparison unit is used for comparing whether the nth data information is the same as the stored data information or not; if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the stored data information; if the data information is the same as the stored data information, acquiring format information corresponding to the nth data information, and comparing whether the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information; if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the format information corresponding to the stored data information; if the n-th data information and the corresponding format information are the same, deleting the n-th data information and the corresponding format information;
and the circulating unit is used for returning to the data information acquisition unit until all the data information of the display content is acquired.
In the apparatus for generating contents of a web page according to an embodiment of the present invention, the comparing unit includes:
a first updating subunit, configured to acquire format information corresponding to adjacent data information of the stored data information, and update the stored data information if the format information corresponding to the adjacent data information of the stored data information is the same as the format information corresponding to the stored data information;
and a second updating subunit, configured to acquire format information corresponding to adjacent data information of the stored data information, and if the format information corresponding to the adjacent data information of the stored data information is different from the format information corresponding to the stored data information, update the stored data information and the format information corresponding to the stored data information at the same time.
The present invention also provides a medium of a computer-readable pair having stored therein processor-executable instructions, which are loaded by one or more processors to perform the method of web content generation in the above claims
Compared with the prior art, the webpage content generating method, the webpage content generating device and the computer readable storage medium generate the corresponding content display webpage through the personalized format package, and the personalized format package is small in size, simple to install and strong in pertinence to the personalized content, so that the display efficiency of the personalized content of the webpage can be effectively improved, and the technical problem that the display efficiency of the personalized content in the existing webpage content generating method and the existing webpage content generating device is low is effectively solved.
Drawings
FIG. 1 is a flow chart of an embodiment of a web content generation method of the present invention;
FIG. 2 is a flowchart of step S102 of an embodiment of a method for generating webpage content according to the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of a web content generating apparatus according to the present invention;
fig. 4 is a flowchart of the contents generation method and apparatus of the present invention;
fig. 5 is a schematic diagram of display contents of the web content generating method and the web content generating apparatus according to the present invention;
fig. 6 is a schematic diagram of an operating environment structure of a device in which the web content generating apparatus of the present invention is located.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
In the description that follows, embodiments of the invention are described with reference to steps and symbols of operations performed by one or more computers, unless otherwise indicated. It will thus be appreciated that those steps and operations, which are referred to herein several times as being computer-executed, include being manipulated by a computer processing unit in the form of electronic signals representing data in a structured form. This manipulation transforms the data or maintains it at locations in the computer's memory system, which may reconfigure or otherwise alter the computer's operation in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the invention have been described in language specific to above, it is not intended to be limited to the specific details shown, since one skilled in the art will recognize that various steps and operations described below may be implemented in hardware.
The webpage content generating method and the webpage content generating device can be arranged in any electronic equipment and are used for carrying out quick and efficient personalized display on remote display content. The electronic devices include, but are not limited to, wearable devices, head-worn devices, medical health platforms, personal computers, server computers, hand-held or laptop devices, mobile devices (such as mobile phones, personal Digital Assistants (PDAs), media players, and the like), multiprocessor systems, consumer electronics, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The electronic equipment is preferably a server terminal for providing a personalized content webpage for a user, and the invention generates the corresponding content display webpage by setting the personalized format packet, thereby effectively improving the display efficiency of the personalized content of the webpage and effectively solving the technical problem of lower display efficiency of the personalized content in the existing webpage content generation method and device.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for generating web page content according to an embodiment of the present invention. The method for generating web page content of the present embodiment may use the electronic device described above. The webpage content generating method of the embodiment comprises the following steps:
step S101, determining display content, and acquiring data information of the display content and format information corresponding to the data information;
step S102, compressing the data information and the format information;
step S103, making the compressed data information and format information into a personalized format packet;
and step S104, generating a content display webpage based on the display content and the personalized format package.
The following describes in detail the specific flow of each step in the web content generation method of the present embodiment.
In step S101, an electronic device (such as a server terminal) acquires a presentation content to transmit to a remote personal terminal for content presentation. The presentation content may be web page content having text of different formats or rendering effects.
After the electronic device determines the corresponding display content, in order to ensure that the display content can be effectively displayed at the remote personal terminal, it is necessary to continuously acquire the data information of the display content and the format information corresponding to the data information.
The data information of the display content refers to text information of the display content, for example, the display content is "× limited liability company", and the data information is "× limited liability company".
The format information of the display content refers to format information corresponding to the text information of the display content, for example, a red regular script 2 is used for two characters of the company in the word-x-ltd-responsibility company, and a black regular script 4 is used for other characters.
In step S102, the electronic device performs compression processing on the data information and the format information acquired in step S101.
Referring to fig. 2, fig. 2 is a flowchart of step S102 of the method for generating web page content according to the embodiment of the present invention. The step S102 includes:
step S201, setting a cycle count n, and setting n to 1;
step S202, acquiring nth data information of the display content; the display content may include a plurality of data information, for example, the web page display content of the merchandise display web page includes data information such as function introduction information of the merchandise, manufacturer information of the merchandise, and customer feedback information.
In order to effectively display the data information and the format information corresponding to the data information, it is necessary to store the data information and the format information of the display content separately.
In step S203, since the newly acquired data information may be the same as the previously stored data information, the data information only needs to be stored once, and the stored data information can be directly retrieved later by using the preset identifier.
Therefore, in this step, the electronic device compares the nth data information acquired in step S202 with the data information already stored in the electronic device. If not, go to step S204, and if the same, go to step S205.
In step S204, if the nth data information is different from the stored data information, the electronic device performs a storage operation on the nth data information and the corresponding format information, and updates the stored data information.
Specifically, when the electronic device updates the stored data information, the format information corresponding to the adjacent data information is the same with a high probability, so that the format information corresponding to the stored data information can be directly stored by using the format information corresponding to the adjacent data information of the stored data information.
Therefore, the electronic device may obtain format information corresponding to adjacent data information of the stored data information, and if the format information corresponding to the adjacent data information of the stored data information is the same as the format information corresponding to the stored data information, the electronic device only updates the stored data information.
If the format information corresponding to the adjacent data information of the stored data information is different from the format information corresponding to the stored data information, the format information of the stored data information cannot be updated by using the format information corresponding to the adjacent data information of the stored data information, so that the electronic device updates the stored data information and the format information corresponding to the stored data information at the same time.
Further, when the electronic device updates the stored data information and the format information corresponding to the stored data information at the same time, the electronic device may set an additional code to the stored data information to distinguish the stored data information from other stored data information, such as adjacent data information. And then the electronic equipment sets corresponding format information for the stored data information with the additional code so as to ensure the normal reading of the data information and the corresponding format information.
In step S205, if the nth data information is the same as the stored data information, the electronic device compares whether the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information. If not, go to step S206, and if the same, go to step S207.
In step S206, if the format information corresponding to the nth data information is different from the format information corresponding to the same stored data information, the electronic device performs a storage operation on the nth data information and the corresponding format information, and updates the format information corresponding to the stored data information.
Specifically, when the format information is updated, the electronic device updates the stored data information according to the format information corresponding to the stored data information, so that the data information of the same format information can be continuously stored.
Specifically, the electronic device may classify the stored data information based on the format information, and set an additional code for the first stored data information of each class; the electronic device then sets corresponding format information for the stored data information with the additional code set. Thus, all data information can be represented with the minimum format information.
In step S207, if the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information, the data information and the format information of the nth data information are already contained in the stored data information, so that the display content corresponding to the nth data information can be normally displayed without storing the nth data information and the corresponding format information. Therefore, the electronic equipment deletes the nth data information and the corresponding format information.
In step S208, add 1 to the cycle count n, that is, n = n +1, and the electronic device returns to step S202 to acquire other data information and corresponding format information of the display content until all data information and format information of the display content are acquired.
In step S103, the electronic device makes the data information and format information compressed in step S102 into a personalized format package, and may send the personalized format package and the corresponding display content to the remote personal terminal.
In step S104, the remote personal terminal first installs the personalized format package, and then displays the display content based on the content of the personalized format package, so as to generate a corresponding content display webpage.
Thus, the web content generation process of the web content generation method of the present embodiment is completed.
The webpage content generating method generates the corresponding content display webpage through the personalized format package, and the personalized format package is small in size, simple to install and strong in pertinence to the personalized content, so that the display efficiency of the personalized webpage content of the remote personal terminal can be effectively improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of the web content generating device of the present invention, the web content generating device of the present embodiment may be implemented by using the web content generating method, and the web content generating device 30 of the present embodiment includes an information obtaining module 31, an information compressing module 32, a format package making module 33, and a web page generating module 34.
The information obtaining module 31 is configured to determine the display content, and obtain data information of the display content and format information corresponding to the data information; the information compression module 32 is used for compressing the data information and the format information; the format packet making module 33 is configured to make the compressed data information and format information into a personalized format packet; the web page generating module 34 is configured to generate a content presentation web page based on the presentation content and the personalized format package.
The information compression module 32 includes a data information obtaining unit, a comparing unit and a circulating unit.
The data information acquisition unit is used for acquiring nth data information of the display content; the comparison unit is used for comparing whether the nth data information is the same as the stored data information or not; if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the stored data information; if the data information is the same as the stored data information, acquiring format information corresponding to the nth data information, and comparing whether the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information; if the data information is different from the stored data information, storing the nth data information and the corresponding format information, and updating the format information corresponding to the stored data information; if the data information is the same as the format information, deleting the nth data information and the corresponding format information; the circulating unit is used for returning to the data information acquisition unit until all the data information of the display content is acquired.
When the web content generating device 30 of the present embodiment is used, first, the information obtaining module 31 obtains the display content, so as to send the display content to the remote personal terminal for content display. The presentation content may be web page content having text of different formats or rendering effects.
The information compression module 32 then performs compression processing on the acquired data information and format information.
Specifically, the data information acquisition unit acquires nth data information of the display content, wherein n is cycle count; the comparing unit compares whether the nth data information is the same as the stored data information; if the data information is different from the first data information, performing storage operation on the nth data information and the corresponding format information, and updating the stored data information by using the first updating subunit and the second updating subunit; if the data information is the same as the stored data information, acquiring format information corresponding to the nth data information, and comparing whether the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information; if the data information is different from the stored data information, storing the nth data information and the corresponding format information, and updating the format information corresponding to the stored data information; if the data information is the same as the format information, deleting the nth data information and the corresponding format information; and finally, the circulation unit sets the circulation count to be increased by 1 and returns to the data information acquisition unit until all the data information of the display content is acquired.
The format package making module 33 then makes the compressed data information and format information into a personalized format package, and can send the personalized format package and the corresponding display content to the remote personal terminal together.
Finally, the web page generating module 34 installs the personalized format package, and then displays the display content based on the content of the personalized format package to generate a corresponding content display web page.
This completes the contents generation process of the contents generation apparatus 30 of the present embodiment.
The specific working principle of the web content generating apparatus of this embodiment is the same as or similar to that in the embodiment of the web content generating method, and please refer to the related description in the embodiment of the web content generating method.
The webpage content generating device generates the corresponding content display webpage through the personalized format package, and the personalized format package is small in size, simple to install and strong in pertinence to the personalized content, so that the display efficiency of the personalized webpage content of the remote personal terminal can be effectively improved.
The following describes a specific operation principle of the web content generating method and the web content generating apparatus according to the present invention by using a specific embodiment. Referring to fig. 4, fig. 4 is a flowchart illustrating a method and an apparatus for generating web page content according to the present invention.
The webpage content generating device is arranged in a server terminal for providing personalized content webpages, and the process of generating the content display webpages by the server terminal comprises the following steps:
in step S401, the server terminal determines the display content that the remote user terminal needs to display, where the display content includes data information and corresponding format information, and as shown in fig. 5, the format information of the text information (data information) in the enterprise name column 51, the format information of the text information in the enterprise guide column 52, and the format information of the text information in the enterprise content column 53 are all different.
In order to enable the remote user terminal to effectively display the text information of the business name column 51, the business guide column 52, and the business content column 53, the server terminal needs to acquire all the data information of the business name column 51, the business guide column 52, and the business content column 53 and the format information corresponding to the data information. For example, the data information of the "domestic professional two-dimensional code application solution service provider" and the 5 # song style format corresponding to the data information, the data information of the "marketing case" and the 5 # black body format corresponding to the data information, etc.
In step S402, the server terminal compresses the data information and the format information.
Specifically, a truetype word library is used to store outline information of a word, and the outline information of the word is in one-to-one correspondence with the word in the data information. The outline and the format of the characters can be stored and identified in a JOSN (JavaScript Object Notation) format, and the JSON is a lightweight data interaction format and is compressed and small in occupied bandwidth because the JSON does not carry any label information.
The JSON format is used to store text content and is more convenient to store and quick to retrieve.
For example, the specific contents of the square regular black simplified body of the Chinese "fast" stored by using the JSON format are as follows: <xnotran> { "ha":1389, "x _ min":54, "x _ max":1351, "o": "m 651 586q 532 863 602 727q 494 846 526 863q 434 814 450 819l 434 1020q 445 1085 434 1058q 445 1096 445 1090q 363 1112 456 1118l 282 1112l 282 819l 125 846q 54 439 109 629l 217 407q 282 749 260 597l 282-141l 434-141l 434-49 q 553-163 505-81q 879 201 770-22q 1215-136 987-43q 1351 27 1275-22q 987 347 1042 141l 1340 347l 1340 499l 1221 499l 1221 906l 949 906l 949 1031q 955 1096 949 1069q 960 1112 960 1107q 895 1128 960 1128l 770 1128l 770 906l 608 906l 608 754l 770 754l 770 575q 765 494 770 537l 526 494l 526 342l 749 342q 434-5 678 114l 434 722q 510 532 467 646l 651 586m 944 760l 1047 760l 1047 499l 949 499q 949 532 949 510q 944 575 944 559l 944 760z" } </xnotran>
When the server terminal compresses the data information and the format information, the current data information of the display content is searched, and whether the current data information is the same as the stored data information or not is judged, for example, whether seven characters of 'express mail client electronic commerce' exist in the previous stored data information or not is judged.
If the data information exists, judging whether the format information corresponding to the data information is the same as the format information of the data information which is stored before, if so, storing the data information and the corresponding format information is not needed. If the data information is different from the format information, the data information and the corresponding format information need to be stored separately, and all the data information with the same format is classified and stored according to format types. Thus, only one additional code for identifying the format information needs to be set for each category.
And if the data information does not exist, the server terminal directly stores the data information. Specifically, when the data information is stored again, the format information of the adjacent data information of the data information is confirmed, and if the format information of the adjacent data information is the same as the format information of the current data information, the current data information is directly stored, and the format information of the data information meets the classified storage of the format categories, so that the format information of the data information does not need to be additionally stored.
If the format information of the adjacent data information is different from the format information of the current data information, the current data information and the format information corresponding to the data information need to be updated simultaneously, and an additional code is set for the updated data information so as to be distinguished from other stored data information, and the additional code stores the format information corresponding to the data information.
Step S403, the server terminal makes the compressed data information and format information into a personalized format package, that is, a word stock compressed package in JSON format.
Step S404, the server terminal sends the word stock compressed packet to the remote user terminal, and sends the display content to the remote user terminal.
The remote user terminal outputs the personalized format package to the browser end, and loads the personalized format package to a corresponding text through a CSS (Cascading Style Sheets) so as to effectively display the displayed content. Because the far-end user terminal only needs to search partial characters in the personalized format package, the personalized format package has extremely small capacity, generally from several k to dozens of k, and the quick loading of the character library can be realized. And the personalized format package volume is not stored in the server terminal, so that the remote user terminal can be personalized and customized according to the display content and can be discarded after being used up, and the system resource of the remote user terminal is not occupied.
In this way, the process of displaying the web content of the web content generating method and the web content generating apparatus of the present embodiment is completed.
The webpage content generating method, the webpage content generating device and the computer readable storage medium generate the corresponding content display webpage through the personalized format package, and the personalized format package has small volume, simple installation and strong pertinence to the personalized content, so the display efficiency of the personalized content of the webpage can be effectively improved, and the technical problem of low display efficiency of the personalized content in the conventional webpage content generating method and device is effectively solved.
As used herein, the terms "component," "module," "system," "interface," "process," and the like are generally intended to refer to a computer-related entity: hardware, a combination of hardware and software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a controller and the controller can be a component. One or more components can reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers.
FIG. 6 and the following discussion provide a brief, general description of the operating environment of a device in which the web content generation apparatus of the present invention may be implemented. The operating environment of FIG. 6 is only one example of a suitable operating environment and is not intended to suggest any limitation as to the scope of use or functionality of the operating environment.
Although not required, embodiments are described in the general context of "computer readable instructions" being executed by one or more electronic devices or internet of things devices. Computer readable instructions may be distributed via computer readable media (discussed below). Computer readable instructions may be implemented as program modules, such as functions, objects, application Programming Interfaces (APIs), data structures, etc. that perform particular tasks or implement particular abstract data types. Typically, the functionality of the computer readable instructions may be combined or distributed as desired in various environments.
Fig. 6 illustrates an example of a device 612 that includes one or more embodiments of the web content generation apparatus of the present invention. In one configuration, the internet of things device 612 includes at least one processing unit 616 and memory 618. Depending on the exact configuration and type of internet-of-things devices, memory 618 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. This configuration is illustrated in fig. 6 by dashed line 614.
In other embodiments, the internet of things device 612 may include additional features and/or functionality. For example, device 612 may also include additional storage (e.g., removable and/or non-removable) including, but not limited to, magnetic storage, optical storage, and the like. Such additional storage is illustrated in fig. 6 by storage 620. In one embodiment, computer readable instructions to implement one or more embodiments provided herein may be in storage 620. Storage 620 may also store other computer readable instructions to implement an operating system, an application program, and the like. Computer readable instructions may be loaded in memory 618 for execution by processing unit 616, for example.
The term "computer readable media" as used herein includes computer storage media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions or other data. Memory 618 and storage 620 are examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by the internet of things device 612. Any such computer storage media may be part of the internet of things device 612.
The internet of things device 612 may also include a communication connection 626 that allows the internet of things device 612 to communicate with other devices. The communication connection 626 may include, but is not limited to, a modem, a Network Interface Card (NIC), an integrated network interface, a radio frequency transmitter/receiver, an infrared port, a USB connection, or other interfaces for connecting the internet of things device 612 to other electronic devices. Communication connection 626 may include a wired connection or a wireless connection. Communication connection 626 may transmit and/or receive communication media.
The term "computer readable media" may include communication media. Communication media typically embodies computer readable instructions or other data in a "modulated data signal" such as a carrier wave or other transport mechanism and includes any information delivery media. The term "modulated data signal" may include signals that: one or more of the signal characteristics may be set or changed in such a manner as to encode information in the signal.
The internet of things device 612 may include an input device 624 such as a keyboard, mouse, pen, voice input device, touch input device, infrared camera, video input device, and/or any other input device. Output device(s) 622 such as one or more displays, speakers, printers, and/or any other output device may also be included in device 612. The input device 624 and the output device 622 may be connected to the internet of things device 612 via a wired connection, a wireless connection, or any combination thereof. In one embodiment, an input device or an output device from another electronic device may be used as the input device 624 or the output device 622 of the internet of things device 612.
Components of the internet of things device 612 may be connected by various interconnects, such as a bus. Such interconnects may include Peripheral Component Interconnect (PCI), such as PCI express, universal Serial Bus (USB), firewire (IEEE 1394), optical bus structures, and the like. In another embodiment, components of the internet of things device 612 may be interconnected by a network. For example, memory 618 may be comprised of multiple physical memory units located in different physical locations interconnected by a network.
Those skilled in the art will realize that storage devices utilized to store computer readable instructions may be distributed across a network. For example, an electronic device 630 accessible via network 628 may store computer readable instructions to implement one or more embodiments provided by the present invention. The internet-of-things device 612 may access the electronic device 630 and download a part or all of the computer readable instructions for execution. Alternatively, the internet of things device 612 may download pieces of the computer readable instructions, as needed, or some instructions may be executed at the internet of things device 612 and some at the electronic device 630.
Various operations of embodiments are provided herein. In one embodiment, the one or more operations may constitute computer readable instructions stored on one or more computer readable media, which when executed by an internet of things device, will cause the computing device to perform the operations. The order in which some or all of the operations are described should not be construed as to imply that these operations are necessarily order dependent. Those skilled in the art will appreciate alternative orderings having the benefit of this description. Moreover, it should be understood that not all operations are necessarily present in each embodiment provided herein.
Also, although the disclosure has been shown and described with respect to one or more implementations, equivalent alterations and modifications will occur to others skilled in the art based upon a reading and understanding of this specification and the annexed drawings. The present disclosure includes all such modifications and alterations, and is limited only by the scope of the appended claims. In particular regard to the various functions performed by the above described components (e.g., elements, resources, etc.), the terms used to describe such components are intended to correspond, unless otherwise indicated, to any component which performs the specified function of the described component (e.g., that is functionally equivalent), even though not structurally equivalent to the disclosed structure which performs the function in the herein illustrated exemplary implementations of the disclosure. In addition, while a particular feature of the disclosure may have been disclosed with respect to only one of several implementations, such feature may be combined with one or more other features of the other implementations as may be desired and advantageous for a given or particular application. Furthermore, to the extent that the terms "includes," has, "" contains, "or variants thereof are used in either the detailed description or the claims, such terms are intended to be inclusive in a manner similar to the term" comprising.
Each functional unit in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Each apparatus or system described above may perform the method in the corresponding method embodiment.
In summary, although the present invention has been disclosed in the foregoing embodiments, the serial numbers before the embodiments are used for convenience of description only, and the sequence of the embodiments of the present invention is not limited. Furthermore, the above embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be limited by the appended claims.

Claims (7)

1. A webpage content generation method based on a personalized format package is characterized by comprising the following steps:
determining display content, and acquiring data information of the display content and format information corresponding to the data information;
compressing the data information and the format information;
making the compressed data information and format information into a personalized format packet; and
generating a content display webpage based on the display content and the personalized format package;
the step of compressing the data information and the format information includes:
setting n to 1;
acquiring nth data information of the display content;
comparing whether the nth data information is identical to the stored data information,
if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the stored data information;
if the data information is the same as the stored data information, acquiring format information corresponding to the nth data information, and comparing whether the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information;
if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the format information corresponding to the stored data information;
if the n-th data information and the corresponding format information are the same, deleting the n-th data information and the corresponding format information;
n = n +1, and the step of obtaining the nth data information of the display content is returned until all the data information of the display content is obtained.
2. The method for generating web page content based on personalized format package according to claim 1, wherein the step of updating the stored data information comprises:
acquiring format information corresponding to adjacent data information of the stored data information, and if the format information corresponding to the adjacent data information of the stored data information is the same as the format information corresponding to the stored data information, updating the stored data information;
and if the format information corresponding to the adjacent data information of the stored data information is different from the format information corresponding to the stored data information, updating the stored data information and the format information corresponding to the stored data information at the same time.
3. The method for generating web page content based on personalized format package according to claim 2, wherein the step of updating the stored data information and the format information corresponding to the stored data information simultaneously comprises:
setting an additional code for the stored data information so as to distinguish the stored data information from other stored data information;
corresponding format information is set for the stored data information provided with the additional code.
4. The method for generating web page content based on personalized format package according to claim 1, wherein the step of updating format information corresponding to the stored data information comprises:
and updating the stored data information according to the format information corresponding to the stored data information.
5. The method for generating web page content according to claim 4, wherein the step of updating the stored data information according to the format information corresponding to the stored data information comprises:
classifying the stored data information by format information, and setting an additional code for the first stored data information of each category;
corresponding format information is set for the stored data information provided with the additional code.
6. A web content generating apparatus based on a personalized format package, comprising:
the information acquisition module is used for determining display content and acquiring data information of the display content and format information corresponding to the data information;
the information compression module is used for compressing the data information and the format information;
the format packet making module is used for making the compressed data information and the format information into a personalized format packet; and
the webpage generating module is used for generating a content display webpage based on the display content and the personalized format package;
wherein the information compression module comprises:
the data information acquisition unit is used for acquiring the nth data information of the display content;
the comparison unit is used for comparing whether the nth data information is the same as the stored data information or not; if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the stored data information; if the data information is the same as the stored data information, acquiring format information corresponding to the nth data information, and comparing whether the format information corresponding to the nth data information is the same as the format information corresponding to the same stored data information; if the data information is different from the nth data information, storing the nth data information and the corresponding format information, and updating the format information corresponding to the stored data information; if the n-th data information and the corresponding format information are the same, deleting the n-th data information and the corresponding format information;
and the circulating unit is used for returning to the data information acquisition unit until all the data information of the display content is acquired.
7. The apparatus for generating web page content based on personalized format package according to claim 6, wherein the comparing unit comprises:
a first updating subunit, configured to acquire format information corresponding to adjacent data information of the stored data information, and update the stored data information if the format information corresponding to the adjacent data information of the stored data information is the same as the format information corresponding to the stored data information;
and a second updating subunit, configured to acquire format information corresponding to adjacent data information of the stored data information, and if the format information corresponding to the adjacent data information of the stored data information is different from the format information corresponding to the stored data information, update the stored data information and the format information corresponding to the stored data information at the same time.
CN202210975593.8A 2022-06-20 2022-06-20 Webpage content generating method and device based on personalized format package Pending CN115795142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210975593.8A CN115795142A (en) 2022-06-20 2022-06-20 Webpage content generating method and device based on personalized format package

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210975593.8A CN115795142A (en) 2022-06-20 2022-06-20 Webpage content generating method and device based on personalized format package
CN202210696738.0A CN114780896B (en) 2022-06-20 2022-06-20 Webpage content generation method and device and computer readable storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202210696738.0A Division CN114780896B (en) 2022-06-20 2022-06-20 Webpage content generation method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115795142A true CN115795142A (en) 2023-03-14

Family

ID=82420497

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210696738.0A Active CN114780896B (en) 2022-06-20 2022-06-20 Webpage content generation method and device and computer readable storage medium
CN202210975593.8A Pending CN115795142A (en) 2022-06-20 2022-06-20 Webpage content generating method and device based on personalized format package

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210696738.0A Active CN114780896B (en) 2022-06-20 2022-06-20 Webpage content generation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN114780896B (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6613098B1 (en) * 1999-06-15 2003-09-02 Microsoft Corporation Storage of application specific data in HTML
US7788577B2 (en) * 2005-09-23 2010-08-31 Google Inc. Displaying information on a mobile device
CN102118439A (en) * 2011-01-19 2011-07-06 百度在线网络技术(北京)有限公司 Method and device for automatically processing document contents and editor
US8856958B1 (en) * 2012-08-21 2014-10-07 Google Inc. Personalized content access prompt
US20140108601A1 (en) * 2012-10-11 2014-04-17 Iperceptions Inc. System and method for content personalization using feedback data
CN103220352B (en) * 2013-04-15 2017-02-08 福建伊时代信息科技股份有限公司 Terminal, server, file storage system and file storage method
CN104899212B (en) * 2014-03-05 2019-11-12 腾讯科技(深圳)有限公司 Web page display method, server and system
CN105205072B (en) * 2014-06-24 2019-04-12 腾讯科技(深圳)有限公司 The methods of exhibiting and system of webpage information
US9916075B2 (en) * 2015-06-05 2018-03-13 Apple Inc. Formatting content for a reduced-size user interface
US11874893B2 (en) * 2019-11-14 2024-01-16 Microsoft Technology Licensing, Llc Modularizing and embedding supplemental textual and visual content in different environments
US11706313B2 (en) * 2019-12-24 2023-07-18 Salesforce, Inc. Systems, methods, and devices for user interface customization based on content data network priming
CN111679875A (en) * 2020-05-07 2020-09-18 北京齐尔布莱特科技有限公司 Page content display method and system and mobile terminal
CN113010814A (en) * 2021-03-22 2021-06-22 掌阅科技股份有限公司 Webpage content processing method, computing device and computer storage medium
CN113297453A (en) * 2021-06-17 2021-08-24 北京有竹居网络技术有限公司 Network request response method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114780896A (en) 2022-07-22
CN114780896B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN109597617B (en) Method and device for quickly generating service page based on template
EP3518124A1 (en) Webpage rendering method and related device
CN110309475B (en) Page display method and device, terminal equipment and storage medium
US8117531B1 (en) Interpreted language translation system and method
US20130339840A1 (en) System and method for logical chunking and restructuring websites
CN113126990B (en) Page development method, device, equipment and storage medium
CN112818111B (en) Document recommendation method, device, electronic equipment and medium
CN111294395A (en) Terminal page transmission method, device, medium and electronic equipment
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN113360106B (en) Webpage printing method and device
CN114780896B (en) Webpage content generation method and device and computer readable storage medium
CN111444448A (en) Data processing method, server and system
CN107977459B (en) Report generation method and device
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN113342450B (en) Page processing method, device, electronic equipment and computer readable medium
CN115080154A (en) Page display method and device, storage medium and electronic equipment
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
CN113987118A (en) Corpus acquisition method, apparatus, device and storage medium
CN113094286A (en) Page testing method and device, storage medium and electronic equipment
CN114048315A (en) Method and device for determining document tag, electronic equipment and storage medium
CN113760283A (en) Text rendering method and device
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
KR20210084641A (en) Method and apparatus for transmitting information
CN111414106A (en) Title display method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination