Front-end data capture and transmission method, device and system and storage medium
By automating the acquisition and packaging of system information and content information of front-end data, the problem of low front-end data sorting efficiency and unstable test environment is solved, and an efficient and accurate data handover and management process is realized.
Patent Information
- Application Number
- CN202410741440.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-07
AI Technical Summary
The existing technology has problems in the collection, handover and transfer of front-end data, such as low data collection efficiency, high labor costs and instability of the test environment, which limits the work efficiency and accuracy of front-end engineers.
Provides a front-end data capture and transmission method that automatically obtains system information and content information by obtaining capture instructions, and packages and generates capture data packets to achieve a data handover process that does not require manual sorting and filling in, supports quick switching of test accounts, and improves Information sorting and collection efficiency.
It realizes page data handover without manual sorting and filling in, improves work efficiency, reduces labor costs, stabilizes the test environment, and ensures data accuracy and rapid handover.
Smart Images

Figure CN118708431A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data capture and financial technology, and more specifically, to a front-end data capture and transmission method, device, system and storage medium. Background Art
[0002] "Product front-end" refers to the job role of front-end developers in building and maintaining the user interface of digital products. This role focuses on translating the visual design and user experience concepts of designers and product managers into actual front-end code and functionality. Product front-end developers generally need to have skills related to user interface design, user experience design, and product functional interaction. The main tasks of product front-end include: interface development, user experience implementation, cooperation with the design team, collaboration with product managers, front-end coding, performance optimization, responsive design, browser compatibility, testing and debugging, security, and document writing, etc.
[0003] In the field of financial technology, front-end engineers often need to handle the handover of page information, interface names, interface return data, page content, and page status. This work requires manual sorting and filling of information, as well as communication and handover between different projects and pages. However, existing technologies have some problems in this regard, including low data collection efficiency, high labor costs, and instability of the test environment.
[0004] Existing technologies usually require front-end colleagues to manually organize page information, interface names, interface return data, and page status during handover work. This includes manually filling in this information in the page status management system. This manual work requires a lot of manpower and time, especially when dealing with different projects and pages. Front-end colleagues have to spend a lot of time organizing and recording information, which reduces work efficiency.
[0005] In addition, due to the instability of the test environment, there are some problems. When multiple people use the same test account, the account will be used and the data source will be lost. This means that front-end colleagues may face unpredictable problems during data collection, which further increases the uncertainty of work.
[0006] In summary, the existing problems in the collation, handover and transfer of front-end data mainly include low data collation efficiency, high labor costs and unstable test environment. These problems limit the work efficiency and accuracy of front-end engineers, and more effective solutions need to be sought to improve the process of data handover and management. Summary of the invention
[0007] In view of this, in order to solve the above technical problems, the present invention provides a front-end data capture and transmission method applied to the field of financial technology or financial technology-related technical fields, including:
[0008] Get the crawling instructions for the current front-end data;
[0009] According to the crawling instruction, the system information and content information of the front-end data in the current system environment are acquired, and the system information and the content information are used as the response body;
[0010] The operation basic file of the current system environment is obtained, and the basic file is packaged together with the response body to generate a captured data packet, and the captured data packet is transmitted to the corresponding database according to the captured instruction.
[0011] Preferably, the method for acquiring the system information of the front-end data includes:
[0012] According to the crawling instruction, basic page information and API request information of the current page are obtained; and interface information corresponding to the API request information is determined;
[0013] The page basic information and the interface information are displayed in a control panel as the system information.
[0014] Preferably, obtaining basic page information and API request information of the current page includes:
[0015] Obtain the basic information of the page through document.getElementsByTagName; and obtain the API request information through chrome.devtools.network.getHAR;
[0016] The basic page information includes page url, title, pageID and page status.
[0017] Preferably, the method for determining the interface information includes:
[0018] Traverse the API request information and filter the interactive requests of xhr type;
[0019] The request interface name of request.url, the request body request parameters of request.postData and the request response body of response are extracted as the interface information.
[0020] Preferably, the method for acquiring the content information includes:
[0021] Determine whether the current page where the front-end data is located under the current system environment contains video data;
[0022] If not, extracting the text information and image information in the current page, and the graphic style attribute information corresponding to the text information and the image information;
[0023] The text information and / or the image information and the corresponding graphic style attribute information, as well as the video-processed file and the corresponding video style information are taken together as the content information.
[0024] Preferably, after determining whether the current page where the front-end data is located in the current system environment contains video data, the method further includes:
[0025] If yes, the video data is simplified to generate a video processed file corresponding to the video data, and the video style attribute information corresponding to the video data is obtained;
[0026] Extracting text information and image information in the current page, and graphic style attribute information corresponding to the text information and the image information;
[0027] The text information and / or the image information and the corresponding graphic style attribute information, as well as the video-processed file and the corresponding video style information are taken together as the content information.
[0028] Preferably, the simplification process includes:
[0029] Extracting and analyzing the video data to obtain timestamps of scene changes and / or content changes and / or character changes in the video data;
[0030] Obtaining a screenshot corresponding to the timestamp in the video data as a key frame;
[0031] The timestamp corresponding to each key frame is used as the end time, the key frame before the key frame is used as the start time, and the video between the start time and the end time is used as an analysis interval corresponding to the key frame;
[0032] Based on natural language processing technology, the audio of the analysis interval is converted into text using an ASR engine, and the text data is obtained after cleaning;
[0033] Using visual technology to identify the object content, scene content and action content in the image of the analysis interval to obtain an image analysis result;
[0034] Integrate the text data and the image analysis results to obtain integrated information corresponding to the analysis interval;
[0035] Extracting keywords, key sentences, and key paragraphs from the integrated information using text summarization technology, and integrating the keywords, key sentences, and key paragraphs to obtain key information;
[0036] The key frames and the corresponding key point information are combined in the order of the timestamps to form a plurality of dynamically displayed image information arranged based on the timestamps.
[0037] In addition, to solve the above problems, the present invention also provides a front-end data capture and transmission device, comprising:
[0038] The instruction module is used to obtain the crawling instructions for the current front-end data;
[0039] The acquisition module is further used to acquire the system information and content information of the front-end data in the current system environment according to the crawling instruction, and use the system information and the content information as the response body;
[0040] The packaging module is used to obtain the basic operating files of the current system environment, package them together with the response body to generate a captured data packet, and transmit them to the corresponding database according to the captured instruction.
[0041] In addition, to solve the above problems, the present invention also provides a front-end data capture and transmission system, including a memory and a processor, wherein the memory stores a front-end data capture and transmission program, and the processor runs the front-end data capture and transmission program so that the front-end data capture and transmission system executes the front-end data capture and transmission method as described above.
[0042] In addition, to solve the above problems, the present invention also provides a computer-readable storage medium, on which a front-end data capture and transmission program is stored. When the front-end data capture and transmission program is executed by a processor, the front-end data capture and transmission method as described above is implemented.
[0043] The present invention provides a front-end data capture and transmission method, device, system and storage medium, wherein the method comprises: obtaining a capture instruction for current front-end data; according to the capture instruction, obtaining system information and content information of the front-end data in the current system environment, and using the system information and the content information as a response body; obtaining the operating basic file of the current system environment, packaging it together with the response body to generate a capture data packet, and transmitting it to the corresponding database according to the capture instruction.
[0044] The present invention is based on front-end page data, and adopts the method of embedding a plug-in in the page, identifying the page access path, page name, page interface request, and return content of the page interface request after the page is loaded, and storing them through the plug-in, and can be collected and submitted according to instructions. The present invention can realize the page data handover process without manual collection, sorting and filling, which wastes manpower, and supports fast switching of login test accounts, and fast collection of page display status of different test account permissions, thereby greatly improving the work efficiency of information sorting, collection and submission. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a structural diagram of the hardware operating environment involved in the embodiment of the front-end data capture and transmission method of the present invention;
[0046] Figure 2 This is a flow chart of Example 1 of the front-end data capture and transmission method of the present invention;
[0047] Figure 3 This is a schematic diagram of a detailed process of step S100 in Embodiment 2 of the front-end data capture and transmission method of the present invention;
[0048] Figure 4 This is a flow chart of the refinement of step S110 (system information) in Embodiment 2 of the front-end data capture and transmission method of the present invention;
[0049] Figure 5 This is a flow chart of the refinement of step S110 (content information) in Embodiment 3 of the front-end data capture and transmission method of the present invention;
[0050] Figure 6 This is a schematic diagram of a detailed flow chart of step S160 in Embodiment 3 of the front-end data capture and transmission method of the present invention;
[0051] Figure 7 It is a schematic diagram of module connection of the front-end data capture and transmission device of the present invention.
[0052] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] The embodiments of the present invention are described in detail below, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions.
[0054] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0055] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0056] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0057] like Figure 1 , which is a schematic diagram of the structure of the hardware operating environment of the terminal involved in the embodiment of the present invention.
[0058] The front-end data capture and transmission system of the embodiment of the present invention can be a PC, or a mobile terminal device such as a smart phone, a tablet computer or a portable computer. The front-end data capture and transmission system may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005 and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen, an input unit such as a keyboard, and a remote control. The optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory, such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001. Optionally, the front-end data capture and transmission system may also include an RF (Radio Frequency) circuit, an audio circuit, a WiFi module, and the like. In addition, the front-end data capture and transmission system may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be described in detail here.
[0059] Those skilled in the art will understand that Figure 1The front-end data capture and transmission system shown in the figure does not constitute a limitation thereto, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a data interface control program, a network connection program, and a front-end data capture and transmission program.
[0060] In short, the present invention is based on the front-end page data, and after embedding the plug-in in the page, the plug-in identifies the page access path, page name, page interface request, and the return content of the page interface request after the page is loaded and stores it, and can be collected and submitted according to instructions. The present invention can realize the page data handover process without manual collection, sorting and filling, which wastes manpower, and supports fast switching of login test accounts, and fast collection of page display status of different test account permissions, thereby greatly improving the work efficiency of information sorting, collection and submission.
[0061] Embodiment 1:
[0062] Reference Figure 2 Embodiment 1 of the present invention provides a front-end data capture and transmission method, including:
[0063] Step S100, obtaining a crawling instruction for current front-end data;
[0064] In this embodiment, it can be applied to data capture and transmission between ends.
[0065] The above steps involve identifying and parsing the data crawling requirements of the front-end page. The plug-in needs to be able to understand the structure of the page and identify which data needs to be crawled (such as page name, interface request and its response, etc.).
[0066] In this step, automatic identification and crawling requirements reduce the need for manual configuration and improve efficiency. Specifically, this can be achieved through DOM analysis or using the API of the front-end framework.
[0067] Step S200, according to the crawling instruction, obtaining the system information and content information of the front-end data in the current system environment, and taking the system information and the content information as the response body;
[0068] In this step, the plug-in collects specific information about the current page, including system information (such as browser type, version, etc.) and content information (such as page elements, API requests and responses, etc.).
[0069] In this step, detailed page and system environment information is provided, which is conducive to a better understanding of page performance and possible problems. This can be achieved through the browser API and network request monitoring function.
[0070] Step S300, obtaining the operation basic file of the current system environment, packaging it together with the response body to generate a capture data packet, and transmitting it to the corresponding database according to the capture instruction.
[0071] This step includes packaging the collected data and sending it to the specified database or backend service according to the instructions. The automated data upload in this step reduces the errors and time consumption of manual data upload. Specifically, AJAX or other HTTP client libraries can be used to upload data.
[0072] For example, it can be implemented as follows:
[0073] (1) Page analysis: Use JavaScript to traverse the DOM tree and identify key elements and data.
[0074] (2) Network request monitoring: Use the API provided by the browser (such as XMLHttpRequest or fetch API) to monitor network requests and responses.
[0075] (3) Data serialization and packaging: Format the collected information into JSON or other formats in preparation for uploading.
[0076] (4) Security and permission management: Ensure that the plug-in runs only in an authorized environment to avoid data leakage.
[0077] (5) Error handling and logging: In order to deal with network problems or data problems, error handling and logging functions need to be added to the plug-in.
[0078] The advantages of the solution provided in this embodiment are automation and accuracy, which reduces the possibility of human error and greatly improves work efficiency.
[0079] This embodiment is based on the front-end page data. After the plug-in is embedded in the page, the plug-in identifies the page access path, page name, page interface request, and the return content of the page interface request after the page is loaded and stores them. It can be collected and submitted according to instructions. The present invention can realize the page data handover process without manual collection, sorting and filling, which wastes manpower, and supports fast switching of login test accounts, and fast collection of page display status of different test account permissions, thereby greatly improving the work efficiency of information sorting, collection and submission.
[0080] Embodiment 2:
[0081] Reference Figure 3 Embodiment 2 of the present invention provides a front-end data capture and transmission method. Based on the above embodiment 1, the step S100, the method for obtaining the system information of the front-end data includes:
[0082] Step S110, according to the crawling instruction, obtain the basic page information and API request information of the current page; and determine the interface information corresponding to the API request information;
[0083] Step S120, displaying the page basic information and the interface information in a control panel as the system information.
[0084] The above steps are used to obtain and display basic page information and API request information.
[0085] Among them, get page and API information: This step aims to collect basic information of the page (such as URL, title, page ID, status, etc.) and API request information issued by the page. This is done by analyzing the DOM structure and monitoring network requests.
[0086] Displayed on a dashboard means that the collected information is displayed on a user-interactive dashboard.
[0087] The above steps provide a detailed overview of the page and API request, including the basic properties of the page and the interaction with the server. This allows front-end developers to intuitively understand and access key information of the page, making debugging and optimization easier.
[0088] For further reference, Figure 4 The step S110, obtaining basic page information and API request information of the current page, includes:
[0089] Step S111, obtaining the basic information of the page through document.getElementsByTagName; and obtaining the API request information through chrome.devtools.network.getHAR; wherein the basic information of the page includes page url, title, pageID and page status.
[0090] The above steps are mainly aimed at providing details on obtaining basic page information and API request information.
[0091] Among them, detailed information acquisition: more in-depth analysis of the HTML structure and API requests of the page. HTML analysis provides page structure information, while the getHAR method captures network activities, especially API calls.
[0092] Through the above steps, more fine-grained page and network request data can be obtained, providing developers with richer data to help them better understand page behavior and performance bottlenecks.
[0093] The specific implementation method can be: HTML analysis: use JavaScript to operate DOM to obtain information such as URL, title, etc. Network request capture: listen to and analyze requests issued through XHR or Fetch API.
[0094] For further reference, Figure 4 In step S110, the method for determining the interface information includes:
[0095] Step S112, traversing the API request information, and screening the interactive requests of the xhr type;
[0096] Step S113, extracting the returned request interface name of request.url, request body request parameters of request.postData and request response body of response as the interface information.
[0097] Through the above steps, the interface information is determined. Among them, filter and analyze API requests: filter out XHR type requests from all captured network requests and extract key information, such as the requested URL, request body, response body, etc.
[0098] In the above steps of this method, a detailed understanding of each API call is obtained, including how they interact with the backend services, so that developers can more accurately identify problems and optimize API usage and performance.
[0099] The implementation method may include: firstly performing request screening, that is, identifying XHR type requests in the captured network requests; then performing information extraction, extracting the URL, request parameters and response content from the XHR request.
[0100] Through the above steps, you can quickly locate page or API problems and improve the efficiency of data acquisition and transmission.
[0101] In order to better illustrate the method provided by this embodiment, the following example is used to perform front-end data capture and transmission in this embodiment:
[0102] 1. In this example, users are supported to quickly obtain the basic information of the required project page, including the interface API information request link, page name, page interface information, page interface return, etc. Specifically:
[0103] (1) First, according to the given page address (URL), obtain the asynchronous API interface service request in the page and obtain its response body.
[0104] (2) The user views the response body currently displayed on the page and can modify the information that needs to be uploaded.
[0105] (3) Click Submit to organize and store the results in the database of the "Page Status Management System".
[0106] 2. Technical implementation of page information, interface name, interface return data, and page status.
[0107] (1) Create a browser plug-in based on the Chrome browser, and use the chrome.devtools.panels.create method to create a browser devtools panel window as the user operation interface;
[0108] The interface includes a 'Get Page Information' button, a page information display area (page URL, page title, page ID, page status, server interaction request API list and corresponding content of the page request), and a 'Submit Page Information' button.
[0109] (2) When the 'Get Page Information' button is clicked, the document.getElementsByTagName method of HTML and the chrome.devtools.network.getHAR method of the Chrome browser are called to obtain the required page information.
[0110] (3) Page information: obtain the name, content and other specific information in the meta node of the page through document.getElementsByTagName.
[0111] (4) Interface name and interface return data. Use chrome.devtools.network.getHAR provided by the chrome browser to obtain all request API information of the current page. Call the request and filter it to the 'xhr' type according to the resource request type, that is, the XHLHttpRequest server interaction request. Extract the request interface name of the returned request.url, the request body request parameters of request.postData, and the request response body of response.
[0112] (5) The page status uses the name of the current page by default. If there are different display situations, you can manually modify its information.
[0113] (6) Click the 'Submit Page Information' button to call the information upload interface provided by the "Page Status Management System" and upload the above information to the "Page Status Management System".
[0114] Through the above examples, the following effects can be achieved:
[0115] (1) The plug-in directly obtains page data and stores it locally for display, without the need for manual collection; (2) The plug-in automatically organizes page data information and beautifies the display for easy modification; (3) Directly upload page data information with one click, without the need to manually fill in the page status management system; (4) A test account can be mounted in the plug-in, and different login accounts can be switched.
[0116] Embodiment 3:
[0117] Reference Figure 5 Embodiment 3 of the present invention provides a front-end data capture and transmission method. Based on the above embodiment 1, the step S100, the method for obtaining content information includes:
[0118] Step S130, determining whether the current page where the front-end data is located under the current system environment contains video data;
[0119] As mentioned above, while the system information of the front-end data is being obtained, in order to better restore the front-end state of the current interface, maintain the front-end coding, and further perform better and more targeted performance optimization, as well as browser compatibility testing, it is necessary to obtain the content information of the page or system display interface.
[0120] The content information may include but is not limited to controls with different functionalities, for example, any one or more of the following: Text input box: used for users to input text or data. Check box: allows users to select one or more options. Radio button: used to select an option from a group of options. Drop-down menu: provides a list of options for users to select. Button: triggers a specific operation or submits form data. Hyperlink: used to navigate to other pages or resources. Images and icons: used to display images or icons to enhance the user interface. Tabs: display different content areas on the same page, and users can switch to view them. Progress bar: displays the completion progress of a task or operation. Slider: used to adjust a value or select a range. Calendar selector: allows users to select a date or time. File upload control: allows users to select and upload a file. Pop-up box and prompt box: display prompt information, warnings or confirmation dialog boxes. Table: used to display and edit data in a table. Navigation menu: provides page navigation links or menus.
[0121] In addition, it may also include image files or data, such as pictures, animated images, video data, etc.
[0122] As mentioned above, in order to better acquire functional space and image files and avoid occupying a large amount of space, increasing data acquisition time, and increasing data transmission time due to the existence of large video files and video data, and in the front-end development stage, it is not necessary to fully acquire the original data of the video data. In this embodiment, the content information is screened to confirm whether it contains video data, and is processed separately according to whether there is video data.
[0123] Step S140: if not, extracting the text information and image information in the current page, and the graphic style attribute information corresponding to the text information and the image information;
[0124] If there is no video data, that is, the current front-end page data does not have video data, the image information and text information in the content information can be further obtained.
[0125] First, the corresponding graphic style attribute information is obtained, including but not limited to the page position, width, height, border, margin, padding, alignment, floating, transparency and background of the image information and text information. These are some common examples of style attributes of images and files. When setting, CSS can be used to customize and adjust the styles of images and files to meet the needs of web page design. In this embodiment, by obtaining the graphic style attribute information corresponding to each image and text information, the original state of the content information can be better restored.
[0126] Step S150: The text information and / or the image information and the corresponding graphic style attribute information, as well as the video-processed file and the corresponding video style information are taken together as the content information.
[0127] Each text information and / or image information, together with the corresponding graphic style attribute information, are combined to form content information for storage and retrieval, so as to better restore the original appearance of all content information in the current front-end page with a higher degree of restoration, which provides convenience for further system testing, front-end development, compatibility testing and other development work, and the test environment is more accurate.
[0128] Furthermore, after determining whether the current page where the front-end data is located in the current system environment contains video data in step S130, the following steps are further included:
[0129] Step S160: If yes, the video data is simplified to generate a video processed file corresponding to the video data, and the video style attribute information corresponding to the video data is obtained;
[0130] If the content information includes video data, in order to ensure that when the content information is obtained, all data of the current front-end page or the targeted page can be obtained, with a higher degree of restoration, and at the same time, to avoid the video file of the current page from occupying a large space, resulting in a long data acquisition time, a long data transmission time, and a waste of network resources and system resources, the monkey in this embodiment adopts simplified processing to convert each video data into a corresponding video processed file.
[0131] Step S170, extracting text information and image information in the current page, and graphic style attribute information corresponding to the text information and the image information;
[0132] Step S180: The text information and / or the image information and the corresponding graphic style attribute information, as well as the video-processed file and the corresponding video style information are taken together as the content information.
[0133] In addition, after the video data is simplified, the text information, image information and its corresponding graphic style attribute information, as well as the processed video file and the corresponding video style information are stored together as content information.
[0134] For further reference, Figure 6 The step S160, the simplified processing, includes:
[0135] Step S161, extracting and analyzing the video data to obtain timestamps of scene changes and / or content changes and / or character changes in the video data;
[0136] In order to reduce the occupation of system resources, space, and network resources by video data while maintaining the integrity and restoration of the data, in this embodiment, the video data is simplified and converted into corresponding video processed files.
[0137] Specifically, the video data is first analyzed. This step can be performed through a trained recognition model. The video data is split into several single-frame images. The single-frame images are then recognized to obtain the timestamps of scene changes, content changes, and task changes in all single-frame images. The single-frame images are then classified into two types: changes and no changes. The timestamps of the single-frame images that have produced preset changes are extracted.
[0138] Step S162, obtaining a screenshot corresponding to the timestamp in the video data as a key frame;
[0139] Step S163, taking the timestamp corresponding to each key frame as the end time, taking the key frame before the key frame as the start time, and taking the video between the start time and the end time as an analysis interval corresponding to the key frame;
[0140] Get the screenshot of the video corresponding to the timestamp as the key frame. Also, get the end time corresponding to the key frame and the start time of the previous key frame, and use this interval as the analysis interval.
[0141] If the key frame is the first key frame, the 0th moment of the video may be used as the start time, and the time corresponding to the timestamp of the key frame may be used as the end time, so as to determine the analysis interval of the first key frame.
[0142] Step S164, based on natural language processing technology, using an ASR engine to convert the audio of the analysis interval into text, and obtain text data after cleaning;
[0143] Step S165, using visual technology to identify the object content, scene content and action content in the image of the analysis interval to obtain an image analysis result;
[0144] Videos may include two categories, namely, information expressed by characters' language or information expressed by image scenes. These two types of information are analyzed separately to obtain corresponding analysis results.
[0145] In this embodiment, one analysis interval is processed twice through step S164 and step S165, respectively, using natural language processing technology to analyze the audio therein through the ASR engine and convert it into text data.
[0146] Among them, natural language processing technology can obtain text by analyzing the corpus in the audio, and can use the trained recognition model to clearly classify it, remove punctuation marks, modal particles, and irrelevant text with no actual expression meaning, so as to obtain text data.
[0147] At the same time, visual technology is used to analyze the analysis interval, and the object content, scene content and action content in the image are identified separately, thereby obtaining image analysis results.
[0148] Step S166, integrating the text data and the image analysis results to obtain integrated information corresponding to the analysis interval;
[0149] As mentioned above, the image analysis result may also be in text form, providing a text description of the object content, scene content and action content of the image.
[0150] After integrating the text data and image analysis results, integrated information for the analysis interval can be obtained.
[0151] Step S167, extracting keywords, key sentences, and key paragraphs from the integrated information using text summarization technology, and integrating the keywords, key sentences, and key paragraphs to obtain key information;
[0152] Text summarization is a natural language processing technology that aims to extract the most important information from the text and present it to the user in a concise way. Text summarization can be divided into two methods: extractive summarization and generative summarization. Extractive summarization extracts key sentences or paragraphs from the original text, while generative summarization generates new summary content based on the understanding and summary of the text.
[0153] Keyword extraction usually uses statistical methods such as word frequency and inverse document frequency (TF-IDF) to determine the most representative and important words in the text. Key sentence extraction can be determined by using features such as sentence coherence, importance, and contextual association in the text. Key paragraph extraction can consider factors such as topic consistency and information richness in the paragraph.
[0154] When the key information is integrated, the extracted keywords, key sentences and key paragraphs can be combined together to convey the core content and main points of the text.
[0155] In summary, text summarization technology analyzes and processes text, extracts keywords, key sentences and key paragraphs to summarize the key information of the text, and helps users quickly understand and obtain the core content of the text.
[0156] In addition, the amount of key information obtained can be limited by presetting the field length and byte length, thereby achieving simplification.
[0157] Step S168, combining the key frames and the corresponding key point information in the order of the timestamps to form a plurality of dynamically displayed image information arranged based on the timestamps.
[0158] By integrating the key frame with the corresponding key point information, the key point information can be superimposed on a specific position of the key frame. For example, by identifying the blank area of the key frame, the key point information can be superimposed and displayed in the blank area to avoid obstruction of the key frame information.
[0159] Each key frame and the corresponding key information are combined to form an independent single frame. Furthermore, the independent single frames are arranged in the order of timestamps and merged to form an image information, which can be dynamically displayed image information. Thus, through the combination of key frames and key information, the space occupied by the original video file is greatly reduced, and the original appearance of the video file can still be restored, the comprehensibility and readability of the original video file are maintained, and the problem of long data acquisition time and long data transmission time caused by the large original video file is avoided, the waste of system resources is avoided, and the efficiency of data capture is improved.
[0160] In addition, reference Figure 7 This embodiment also provides a front-end data capture and transmission device, including:
[0161] Instruction module 10, used to obtain crawling instructions for current front-end data;
[0162] The acquisition module 20 is further used to acquire the system information and content information of the front-end data in the current system environment according to the crawling instruction, and use the system information and the content information as a response body;
[0163] The packaging module 30 is used to obtain the operation basic files of the current system environment, package them together with the response body to generate a captured data packet, and transmit them to the corresponding database according to the captured instruction.
[0164] In addition, this embodiment also provides a front-end data capture and transmission system, including a memory and a processor, the memory stores a front-end data capture and transmission program, and the processor runs the front-end data capture and transmission program to enable the front-end data capture and transmission system to execute the front-end data capture and transmission method described above.
[0165] In addition, this embodiment also provides a computer-readable storage medium, on which a front-end data capture and transmission program is stored. When the front-end data capture and transmission program is executed by a processor, the front-end data capture and transmission method as described above is implemented.
[0166] In short, the present invention is based on the front-end page data, and after embedding the plug-in in the page, the plug-in identifies the page access path, page name, page interface request, and the return content of the page interface request after the page is loaded and stores it, and can be collected and submitted according to instructions. The present invention can realize the page data handover process without manual collection, sorting and filling, which wastes manpower, and supports fast switching of login test accounts, and fast collection of page display status of different test account permissions, thereby greatly improving the work efficiency of information sorting, collection and submission.
[0167] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0168] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention. The above is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly used in other related technical fields, are similarly included in the patent protection scope of the present invention.
Claims
1. A front-end data capture and transmission method, characterized in that: include: Get the crawling instructions for the current front-end data; According to the crawling instruction, the system information and content information of the front-end data in the current system environment are acquired, and the system information and the content information are used as the response body; The operation basic file of the current system environment is obtained, and the basic file is packaged together with the response body to generate a captured data packet, and the captured data packet is transmitted to the corresponding database according to the captured instruction.
2. The front-end data capture and transmission method according to claim 1, characterized in that: The method for acquiring the system information of the front-end data includes: According to the crawling instruction, basic page information and API request information of the current page are obtained; and interface information corresponding to the API request information is determined; The page basic information and the interface information are displayed in a control panel as the system information.
3. The front-end data capture and transmission method as claimed in claim 2, characterized in that: The acquisition of basic page information and API request information of the current page includes: Obtain the basic information of the page through document.getElementsByTagName; and obtain the API request information through chrome.devtools.network.getHAR; The basic page information includes page url, title, pageID and page status.
4. The front-end data capture and transmission method as claimed in claim 3, characterized in that: The method for determining the interface information includes: Traverse the API request information and filter the interactive requests of xhr type; The request interface name of request.url, the request body request parameters of request.postData and the request response body of response are extracted as the interface information.
5. The front-end data capture and transmission method as claimed in claim 1, characterized in that: The method for obtaining the content information includes: Determine whether the current page where the front-end data is located under the current system environment contains video data; If not, extracting the text information and image information in the current page, and the graphic style attribute information corresponding to the text information and the image information; The text information and / or the image information and the corresponding graphic style attribute information, as well as the video-processed file and the corresponding video style information are taken together as the content information.
6. The front-end data capture and transmission method as claimed in claim 5, characterized in that: After determining whether the current page where the front-end data is located under the current system environment contains video data, the method further includes: If yes, the video data is simplified to generate a video processed file corresponding to the video data, and the video style attribute information corresponding to the video data is obtained; Extracting text information and image information in the current page, and graphic style attribute information corresponding to the text information and the image information; The text information and / or the image information and the corresponding graphic style attribute information, as well as the video-processed file and the corresponding video style information are taken together as the content information.
7. The front-end data capture and transmission method as claimed in claim 6, characterized in that: The simplification process includes: Extracting and analyzing the video data to obtain timestamps of scene changes and / or content changes and / or character changes in the video data; Obtaining a screenshot corresponding to the timestamp in the video data as a key frame; The timestamp corresponding to each key frame is used as the end time, the key frame before the key frame is used as the start time, and the video between the start time and the end time is used as an analysis interval corresponding to the key frame; Based on natural language processing technology, the audio of the analysis interval is converted into text using an ASR engine, and the text data is obtained after cleaning; Using visual technology to identify the object content, scene content and action content in the image of the analysis interval to obtain an image analysis result; Integrate the text data and the image analysis results to obtain integrated information corresponding to the analysis interval; Extracting keywords, key sentences, and key paragraphs from the integrated information using text summarization technology, and integrating the keywords, key sentences, and key paragraphs to obtain key information; The key frames and the corresponding key point information are combined in the order of the timestamps to form a plurality of dynamically displayed image information arranged based on the timestamps.
8. A front-end data capture and transmission device, characterized in that: include: The instruction module is used to obtain the crawling instructions for the current front-end data; The acquisition module is further used to acquire the system information and content information of the front-end data in the current system environment according to the crawling instruction, and use the system information and the content information as the response body; The packaging module is used to obtain the basic operating files of the current system environment, package them together with the response body to generate a captured data packet, and transmit them to the corresponding database according to the captured instruction.
9. A front-end data capture and transmission system, characterized in that: It includes a memory and a processor, wherein the memory stores a front-end data capture and transmission program, and the processor runs the front-end data capture and transmission program to enable the front-end data capture and transmission system to execute the front-end data capture and transmission method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a front-end data capture and transmission program, and when the front-end data capture and transmission program is executed by the processor, the front-end data capture and transmission method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Front-end component sharing method and device, computer equipment and storage medium
CN112685105A
Page information extraction method, page information setting method, page information extraction device, page information setting device, electronic equipment and medium
CN114911534A
Method for capturing picture at specific position of webpage
CN116484080A
Webpage data extraction method and system based on browser
CN116821456A
