Data extraction page information storage method, terminal, equipment and storage medium
By detecting and sending data extraction page information and path information in the Web page, it solves the problem of users frequently inputting target content, realizes an efficient process of data extraction, and improves operational efficiency.
Patent Information
- Application Number
- CN202310200281.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
In Web pages, users need to frequently input target content for data extraction, resulting in cumbersome and inefficient operations.
By detecting dragging, content input and saving operations in the operation interface, the terminal obtains and sends data extraction page information and path information to the server. The server stores this information so that users can directly call historical data when reusing it.
It simplifies the process of data extraction in Web pages, improves efficiency, and avoids the need to drag controls and enter data extraction keywords every time.
Smart Images

Figure CN118568378A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for storing data extraction page information. Background Art
[0002] The Web (World Wide Web) terminal is widely used in people's work and life due to its advantages such as high cost performance and easy maintenance, such as content search and data extraction.
[0003] When a user uses a web page at a terminal, he usually needs to enter the target content he wants to obtain in the specified area of the web page, and then click Enter, the "Search" button or the "Run" button. The terminal sends the above target content to the background server, so that the server can obtain information related to the above target content and send it to the terminal.
[0004] However, the user's operation on the web page is usually one-time, that is, when the user reopens the web page, the target content that has been input in the past in the web page is usually not available. For the target content that needs to be reused, it needs to be re-entered every time the web page is opened, which is cumbersome and inefficient. Summary of the invention
[0005] The embodiments of the present disclosure provide a method, terminal, device and storage medium for data extraction page information storage, which can solve the problem of low efficiency in related technologies. The technical solution is as follows:
[0006] In a first aspect, a method for storing data extraction page information is provided, the method comprising:
[0007] When a dragging operation of a target control from a control selection area to a target position in the canvas is detected in the operation interface, the terminal displays the target control at the target position in the canvas;
[0008] When a content input operation corresponding to the target control is detected, the terminal obtains a data extraction keyword in the target control;
[0009] When a save operation in the operation interface is detected, the terminal sends data extraction page information and path information to the server, wherein the data extraction page information includes a control identifier corresponding to the target control, the data extraction keyword and the target location;
[0010] The server stores the data extraction page information based on the path information.
[0011] In a possible implementation, before detecting a drag operation of a target control from a control selection area to a target position in a canvas in the operation interface, the method further includes:
[0012] When detecting a canvas creation operation under a target object in a directory area in the operation interface, the terminal creates a new canvas in the operation interface;
[0013] The terminal obtains path information corresponding to the canvas in the directory area;
[0014] The terminal establishes a first data set corresponding to the canvas based on a preset data format, and stores the path information in the first data set.
[0015] In a possible implementation manner, the terminal displays the target control at a target position in the canvas, including:
[0016] The terminal acquires the target location;
[0017] If the path information exists in the first data set, the terminal generates a second data set based on the data format, the path information corresponding to the canvas, the control identifier corresponding to the target control, and the target position, and replaces the first data set with the second data set;
[0018] The terminal displays the target control at a target position in the canvas.
[0019] In a possible implementation manner, the terminal displays the target control at a target position in the canvas, including:
[0020] The terminal acquires the target location;
[0021] If the path information does not exist in the first data set, the terminal stores the path information corresponding to the canvas, the control identifier of the target control, and the target position in the first data set;
[0022] The terminal displays the target control at a target position in the canvas.
[0023] In a possible implementation, the terminal obtains the data extraction keyword in the target control, including:
[0024] The terminal identifies a data extraction keyword in the target control;
[0025] The terminal generates a third data set based on the data format, path information corresponding to the canvas, a control identifier corresponding to the target control, the data extraction keyword and the target location, and replaces the first data set corresponding to the canvas with the third data set.
[0026] In a possible implementation manner, after the server stores the data extraction page information based on the path information, the server further includes:
[0027] When a selection operation on a target canvas is detected in the operation interface, the target terminal sends a canvas acquisition request carrying target path information corresponding to the target canvas to the server;
[0028] The server determines corresponding target data extraction page information based on the target path information, and sends the target data extraction page information to the target terminal;
[0029] The target terminal renders and displays a target data extraction page based on the target data extraction page information.
[0030] In a possible implementation, after the terminal obtains the data extraction keyword in the target control, the method further includes:
[0031] When a running operation in the operation interface is detected, the terminal sends a data extraction instruction carrying the data extraction keyword to the server;
[0032] The server extracts data based on the data extraction keyword, determines target data, and sends the target data to the terminal.
[0033] In a second aspect, a terminal is provided, the terminal comprising:
[0034] A display module, configured to display the target control at the target position in the canvas when a dragging operation of the target control from the control selection area to the target position in the canvas is detected in the operation interface;
[0035] An acquisition module, configured to acquire a data extraction keyword in the target control when a content input operation corresponding to the target control is detected;
[0036] The sending module is used to send data extraction page information and path information to the server when a save operation in the operation interface is detected, wherein the data extraction page information includes a control identifier corresponding to the target control, the data extraction keyword and the target location.
[0037] In a possible implementation, the display module is further used for:
[0038] When detecting a canvas creation operation under a target object in a directory area in the operation interface, the terminal creates a new canvas in the operation interface;
[0039] The terminal obtains path information corresponding to the canvas in the directory area;
[0040] The terminal establishes a first data set corresponding to the canvas based on a preset data format, and stores the path information in the first data set.
[0041] In a possible implementation, the display module is used to:
[0042] The terminal acquires the target location;
[0043] If the path information exists in the first data set, the terminal generates a second data set based on the data format, the path information corresponding to the canvas, the control identifier corresponding to the target control, and the target position, and replaces the first data set with the second data set;
[0044] The terminal displays the target control at a target position in the canvas.
[0045] In a possible implementation, the display module is used to:
[0046] The terminal acquires the target location;
[0047] If the path information does not exist in the first data set, the terminal stores the path information corresponding to the canvas, the control identifier of the target control, and the target position in the first data set;
[0048] The terminal displays the target control at a target position in the canvas.
[0049] In a possible implementation, the acquisition module is used to:
[0050] The terminal identifies a data extraction keyword in the target control;
[0051] The terminal generates a third data set based on the data format, path information corresponding to the canvas, a control identifier corresponding to the target control, the data extraction keyword and the target location, and replaces the first data set corresponding to the canvas with the third data set.
[0052] In a possible implementation manner, the terminal further includes a selection module, configured to:
[0053] When a selection operation on a target canvas is detected in the operation interface, the target terminal sends a canvas acquisition request carrying target path information corresponding to the target canvas to the server;
[0054] The server determines corresponding target data extraction page information based on the target path information, and sends the target data extraction page information to the target terminal;
[0055] The target terminal renders and displays a target data extraction page based on the target data extraction page information.
[0056] In a third aspect, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements a method for storing data extraction page information as described in any one of the first aspect and its possible implementation methods.
[0057] In a fourth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored. The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the operations performed by the method for storing data extraction page information as described in any one of the first aspect and its possible implementation methods.
[0058] The technical solution provided by the embodiments of the present disclosure has the following beneficial effects:
[0059] According to the scheme mentioned in the embodiment of the present disclosure, the user can add controls to the canvas of the operation page and enter data extraction keywords in the controls to implement data extraction processing. Moreover, the path information and data extraction page information corresponding to the canvas are stored in the server. When the user uses the Web page to perform data extraction operations again, the corresponding data extraction page information can be obtained from the server according to the path information. With this scheme, when performing data extraction processing according to the same data extraction keyword, historical information can be directly called, avoiding the process of dragging controls to the canvas and entering data extraction keywords in the controls every time, which is conducive to simplifying the process of data extraction in the Web page and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0061] Figure 1is a schematic diagram of an operation interface provided by an embodiment of the present disclosure;
[0062] Figure 2 is a schematic diagram of the structure of a computer system provided by an embodiment of the present disclosure;
[0063] Figure 3 is a flow chart of a method for storing data extraction page information provided by an embodiment of the present disclosure;
[0064] Figure 4 is a schematic diagram of an operation interface provided by an embodiment of the present disclosure;
[0065] Figure 5 is a schematic diagram of a data set provided by an embodiment of the present disclosure;
[0066] Figure 6 is a schematic diagram of an operation interface provided by an embodiment of the present disclosure;
[0067] Figure 7 is a schematic diagram of the structure of a terminal provided by an embodiment of the present disclosure;
[0068] Figure 8 is a schematic diagram of the structure of a terminal provided by an embodiment of the present disclosure;
[0069] Fig. 9 is a structural block diagram of a terminal provided by an embodiment of the present disclosure;
[0070] Fig.10 It is a structural diagram of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0071] The terms used in the embodiments of the present disclosure are only used to explain the embodiments of the present disclosure, and are not intended to limit the present disclosure. Unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be the common meanings understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure specification and claims do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one" or "one" do not indicate a quantity limit, but indicate that there is at least one. Similar words such as "include" or "include" mean that the elements or objects appearing in front of "include" or "include" include the elements or objects listed after "include" or "include" and their equivalents, and do not exclude other elements or objects. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly. "Multiple" refers to two or more, unless otherwise clearly defined.
[0072] In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.
[0073] Data extraction refers to the process of extracting data from a data source. Currently, data extraction is usually performed in an application, that is, when performing data extraction processing, it is usually necessary to download the corresponding application at the terminal before performing data extraction processing. This makes the data extraction process more complicated and cumbersome. In order to improve the convenience of data extraction, methods for data extraction in Web pages have emerged.
[0074] Developers can design web pages in advance, such as Figure 1 As shown, the operation interface of the Web page includes a directory area, a control selection area and a canvas. The directory area can be used to indicate the path information of the current canvas in the server. The path information is unique and can also be considered as the canvas identifier corresponding to the current canvas; the control selection area includes multiple input controls and multiple output controls. For each input control or each output control, the technician can pre-write the corresponding execution code to meet the needs of data extraction. When performing data extraction, the user can drag at least one input control and at least one output control to the canvas, and enter the data extraction keyword in the input control and the output control. The server can perform the data extraction operation according to the data extraction keyword in the input control and the data extraction keyword in the output control, and obtain the data that meets the data extraction keyword in the input control and the output control. The canvas is used to play a display role. The user can drag at least one input control and at least one output control to the canvas, and enter the data extraction keyword in the input control and the output control.
[0075] The embodiment of the present disclosure provides a method for storing data extraction page information. The method is applied to a computer system composed of a terminal and a server. The structure of the computer system is shown in FIG. Figure 2 As shown, the execution subject of the method is a terminal in a computer system. Figure 3 is a flow chart of a method for storing data extraction page information provided by an embodiment of the present disclosure, such as Figure 3 As shown, data extraction page information storage may include the following processing steps:
[0076] S301: When a canvas creation operation is detected for a target object in a directory area in an operation interface, the terminal creates a new canvas in the operation interface.
[0077] Figure 4 is a schematic diagram of an operation interface provided by an embodiment of the present disclosure. When extracting data, the user can first Figure 4In the directory area shown in FIG. 1 , an existing target object is selected and a canvas is created under the target object. Alternatively, the user can first create a new target object under a folder in the directory area and then create a canvas under the target object.
[0078] When detecting the operation of creating a canvas corresponding to the target in the directory area in the operation interface, the terminal can create a new canvas in the operation interface and display the canvas. The canvas position can be as follows: Figure 1 The user can edit the name of the canvas, such as Figure 1 Optionally, the user can name the canvas arbitrarily according to his actual needs, or the terminal randomly assigns a name to the canvas.
[0079] When the terminal creates a canvas, it can obtain the path information corresponding to the newly created canvas in the directory area, such as Figure 1 or Figure 4 As shown, the path information corresponding to the canvas "table" can be expressed as "ZXY / test / table". The terminal can establish a first data set corresponding to the canvas based on a preset data format, and store the acquired path information at a specified position in the first data set. The above data format can be an array, which can include three parts. The first part is used to represent the path information corresponding to the canvas, the second part is used to represent the control identifier corresponding to each control in the canvas and the data extraction keyword in the control, and the third part is used to represent the position information of each control in the canvas. The data format is shown in the figure below. Figure 5 As an example, for a user's newly created canvas, there is no control in the canvas. In this case, the first data set generally only includes path information, and the corresponding second part content and third part content can be represented by a "0" value.
[0080] Optionally, the data format may be a 256-bit string, that is, the first data set is a 256-bit string. In the string, bits 1-16 are used to represent the path information corresponding to the canvas; bits 17-180 are used to represent the control identifier corresponding to each control in the canvas and the data extraction keyword in the control; bits 181-256 are used to represent the position information of each control in the canvas.
[0081] Optionally, the first data set may also include other information about the canvas, such as Figure 1 and Figure 4 It should be noted that the information related to the canvas in the first data set is only exemplarily described here, and the first data set may also include rendering information for displaying the canvas, etc., which is not limited here.
[0082] S302: When a dragging operation of a target control from a control selection area to a target position in a canvas is detected in the operation interface, the terminal displays the target control at the target position in the canvas.
[0083] After the user creates a new canvas, the user usually drags the control from the control selection area to the canvas with the mouse. In implementation, when a drag operation of a target control from the control selection area to a target position in the canvas is detected in the operation interface, the terminal obtains the target position, specifically, the terminal obtains the coordinates of the target position in the canvas.
[0084] As an example, when a user uses a mouse to drag a target control and stays at a certain position in the canvas for more than a preset time threshold, the position can be determined as the target position. The time threshold can be 3 seconds, 5 seconds, etc. Optionally, the target position can also be a pre-set position in the canvas, for example, Figure 6 As shown, a total of 8 control positions in the upper and lower rows are pre-set in the canvas. The 4 control positions in the first row are used to set input controls, and the 4 control positions in the second row are used to set output controls. Users can drag an input control to any of the 4 control positions in the first row, and that control position is the target position. Similarly, the control position where the output control is set in the second row is the target position.
[0085] In some examples, if there is path information in the first data set, the terminal can establish a second data set according to the data format, and store the path information corresponding to the canvas, the control identifier and the target position corresponding to the target control in the specified position of the second data set, and then replace the first data set with the second data set. With this solution, when the first data set in the terminal already stores data, the terminal can use the new data to establish the second data set, and then directly replace the first data set with the second data set, instead of first determining the data storage location in the first data set and then storing the data. This saves time in determining the data storage location, helps improve the terminal's response speed, and helps improve the accuracy of data storage.
[0086] In other examples, if there is no path information in the above-mentioned first data set, it means that the terminal has not established a corresponding relationship between the first data set and the canvas, and it can also be considered that the first data set is full of "0" values. In this case, the terminal can directly store the path information corresponding to the canvas, the control identifier and the target position of the target control in the first data set, thereby binding the canvas to the first data set, that is, establishing a corresponding relationship between the canvas and the first data set.
[0087] At the same time, the terminal displays the target control at the target position in the canvas to facilitate the user to perform subsequent operations. The process of the terminal displaying the target control and the terminal storing the relevant data can be performed simultaneously, and the execution order thereof is not limited here.
[0088] In some examples, if the user deletes a control in the canvas, the terminal can first confirm whether the first data set corresponding to the canvas stores a control identifier corresponding to the control; if not, no operation is required; if so, the terminal can establish a temporary data set with all "0" values in accordance with the above data format, and store the path information corresponding to the canvas, the control identifier of each control remaining in the canvas after deleting the control, the position of each remaining control, and the data extraction keyword corresponding to each remaining control (mentioned below) in the temporary data set; finally, the first data set corresponding to the canvas is replaced with the temporary data set, thereby completing the data storage processing after deleting the control.
[0089] In some examples, the user can move the position of any control in the canvas. When the user moves a control from a first position to a second position, the terminal can directly find the first position in the first data set corresponding to the canvas and replace the first position with the second position, thereby completing the data storage processing after the control is moved.
[0090] S303: When a content input operation corresponding to a target control is detected, the terminal obtains a data extraction keyword in the target control.
[0091] After the user adds a target control in the canvas, the user can enter a data extraction keyword for data extraction processing in the target control, wherein the data extraction keyword can be one or more of letters, numbers, characters, words, phrases, and sentences.
[0092] In implementation, when a content input operation corresponding to a target control is detected, that is, when a user is detected inputting content in an input box corresponding to the target control, the terminal can identify a data extraction keyword in the target control (that is, the content input by the user in the target control). At this time, the terminal will display the above data extraction keyword in the target control.
[0093] At the same time, the terminal can generate a third data set based on the above-mentioned preset data format, the path information corresponding to the canvas, the control identifier corresponding to the target control, the data extraction keyword and the target position. In implementation, the terminal can first generate the third data set according to the preset data format. At this time, the third data set is full of "0" values; then, the terminal can store the path information corresponding to the canvas, the control identifier corresponding to each control in the canvas, the data extraction keyword of each control and the target position of each control in the third data set. Finally, the first data set corresponding to the canvas is replaced with the third data set, and the storage process of the data extraction keyword is completed. The above process is the storage process of the data extraction keyword when the data extraction keyword is added to the target control. Similarly, the storage process after deleting or replacing the data extraction keyword of the target control can be completed in the above manner. The specific process will not be repeated here.
[0094] S304: When a save operation is detected in the operation interface, the terminal sends data extraction page information and path information to the server.
[0095] When a save operation is detected in the operation interface, the terminal sends data extraction page information and path information to the server, wherein the data extraction page information includes a control identifier corresponding to the target control, a data extraction keyword and the target location.
[0096] like Figure 1 As shown, the operation interface of the terminal may include but is not limited to a "Save" button, a "Run" button, and an "End" button. The "Save" button is used to instruct the server to store the above data extraction page information and path information, the "Run" button is used to instruct the server to perform the data extraction operation, and the "End" button is used to instruct the server to stop the data extraction operation.
[0097] In implementation, the user drags all the required controls to the canvas and enters the data extraction keyword in each control, and then clicks the "Save" button. At this time, the terminal will send to the server the control identifier corresponding to the target control, the data extraction keyword, the data extraction page information of the target location, and the path information corresponding to the canvas, that is, the terminal will send the above-mentioned first data set to the server.
[0098] S305. The server stores data and extracts page information based on the path information.
[0099] After the server receives the data extraction page information and path information sent by the terminal, it can store the path information and the data extraction page information correspondingly for subsequent use.
[0100] According to the scheme mentioned in the embodiment of the present disclosure, the user can add controls to the canvas of the operation page and enter data extraction keywords in the controls to implement data extraction processing. Moreover, the path information and data extraction page information corresponding to the canvas are stored in the server. When the user uses the Web page to perform data extraction operations again, the corresponding data extraction page information can be obtained from the server according to the path information. With this scheme, when performing data extraction processing according to the same data extraction keyword, historical information can be directly called, avoiding the process of dragging controls to the canvas and entering data extraction keywords in the controls every time, which is conducive to simplifying the process of data extraction in the Web page and improving efficiency.
[0101] In some examples, after the server extracts the page information based on the path information storage data, the method may further include the following application process:
[0102] The user can use any target terminal to log in to the data extraction web page, and select any existing canvas in the directory area in the operation interface of the web page. When the target terminal detects the selection operation of the target canvas in the operation interface, the target terminal can first determine the target path information corresponding to the target canvas, and then send a canvas acquisition request carrying the target path information corresponding to the target canvas to the server. After receiving the canvas acquisition request, the server extracts the target path information therein, determines the corresponding target data extraction page information according to the target path information in the correspondence relationship between the stored path information and the data extraction page information, and then sends the target data extraction page information to the target terminal. The target terminal receives the target data extraction page information sent by the server, and based on the target data extraction page information, renders and displays the target data extraction page, so that the user can reuse the historical data extraction page.
[0103] In some examples, the data extraction operation may be processed as follows:
[0104] After the user enters the data extraction keyword in the target control in the canvas and the terminal obtains the data extraction keyword in the target control, the user can click the "Run" button in the canvas, and then the terminal will send a data extraction instruction carrying the data extraction keyword corresponding to each control to the server. After receiving the data extraction instruction, the server can extract the data extraction keyword corresponding to each control, and then perform data extraction processing based on the data extraction keyword, that is, determine the target data matching the data extraction keyword in the data source. Finally, the server sends the target data to the terminal, and the terminal displays the target data to the user, and the data extraction process ends. There is no limitation here on the process of determining the target data matching the data extraction keyword in the data source.
[0105] In other examples, the data extraction operation is performed after the save operation mentioned above. In this case, the terminal can send a data extraction instruction carrying path information corresponding to the canvas to the server. After receiving the data extraction instruction, the server can first determine the corresponding data extraction page information based on the path information, and then find the data extraction keyword in the data extraction page information. Then, determine the target data matching the data extraction keyword in the data source. Finally, the server sends the target data to the terminal, and the terminal displays the target data to the user, and the data extraction process ends.
[0106] In other examples, the data extraction operation and the saving operation mentioned above are performed synchronously. This case is similar to the above two cases, and the specific process will not be described here.
[0107] Based on the same technical concept, the embodiment of the present disclosure provides a terminal, Figure 7 is a schematic diagram of a terminal structure provided by an embodiment of the present disclosure, such as Figure 7 As shown, the terminal includes a display module 710 , an acquisition module 720 and a sending module 730 .
[0108] The display module 710 is used to display the target control at the target position in the canvas when a drag operation of the target control from the control selection area to the target position in the canvas is detected in the operation interface;
[0109] An acquisition module 720 is configured to acquire a data extraction keyword in the target control when a content input operation corresponding to the target control is detected;
[0110] The sending module 730 is used to send data extraction page information and path information to the server when a save operation in the operation interface is detected, wherein the data extraction page information includes the control identifier corresponding to the target control, the data extraction keyword and the target location.
[0111] In a possible implementation, the display module 710 is further used for:
[0112] When detecting a canvas creation operation under a target object in a directory area in the operation interface, the terminal creates a new canvas in the operation interface;
[0113] The terminal obtains path information corresponding to the canvas in the directory area;
[0114] The terminal establishes a first data set corresponding to the canvas based on a preset data format, and stores the path information in the first data set.
[0115] In a possible implementation, the display module 710 is used to:
[0116] The terminal acquires the target location;
[0117] If the path information exists in the first data set, the terminal generates a second data set based on the data format, the path information corresponding to the canvas, the control identifier corresponding to the target control, and the target position, and replaces the first data set with the second data set;
[0118] The terminal displays the target control at a target position in the canvas.
[0119] In a possible implementation, the display module 710 is used to:
[0120] The terminal acquires the target location;
[0121] If the path information does not exist in the first data set, the terminal stores the path information corresponding to the canvas, the control identifier of the target control, and the target position in the first data set;
[0122] The terminal displays the target control at a target position in the canvas.
[0123] In a possible implementation, the acquisition module 720 is used to:
[0124] The terminal identifies a data extraction keyword in the target control;
[0125] The terminal generates a third data set based on the data format, path information corresponding to the canvas, a control identifier corresponding to the target control, the data extraction keyword and the target location, and replaces the first data set corresponding to the canvas with the third data set.
[0126] In one possible implementation, Figure 8 As shown, the terminal may further include a selection module 740, and the selection module 740 is used to:
[0127] When a selection operation on a target canvas is detected in the operation interface, the target terminal sends a canvas acquisition request carrying target path information corresponding to the target canvas to the server;
[0128] The server determines corresponding target data extraction page information based on the target path information, and sends the target data extraction page information to the target terminal;
[0129] The target terminal renders and displays a target data extraction page based on the target data extraction page information.
[0130] According to the scheme mentioned in the embodiment of the present disclosure, the user can add controls to the canvas of the operation page and enter data extraction keywords in the controls to implement data extraction processing. Moreover, the path information and data extraction page information corresponding to the canvas are stored in the server. When the user uses the Web page to perform data extraction operations again, the corresponding data extraction page information can be obtained from the server according to the path information. With this scheme, when performing data extraction processing according to the same data extraction keyword, historical information can be directly called, avoiding the process of dragging controls to the canvas and entering data extraction keywords in the controls every time, which is conducive to simplifying the process of data extraction in the Web page and improving efficiency.
[0131] The terminal provided in the embodiments of the present disclosure may be: a smart phone, a tablet computer, an MP3 (moving picture experts group audio layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (moving picture experts group audio layer IV, dynamic image expert compression standard audio layer 4) player, a notebook computer or a desktop computer. The terminal may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0132] From the hardware composition point of view, such as Fig. 9 As shown, the terminal generally includes: a processor 901 and a memory 902 .
[0133] The processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 901 may be implemented in at least one hardware form of DSP (digital signal processing), FPGA (field-programmable gate array), and PLA (programmable logic array). The processor 901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (central processing unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 901 may be integrated with a GPU (graphics processing unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 901 may also include an AI (artificial intelligence) processor, which is used to process computing operations related to machine learning.
[0134] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 902 is used to store at least one instruction, which is used to be executed by the processor 901 to implement the method for storing data extraction page information provided in the method embodiment of the present disclosure.
[0135] In some embodiments, the terminal may further optionally include: a peripheral device interface 903 and at least one peripheral device. The processor 901, the memory 902 and the peripheral device interface 903 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 903 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a display screen 905, a camera 906, an audio circuit 907, a positioning component 908 and a power supply 909.
[0136] The peripheral device interface 903 may be used to connect at least one peripheral device related to I / O (input / output) to the processor 901 and the memory 902. In some embodiments, the processor 901, the memory 902, and the peripheral device interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902, and the peripheral device interface 903 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0137] The radio frequency circuit 904 is used to receive and transmit RF (radio frequency) signals, also known as electromagnetic signals. The radio frequency circuit 904 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 904 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 904 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (wireless fidelity) network. In some embodiments, the radio frequency circuit 904 may also include circuits related to NFC (near field communication), which is not limited in the present disclosure.
[0138] The display screen 905 is used to display a UI (user interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to collect touch signals on the surface or above the surface of the display screen 905. The touch signal can be input to the processor 901 as a control signal for processing. At this time, the display screen 905 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 905 can be one, and the front panel of the terminal is set; in other embodiments, the display screen 905 can be at least two, which are respectively set on different surfaces of the terminal or are folded; in some other embodiments, the display screen 905 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal. Even, the display screen 905 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 905 can be made of materials such as LCD (liquid crystal display), OLED (organic light-emitting diode), etc.
[0139] The camera assembly 906 is used to capture images or videos. Optionally, the camera assembly 906 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (virtual reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 906 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0140] The audio circuit 907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 901 for processing, or input them into the radio frequency circuit 904 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 901 or the radio frequency circuit 904 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 907 may also include a headphone jack.
[0141] The positioning component 908 is used to locate the current geographical location of the terminal to implement navigation or LBS (location based service). The positioning component 908 can be a positioning component based on GPS (global positioning system), Beidou system, Greiner system or Galileo system.
[0142] The power supply 909 is used to power various components in the terminal. The power supply 909 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 909 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0143] In some embodiments, the terminal further includes one or more sensors 910 , including but not limited to: an acceleration sensor 911 , a gyroscope sensor 912 , a pressure sensor 913 , a fingerprint sensor 914 , an optical sensor 915 , and a proximity sensor 916 .
[0144] The acceleration sensor 911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor 911 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 901 can control the display screen 905 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 can also be used for collecting game or user motion data.
[0145] The gyroscope sensor 912 can detect the body direction and rotation angle of the terminal, and the gyroscope sensor 912 can cooperate with the acceleration sensor 911 to collect the user's 3D actions on the terminal. The processor 901 can implement the following functions based on the data collected by the gyroscope sensor 912: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0146] The pressure sensor 913 can be set in the side frame of the terminal and / or the lower layer of the display screen 905. When the pressure sensor 913 is set in the side frame of the terminal, the user's holding signal of the terminal can be detected, and the processor 901 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is set in the lower layer of the display screen 905, the processor 901 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0147] The fingerprint sensor 914 is used to collect the user's fingerprint, and the processor 901 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 914 can be set on the front, back, or side of the terminal. When a physical button or manufacturer logo is set on the terminal, the fingerprint sensor 914 can be integrated with the physical button or manufacturer logo.
[0148] The optical sensor 915 is used to collect the ambient light intensity. In one embodiment, the processor 901 can control the display brightness of the display screen 905 according to the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is reduced. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera component 906 according to the ambient light intensity collected by the optical sensor 915.
[0149] The proximity sensor 916, also known as a distance sensor, is usually arranged on the front panel of the terminal. The proximity sensor 916 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front of the terminal is gradually decreasing, the processor 901 controls the display screen 905 to switch from the screen-on state to the screen-off state; when the proximity sensor 916 detects that the distance between the user and the front of the terminal is gradually increasing, the processor 901 controls the display screen 905 to switch from the screen-off state to the screen-on state.
[0150] Those skilled in the art will understand that Fig. 9 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0151] Fig.10 1 is a schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure, and the computer device 1000 may be a terminal in the above embodiment. The computer device 1000 may have relatively large differences due to different configurations or performances, and may include one or more CPUs (central processing units, processors) 1001 and one or more memories 1002, wherein the memory 1002 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1001 to implement the data extraction page information storage method provided in the above-mentioned various method embodiments. Of course, the computer device may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The computer device may also include other components for realizing the functions of the device, which will not be repeated here.
[0152] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, and the instructions can be executed by a processor in a terminal to complete the method for storing data extraction page information in the above embodiment. The computer-readable storage medium can be non-transitory. For example, the computer-readable storage medium can be a ROM (read-only memory), a RAM (random access memory), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0153] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0154] The above description is only an optional embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for storing data extraction page information, characterized in that: The method comprises: When a dragging operation of a target control from a control selection area to a target position in the canvas is detected in the operation interface, the terminal displays the target control at the target position in the canvas; When a content input operation corresponding to the target control is detected, the terminal obtains a data extraction keyword in the target control; When a save operation in the operation interface is detected, the terminal sends data extraction page information and path information to the server, wherein the data extraction page information includes a control identifier corresponding to the target control, the data extraction keyword and the target location; The server stores the data extraction page information based on the path information.
2. The method according to claim 1, characterized in that: Before detecting a dragging operation of a target control from a control selection area to a target position in a canvas in the operation interface, the method further includes: When detecting a canvas creation operation under a target object in a directory area in the operation interface, the terminal creates a new canvas in the operation interface; The terminal obtains path information corresponding to the canvas in the directory area; The terminal establishes a first data set corresponding to the canvas based on a preset data format, and stores the path information in the first data set.
3. The method according to claim 2, characterized in that The terminal displays the target control at a target position in the canvas, including: The terminal acquires the target location; If the path information exists in the first data set, the terminal generates a second data set based on the data format, the path information corresponding to the canvas, the control identifier corresponding to the target control, and the target position, and replaces the first data set with the second data set; The terminal displays the target control at a target position in the canvas.
4. The method according to claim 2, characterized in that: The terminal displays the target control at a target position in the canvas, including: The terminal acquires the target location; If the path information does not exist in the first data set, the terminal stores the path information corresponding to the canvas, the control identifier of the target control, and the target position in the first data set; The terminal displays the target control at a target position in the canvas.
5. The method according to claim 3 or 4, characterized in that: The terminal obtains the data extraction keyword in the target control, including: The terminal identifies a data extraction keyword in the target control; The terminal generates a third data set based on the data format, path information corresponding to the canvas, a control identifier corresponding to the target control, the data extraction keyword and the target location, and replaces the first data set corresponding to the canvas with the third data set.
6. The method according to claim 1, characterized in that After the server stores the data extraction page information based on the path information, the server further includes: When a selection operation on a target canvas is detected in the operation interface, the target terminal sends a canvas acquisition request carrying target path information corresponding to the target canvas to the server; The server determines corresponding target data extraction page information based on the target path information, and sends the target data extraction page information to the target terminal; The target terminal renders and displays a target data extraction page based on the target data extraction page information.
7. The method according to claim 1, characterized in that After the terminal obtains the data extraction keyword in the target control, the method further includes: When a running operation in the operation interface is detected, the terminal sends a data extraction instruction carrying the data extraction keyword to the server; The server extracts data based on the data extraction keyword, determines target data, and sends the target data to the terminal.
8. A terminal, characterized in that: The terminal comprises: A display module, configured to display the target control at the target position in the canvas when a dragging operation of the target control from the control selection area to the target position in the canvas is detected in the operation interface; An acquisition module, configured to acquire a data extraction keyword in the target control when a content input operation corresponding to the target control is detected; The sending module is used to send data extraction page information and path information to the server when a save operation in the operation interface is detected, wherein the data extraction page information includes a control identifier corresponding to the target control, the data extraction keyword and the target location.
9. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements the method for establishing data extraction page information storage as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operation performed by the method for storing data extraction page information as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Monitoring page realization method and monitoring page
CN106095847A
Data visualization realization system and method
CN107844297A
Page data display method and device
CN108009269A
Page recovery display method and device, computer equipment and storage medium
CN111177616A
Software online development platform and software online development method
CN111984176A
