CN113792243A - Webpage data processing method and device, storage medium and electronic equipment - Google Patents

Webpage data processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113792243A
CN113792243A CN202011357311.5A CN202011357311A CN113792243A CN 113792243 A CN113792243 A CN 113792243A CN 202011357311 A CN202011357311 A CN 202011357311A CN 113792243 A CN113792243 A CN 113792243A
Authority
CN
China
Prior art keywords
data
modification
identification information
webpage
web page
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
CN202011357311.5A
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.)
Beijing Jingdong Tuoxian Technology Co Ltd
Original Assignee
Beijing Jingdong Tuoxian Technology 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 Beijing Jingdong Tuoxian Technology Co Ltd filed Critical Beijing Jingdong Tuoxian Technology Co Ltd
Priority to CN202011357311.5A priority Critical patent/CN113792243A/en
Publication of CN113792243A publication Critical patent/CN113792243A/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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a webpage data processing method and device, a computer readable storage medium and electronic equipment, and relates to the technical field of internet. The webpage data processing method comprises the following steps: responding to a first modification operation aiming at page data of a webpage, and generating first modification data and identification information corresponding to the first modification data; and sending the first modification data and the identification information to a server so as to obtain the first modification data from the server according to the identification information and the website information of the webpage. The method can send the modified data and the identification information to the server in real time for storage, and further can acquire the modified data from the server through the identification information and the website information, so that the modified data can be checked on different browsers and different devices, and the modified data can be shared to others for checking through the identification information and the website information in real time.

Description

Webpage data processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for processing webpage data, a computer-readable storage medium, and an electronic device.
Background
With the continuous development of internet technology, many websites have the function of online editing. Such as entering text into a web page, inserting pictures, videos, modifying the position and size of page elements, etc.
In the prior art, for the content edited by the user on the web page, the edited content is stored in the local cache of the browser, and after the user refreshes the page, the content edited by the user is displayed on the refreshed page by extracting the content edited by the user and stored in the local cache.
However, this method can only extract data in a browser used for editing web page content on a local computer, cannot extract user-edited content across browsers, cannot extract user-edited content on different devices, and cannot share content edited on a web page with others in real time for viewing.
Disclosure of Invention
The present disclosure is directed to a method and an apparatus for processing web page data, a computer-readable storage medium, and an electronic device, so as to overcome, at least to some extent, a problem that contents edited on a web page cannot be shared in real time for others to view due to limitations and defects of related technologies.
According to a first aspect of the present disclosure, there is provided a web page data processing method, including: responding to a first modification operation aiming at page data of a webpage, and generating first modification data and identification information corresponding to the first modification data; and sending the first modification data and the identification information to a server so as to obtain the first modification data from the server according to the identification information and the website information of the webpage.
Optionally, the web page data processing method further includes: responding to a second modification operation aiming at the page data of the webpage to generate second modification data; the second modification operation is a modification operation after the first modification operation is completed; and sending the second modification data and the identification information to the server so as to obtain the second modification data from the server according to the identification information and the website information of the webpage.
Optionally, the obtaining the first modification data from the server according to the identification information and the website information of the webpage includes: determining target website information according to the identification information and the website information of the webpage; and acquiring first modification data from the server according to the target website information.
Optionally, generating the first modification data and the identification information corresponding to the first modification data includes: generating first modification data, and judging whether a user has modification authority; and if the user has the modification authority, generating identification information corresponding to the first modification data.
Optionally, sending the first modification data and the identification information to the server includes: packaging the first modified data into a json format to obtain the first modified data of the json format; and sending the first modified data and the identification information in the json format to the server in an ajax mode.
According to a second aspect of the present disclosure, there is provided another web page data processing method, including: receiving first modification data and identification information corresponding to the first modification data, the first modification data being data generated in response to a first modification operation on page data of a web page; under the condition of receiving a webpage data acquisition request, sending first modification data; the webpage data acquisition request comprises identification information and website information of a webpage.
Optionally, after receiving the first modification data and the identification information corresponding to the first modification data, the method includes: creating a subspace corresponding to the identification information according to the identification information; the first modified data is saved to the subspace.
Optionally, in a case of receiving a web page data obtaining request, sending the first modification data, including: extracting identification information and user address information according to the webpage data acquisition request; acquiring first modification data according to the identification information; and sending the first modification data according to the user address information.
According to a third aspect of the present disclosure, there is provided a web page data processing apparatus comprising: the device comprises an information generation module and an information acquisition module.
Specifically, the information generating module may be configured to generate first modification data and identification information corresponding to the first modification data in response to a first modification operation on page data of the web page; the information obtaining module may be configured to send the first modification data and the identification information to the server, so as to obtain the first modification data from the server according to the identification information and the website information of the webpage.
Optionally, the information generating module may be configured to perform: responding to a second modification operation aiming at the page data of the webpage to generate second modification data; the second modification operation is a modification operation after the first modification operation is completed; and sending the second modification data and the identification information to the server so as to obtain the second modification data from the server according to the identification information and the website information of the webpage.
Optionally, the information obtaining module may be configured to perform: determining target website information according to the identification information and the website information of the webpage; and acquiring first modification data from the server according to the target website information.
Optionally, the information generating module may be configured to perform: generating first modification data, and judging whether a user has modification authority; and if the user has the modification authority, generating identification information corresponding to the first modification data.
Optionally, the information obtaining module may be configured to perform: packaging the first modified data into a json format to obtain the first modified data of the json format; and sending the first modified data and the identification information in the json format to the server in an ajax mode.
According to a fourth aspect of the present disclosure, there is provided another web page data processing apparatus including: the device comprises an information receiving module and an information sending module.
Specifically, the information receiving module may be configured to receive first modification data and identification information corresponding to the first modification data, where the first modification data is data generated in response to a first modification operation on page data of a web page; the information sending module can be used for sending first modification data under the condition of receiving a webpage data acquisition request; the webpage data acquisition request comprises identification information and website information of a webpage.
Optionally, the information receiving module may be configured to perform: creating a subspace corresponding to the identification information according to the identification information; the first modified data is saved to the subspace.
Optionally, the information sending module may be configured to perform: extracting identification information and user address information according to the webpage data acquisition request; acquiring first modification data according to the identification information; and sending the first modification data according to the user address information.
According to a fifth aspect of the present disclosure, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements any one of the above-described web page data processing methods.
According to a sixth aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform any one of the above-described web page data processing methods via execution of the executable instructions.
In the technical solutions provided by some embodiments of the present disclosure, in response to a first modification operation on page data of a web page, first modification data and identification information corresponding to the first modification data are generated; and sending the first modification data and the identification information to a server so as to obtain the first modification data from the server according to the identification information and the website information of the webpage. The method can send the modified data and the identification information to the server in real time for storage, and further can acquire the modified data from the server through the identification information and the website information, so that the modified data can be checked on different browsers and different devices, and the modified data can be shared to others for checking through the identification information and the website information in real time.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
FIG. 1 schematically illustrates a flow chart of a method of web page data processing according to an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of another method of web page data processing, according to an exemplary embodiment of the present disclosure;
FIG. 3 schematically shows a flowchart of a web page data processing method according to an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of another method of web page data processing, according to an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of a H5 mini-game online editing web page data processing method according to an exemplary embodiment of the present disclosure;
FIG. 6 schematically shows a block diagram of a web page data processing apparatus according to an exemplary embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of another web page data processing apparatus according to an exemplary embodiment of the present disclosure;
fig. 8 schematically shows a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
At present, many web pages support an online editing function, and a user can modify the content of the web pages in the web pages according to needs, such as adding characters, pictures and videos, or modifying the size, color and position of some elements in the web pages.
However, in the prior art, only the data modified by the user can be stored in the cache of the browser currently used locally, when a web page is opened by replacing one browser, the edited data will be lost, and the data is inconvenient to be viewed in a plurality of browsers in the editing process. Because the data is stored in the local browser cache, the data cannot be shared with others through the website of the webpage for viewing. And if the user does not manually clear the data, the data can be always stored in the local memory, which causes waste of local storage space.
In view of this, the present disclosure provides a method for processing web page data.
The exemplary embodiment provides a web page data processing method, which can be applied to a visualized H5 (web page implemented based on HTML 5) mini game online editing system. In a system for online production of H5 mini games through visual web pages, a user firstly selects a game to be edited in a game list, clicks to enter a corresponding game template editing page, and only the default layout and content of the game page are displayed on an initial page. The user generally needs to edit the content, size and position of the characters, pictures and other elements to make a game page meeting the personalized requirements of the user.
Fig. 1 schematically shows a flowchart of a web page data processing method of an exemplary embodiment of the present disclosure, which is performed at a client. Referring to fig. 1, the web page data processing method may include the steps of:
s12, responding to a first modification operation aiming at the page data of the webpage, and generating first modification data and identification information corresponding to the first modification data.
In an exemplary embodiment of the present disclosure, a client responds to a first modification operation on page data of a web page, where the web page refers to an editable web page, and a web page of an H5 mini game can be made on line for a piece of visualization, and the page data refers to various elements in the web page, such as characters, pictures, videos, and the like, and the first modification operation refers to an operation of a user for modifying the page data for the first time on the web page, and may be an operation of modifying the page data for the first time in a certain period of time, an operation of modifying the page data for the first time in a certain browser, and may be an operation of modifying the page data for the first time on a certain device.
In an exemplary embodiment of the present disclosure, the first modification data is data generated as a result of a first modification operation, the first modification data includes data content modified by a user on a web page and data attributes, and the data attributes include data such as a position, a size, a color, and the like of the modified data in the web page. For example, the data format of the first modification data may be { banner: { width:100, height:200, left:100, top:50, value: "} }, where banner is the name of an element, width and height are respectively the width and height of the element, left and top are the position of the element in the page, and value is the specific content of the element, for example, the content added in the web page is" 123 ", and value is" 123 ".
In an exemplary embodiment of the present disclosure, the identification information corresponds to the first modification data, refers to a query parameter of the first modification data, and may also be a specific storage address of the first modification data in the service. Through the identification information, the storage address of the first modified data in the server can be accurately found, and the first modified data can be conveniently acquired from the server according to the identification information. For example, is the web address of an editable web page http:// www.xxx.com/titles? the tempId is 1& dataId xxxx, where dataId xxxx is identification information identifying a storage address in the server.
In an exemplary embodiment of the disclosure, after the local device receives a first modification operation on the webpage data by the user, the first modification data and identification information corresponding to the first modification data are generated in response to the modification operation.
In an exemplary embodiment of the present disclosure, generating first modification data and identification information corresponding to the first modification data includes: generating first modification data, and judging whether a user has modification authority; and if the user has the modification authority, generating identification information corresponding to the first modification data. If the user does not have the authority to modify certain page data, the modified data can be only generated locally after the user modifies the page data, and identification information cannot be generated; only when the user has the modification right, the identification information of the modification data is generated.
In an exemplary embodiment of the present disclosure, transmitting the first modification data and the identification information to the server includes: packaging the first modified data into a json format to obtain the first modified data of the json format; and sending the first modified data and the identification information in the json format to the server in an ajax mode. The server extracts the identification information and stores the first modification data to the address represented by the identification information.
S14, sending the first modification data and the identification information to a server so as to obtain the first modification data from the server according to the identification information and the website information of the webpage.
In an exemplary embodiment of the disclosure, the first modification data and the identification information are sent to a server corresponding to the web page for saving, and the first modification data is acquired from the server by using the identification information and the website information of the web page. The website information is a URL (Uniform Resource Locator), which is a www Uniform Resource Locator and refers to a network address.
In an exemplary embodiment of the present disclosure, acquiring first modification data from a server according to identification information and website information of a webpage includes: determining target website information according to the identification information and the website information of the webpage; and acquiring first modification data from the server according to the target website information. The target website information may be a target website formed by combining the identification information and website information of the web page, and the storage address of the first modification data may be determined from the corresponding server through the target website, so as to obtain the first modification data.
In an exemplary embodiment of the present disclosure, the target website information may be a combination of the identification information and the website information of the web page, which may be combined using a common rule, for example, the website of the web page is http:// www.xxx.com/detialstempId ═ 1, the identification information is dataId ═ xxxx, and the target website is http:// www.xxx.com/detialstempId ═ 1& dataId ×, which may be obtained by combining the two using an "&" symbol. Specifically, http (HyperText Transfer Protocol) in The website is a Protocol part, and may also be other protocols such as FTP (File Transfer Protocol), Gopher (The Internet Gopher Protocol, Internet Gopher Protocol), and The like, which all belong to The protection scope of The present disclosure; com is a domain name part,. com is a top level domain name, identifying the establishment, in addition to which the top level domain name includes other top level domain names such as. org,. gov? the tempId 1 indicates that there may be a plurality of parameters, separated by the "&" symbol, the name and value of each parameter separated by the "═" symbol, and the dataId xxxx added parameter, i.e., the presentation information in the present disclosure. The target web address can specify that data is to be obtained from a certain address of the server.
In an exemplary embodiment of the present disclosure, second modification data is generated in response to a second modification operation for page data of a web page; the second modification operation is a modification operation after the first modification operation is completed; and sending the second modification data and the identification information to the server so as to obtain the second modification data from the server according to the identification information and the website information of the webpage.
In an exemplary embodiment of the present disclosure, the second modification operation is a modification operation after completion of the first modification operation, and the second modification data is modification data generated by the second modification operation. If the webpage data of the same webpage are modified for multiple times, the identification information is generated only when the webpage data are modified for the first time, and only the modified data corresponding to the modification operation are generated in the subsequent modification operation after the modification operation for the first time is completed, so that new label data are not generated any more. And storing the modified data generated by the subsequent modification operation after the first modification operation is completed in the address corresponding to the identification information generated by the first modification operation, wherein the identification information is the query parameters corresponding to the first modified data and the second modified data and the stored address in the server.
In an exemplary embodiment of the present disclosure, modification data generated by performing a modification operation on a user may be transmitted to a server by a method of setting a time threshold. Specifically, the data can be automatically packaged and sent to the server at certain intervals, and when a user closes a webpage or reopens the webpage, the data can be automatically packaged and sent to the server for storage.
In an exemplary embodiment of the present disclosure, it may also be provided that different types of modification data are saved under different addresses. Specifically, the first modification operation may be a first modification operation for text data, a first modification operation for picture data, a first modification operation for video data, or the like. When the first modification operation is carried out on different types of webpage data, first modification data and identification information are generated, the modification data are stored in a classified mode according to different modification data generated by the first modification operation on the different types of webpage data and corresponding identification information, and the modification data are stored in different addresses in a server according to different identification information corresponding to the different types of modification data.
In the exemplary embodiment of the present disclosure, a plurality of different ways of modifying the data storage may also be defined according to different requirements. For example, some data types do not need to store the previous modified data, and when new modified data is generated, only the previous modified data needs to be replaced; however, there are data types that require saving of the previous modified data, and when new modified data is generated, the new modified data is saved on the basis of the original modified data.
Fig. 2 schematically shows a flowchart of a web page data processing method according to another exemplary embodiment of the present disclosure, which is performed on a server side. Referring to fig. 2, the web page data processing method may include the steps of:
s22, receiving first modification data and identification information corresponding to the first modification data, wherein the first modification data are data generated in response to a first modification operation on page data of a webpage.
In an exemplary embodiment of the present disclosure, after the server receives the first modification data and the identification information corresponding to the first modification data, the method includes: creating a subspace corresponding to the identification information according to the identification information; the first modified data is saved to the subspace. The subspace may be a folder newly created on the server, and a name and a location of the folder correspond to the identification information. After the server receives the first modification data and the identification information, a folder corresponding to the identification information is created in the server according to the identification information, the first modification data is stored under the folder, and the path of the folder in the server is the address of the first modification data in the server.
S24, under the condition of receiving a webpage data acquisition request, sending the first modification data; the webpage data acquisition request comprises the identification information and website information of the webpage.
In an exemplary embodiment of the present disclosure, in a case of receiving a web page data obtaining request, sending first modification data includes: extracting identification information and user address information according to the webpage data acquisition request; acquiring first modification data according to the identification information; and sending the first modification data according to the user address information.
In an exemplary embodiment of the present disclosure, a web page obtaining request refers to a request sent by a client to obtain web page data, where the web page data obtaining request includes identification information and website information of a web page. The method comprises the steps of finding a server corresponding to website information by analyzing the website information of a webpage, extracting identification information, sending a webpage data acquisition request to the server so as to acquire data from the server according to the identification information, obtaining address information of a client by the server, and sending first modified data to the client through the address information of the client after the server extracts the first modified data acquired by the client request.
It should be noted that, in the exemplary embodiment of the present disclosure, both the first modification data and the second modification data have identification information corresponding thereto, and the method for the client to obtain the first modification data from the server is also applicable to obtain the second modification data.
In an exemplary embodiment of the present disclosure, referring to fig. 3, fig. 3 schematically shows a flowchart of a web page data processing method according to an exemplary embodiment of the present disclosure, as shown in fig. 3, in step S301, in response to a first modification operation on page data of a web page, the client performs step S303, generates first modification data and identification information corresponding to the first modification data, and then performs step S305, and transmits the first modification data and the identification information to a server.
In an exemplary embodiment of the present disclosure, referring to fig. 4, fig. 4 schematically shows a flowchart of another method for processing web page data according to an exemplary embodiment of the present disclosure, as shown in fig. 4, in step S401, the server receives first modification data sent by the client 1 and identification information corresponding to the first modification data, then in step S403, the server stores the first modification data in a corresponding subspace according to the identification information, in step S405, receives a web page data acquisition request sent by the client 2, and in accordance with the web page data acquisition request, the web page data acquisition request includes website information and the identification information of a web page; in step S407, the server extracts the first modification data, and in step S409, transmits the first modification data to the client 2. It should be noted that the client 1 and the client 2 may be the same browser on the same device, may also be different browsers on the same device, and may also be different browsers on different devices. According to the webpage data processing method provided by the disclosure, when a user edits on an editable webpage, the cross-browser extraction of the user edited content is realized according to the website information and the identification information of the webpage, the user edited content can also be extracted on different devices, and the content edited on the webpage can be shared to others for viewing in real time.
The web page data processing method proposed in the present disclosure is further explained below by taking a visualized H5 mini game online editing web page as an example.
Referring to fig. 5, fig. 5 schematically shows a flowchart of a data processing method for an H5 mini-game online editing web page according to an exemplary embodiment of the present disclosure, and when modification editing is performed on a visualized H5 mini-game online editing web page as shown in fig. 5, first, step S51 is performed, first modification of a user is monitored, a URL is dynamically updated, and an identification ID is written. When a user performs a certain modification on a web page, for example, moves an element in the web page, and after monitoring the first modification of the user, a history. The method adds an id query parameter to the current website, and the page is not reloaded (refreshed) and the history record is not generated when the method is executed. And then the user refreshes the page, and the website can keep the added id.
In step S53, each modification operation of the user is monitored, the changed data is synchronized to the server, and by monitoring the operation of the user, the data generated by the user each time the user modifies the edited data is packaged into json format and transmitted to the server together with the id in ajax mode for storage. In step S55, the server side listens for a storage request from the client side and stores the data in the database.
In step S57, when the page is reloaded (refreshed), the modified page is loaded by requesting data from the server by the ID preset in the URL. Writing a program in a webpage, firstly detecting whether the id exists in the current website every time the webpage is reopened, if so, sending a request to retrieve the stored data to a server by using the id, and modifying and displaying the attribute of the element of the webpage according to the corresponding relationship of the data.
Entering a game editing page, for example, the website is http:// www.xxx.com/detialstempId ═ 1, here, taking modifying the position of a banner element as an example, when a client monitors that a user moves the position of the banner element, calling a prepacked replaceUrl method, the method firstly obtaining current identification information through location. The value of dataId can be generated according to some algorithm, primarily to serve as an identification, i.e. identification information in this disclosure. When the history replaceState method is called to rewrite the website of the current edited webpage, the browser cannot be forced to be refreshed, so that the method is not sensible to the user and has better experience. After the steps are completed, the user refreshes the browser, the website can always carry the identification information of dataId, and the website can be copied and shared to other people for viewing.
And monitoring the attribute change of the elements in the page, and transmitting the data modified by the user to a server side in real time for storage. In the visual editing page, modification of all elements, such as the positions, sizes, text contents and the like of the elements, by a user needs to be monitored. When the program monitors that the attribute of a certain element is changed, the dataId and the data modified by the user are sent to the server for storage through the ajax request.
And writing a program at a server, monitoring a storage request from a client, and storing data into a database in real time. And simultaneously monitoring the request for acquiring the data, and returning the data stored in the database to the client.
And after the page is reloaded, obtaining the dataId in the website by a location search method, then sending an ajax request to retrieve the data stored by the user from the server, and displaying the modified page element attribute according to the corresponding relation of the data.
Monitoring that a user modifies a page for the first time, generating identification information by rewriting a website of a browser under the condition that the user does not sense, establishing a binding relationship between the identification information and data edited by the user, and storing the data to a server end through an ajax technology under the condition that the user does not sense after monitoring that the user modifies each time. When the page is overloaded, the identification information in the website is obtained through analysis, the identification information is used for sending a request to a server to obtain the previously stored data, and the content in the page is modified according to the data, so that the modified page data can be displayed on the pages of different browsers, and can be shared by others in real time through the website to be viewed.
It should be noted that, part of the techniques in this disclosure may also be implemented by modifying a hash value in a website of a browser, and when it is monitored that a user modifies data in a page for the first time, the website may be updated by using location. From the technical aspect, the hash change will not refresh the web page, but will be written into the history stack, and the browser's back button will be activated, so there is no history.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, the present exemplary embodiment also provides a web page data processing apparatus.
Fig. 6 schematically shows a block diagram of a web page data processing apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 6, the web page data processing apparatus 6 according to an exemplary embodiment of the present disclosure may include an information generating module 61 and an information acquiring module 63.
Specifically, the information generating module 61 may be configured to generate, in response to a first modification operation on page data of the web page, first modification data and identification information corresponding to the first modification data; the information obtaining module 63 may be configured to send the first modification data and the identification information to the server, so as to obtain the first modification data from the server according to the identification information and the website information of the webpage.
Optionally, the information generating module 61 may be configured to perform: responding to a second modification operation aiming at the page data of the webpage to generate second modification data; the second modification operation is a modification operation after the first modification operation is completed; and sending the second modification data and the identification information to the server so as to obtain the second modification data from the server according to the identification information and the website information of the webpage.
Optionally, the information obtaining module 63 may be configured to perform: determining target website information according to the identification information and the website information of the webpage; and acquiring first modification data from the server according to the target website information.
Optionally, the information generating module 61 may be configured to perform: generating first modification data, and judging whether a user has modification authority; and if the user has the modification authority, generating identification information corresponding to the first modification data.
Optionally, the information obtaining module 63 may be configured to perform: packaging the first modified data into a json format to obtain the first modified data of the json format; and sending the first modified data and the identification information in the json format to the server in an ajax mode.
Further, another web page data processing apparatus is also provided in the present exemplary embodiment.
Fig. 7 schematically shows a block diagram of another web page data processing apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 7, the web page data processing apparatus 7 according to an exemplary embodiment of the present disclosure may include an information receiving module 71 and an information transmitting module 73.
Specifically, the information receiving module 71 may be configured to receive first modification data and identification information corresponding to the first modification data, where the first modification data is data generated in response to a first modification operation on page data of a web page; the information sending module 73 may be configured to send the first modification data in a case of receiving a web page data obtaining request; the webpage data acquisition request comprises identification information and website information of a webpage.
Alternatively, the information receiving module 71 may be configured to perform: creating a subspace corresponding to the identification information according to the identification information; the first modified data is saved to the subspace.
Alternatively, the information sending module 73 may be configured to perform: extracting identification information and user address information according to the webpage data acquisition request; acquiring first modification data according to the identification information; and sending the first modification data according to the user address information.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
The program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical disk, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 8, electronic device 800 is in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, a bus 830 connecting different system components (including the memory unit 820 and the processing unit 810), and a display unit 840.
The storage unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (12)

1. A method for processing web page data, comprising:
responding to a first modification operation aiming at page data of a webpage, and generating first modification data and identification information corresponding to the first modification data;
and sending the first modification data and the identification information to a server so as to obtain the first modification data from the server according to the identification information and the website information of the webpage.
2. The method for processing web page data according to claim 1, further comprising:
responding to a second modification operation aiming at the page data of the webpage to generate second modification data; the second modification operation is a modification operation after the first modification operation is completed;
and sending the second modification data and the identification information to a server so as to obtain the second modification data from the server according to the identification information and the website information of the webpage.
3. The method for processing webpage data according to claim 1, wherein acquiring the first modification data from the server according to the identification information and the website information of the webpage comprises:
determining target website information according to the identification information and the website information of the webpage;
and acquiring the first modification data from the server according to the target website information.
4. The web page data processing method according to claim 1, wherein generating first modification data and identification information corresponding to the first modification data includes:
generating the first modification data, and judging whether a user has modification authority;
and if the user has the modification authority, generating the identification information corresponding to the first modification data.
5. The web page data processing method according to claim 1, wherein transmitting the first modification data and the identification information to a server comprises:
packaging the first modified data into a json format to obtain the first modified data of the json format;
and sending the first modified data in the json format and the identification information to the server in an ajax mode.
6. A method for processing web page data, comprising:
receiving first modification data and identification information corresponding to the first modification data, wherein the first modification data is data generated in response to a first modification operation on page data of a webpage;
under the condition of receiving a webpage data acquisition request, sending the first modification data;
the webpage data acquisition request comprises the identification information and website information of the webpage.
7. The web page data processing method according to claim 6, wherein receiving first modification data and identification information corresponding to the first modification data comprises:
creating a subspace corresponding to the identification information according to the identification information;
and saving the first modification data into the subspace.
8. The web page data processing method according to claim 6, wherein sending the first modification data in case of receiving a web page data obtaining request comprises:
extracting the identification information and the user address information according to the webpage data acquisition request;
acquiring the first modification data according to the identification information;
and sending the first modification data according to the user address information.
9. A web page data processing apparatus characterized by comprising:
the information generating module is used for responding to first modification operation aiming at page data of a webpage and generating first modification data and identification information corresponding to the first modification data;
and the information acquisition module is used for sending the first modification data and the identification information to a server so as to acquire the first modification data from the server according to the identification information and the website information of the webpage.
10. A web page data processing apparatus characterized by comprising:
the information receiving module is used for receiving first modification data and identification information corresponding to the first modification data, wherein the first modification data is data generated in response to a first modification operation aiming at page data of a webpage;
the information sending module is used for sending the first modification data under the condition of receiving a webpage data acquisition request; the webpage data acquisition request comprises the identification information and website information of the webpage.
11. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the web page data processing method according to any one of claims 1 to 8.
12. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the web page data processing method of any one of claims 1-8 via execution of the executable instructions.
CN202011357311.5A 2020-11-26 2020-11-26 Webpage data processing method and device, storage medium and electronic equipment Pending CN113792243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011357311.5A CN113792243A (en) 2020-11-26 2020-11-26 Webpage data processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011357311.5A CN113792243A (en) 2020-11-26 2020-11-26 Webpage data processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113792243A true CN113792243A (en) 2021-12-14

Family

ID=79181159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011357311.5A Pending CN113792243A (en) 2020-11-26 2020-11-26 Webpage data processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113792243A (en)

Similar Documents

Publication Publication Date Title
US11372935B2 (en) Automatically generating a website specific to an industry
US8640037B2 (en) Graphical overlay related to data mining and analytics
CN107729475B (en) Webpage element acquisition method, device, terminal and computer-readable storage medium
US9984408B1 (en) Method, medium, and system for live video cooperative shopping
US8225197B1 (en) Rendering approximate webpage screenshot client-side
US20190034441A1 (en) Digital communications platform for webpage overlay
US20200357007A1 (en) Page data acquisition method, apparatus, server, electronic device and computer readable medium
US10175861B2 (en) Method and system for web page commenting, browser and storage medium
CN110069683B (en) Method and device for crawling data based on browser
CN109376291B (en) Website fingerprint information scanning method and device based on web crawler
CN106951270B (en) Code processing method, system and server
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
CN107085549B (en) Method and device for generating fault information
US10572566B2 (en) Image quality independent searching of screenshots of web content
CN107294918B (en) Phishing webpage detection method and device
CN104765746B (en) Data processing method and device for mobile communication terminal browser
US10248392B2 (en) Replicating a web technology
CN111177519A (en) Webpage content acquisition method and device, storage medium and equipment
CN111431767B (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
CN110968314A (en) Page generation method and device
CN107229653B (en) Pseudo static webpage generation method and device
WO2019144259A1 (en) Transformation of resource files using mapped keys for tracking content location
CN113220381A (en) Click data display method and device
CN113792243A (en) Webpage data processing method and device, storage medium and electronic equipment
CN107870854B (en) Method and device for testing data accuracy of chart library

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