CN-121561212-B - Multi-webpage application automatic execution method and system based on virtual browser isolation
Abstract
The invention provides a multi-webpage application automatic execution method and system based on virtual browser isolation, the method comprises the following steps of S1, receiving a webpage application automatic task request, modeling the task request into a task model containing target platform parameters, operation rules and task constraint conditions, S2, creating at least one virtual browser isolation instance based on the task model, configuring an independent browser session environment, wherein the instance is used for carrying an automatic task with a strongly bound execution context, and constructing a safety barrier through the independent session environment of the virtual browser.
Inventors
- FANG XIAOLEI
- DENG KANG
- ZHOU HUI
- DING JINJIE
Assignees
- 上海近屿智能科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260123
Claims (9)
- 1. The automatic execution method of the multi-webpage application based on virtual browser isolation is characterized by comprising the following steps: S1, receiving an automatic task request of web application, and modeling the task request into a task model containing target platform parameters, operation rules and task constraint conditions; s2, creating at least one virtual browser isolation instance based on the task model, and configuring an independent browser session environment, wherein the instance is used for bearing an automation task for executing context strong binding; S3, depending on real-time running state data of an isolation instance of a virtual browser, adjusting an automatic execution strategy through a parameterized model, wherein the automatic execution strategy is related to a preset structured operation unit and generates a dynamic execution sequence containing node dependence and time sequence constraint, and each structured operation unit corresponds to at least one task execution node set capable of being instantiated; s4, collecting node execution feedback data, updating running state data and execution context of an isolation instance of a virtual browser, quantifying state differences or node continuous failure times, and triggering execution sequence structure level reconstruction when a preset threshold is reached, wherein the structure level reconstruction comprises the step of reconstructing at least one of a task execution node set, a dependency relationship among nodes or an execution sequence; S5, if the flow termination condition is not met, returning to S3 for iterative execution, if the execution abnormality or resource unsatisfied condition is detected, and under the premise of not damaging the session continuity, migrating the execution context and the whole of the current task execution sequence to another virtual browser isolation instance for continuous execution; before creating the virtual browser isolation instance, the method further comprises a platform adaptation preprocessing step: Collecting basic information of an application platform, including a platform name, an access address, support operation functions, access limitation, interaction characteristics and version update records; Classifying application platforms, testing the compatibility, stability and adaptation degree of various platforms, a structured operation unit and a task execution node, and recording test results; constructing a platform suitability evaluation model based on the test result, and distributing corresponding virtual browser configuration templates, an adapted structured operation unit and a task execution node set for different types of platforms; And establishing a platform information dynamic updating mechanism, periodically synchronizing platform function change, rule adjustment and compatibility change, and updating a platform feature library, an adaptation strategy and corresponding node configuration parameters.
- 2. The method for automatically executing the multi-web application based on the virtual browser isolation of claim 1, wherein the web application automation task comprises a recruitment automation task, and wherein modeling the task request as a task model comprising target platform parameters, operation rules and task constraints comprises: receiving a webpage application automation task request, analyzing request information, extracting target recruitment platform parameters, recruitment operation rules and task constraint conditions, and forming an element list; Based on the element list matching with a target platform feature library, carrying out quantization processing on target recruitment platform parameters to generate a standardized platform parameter set; Converting recruitment operation requirements into machine-executable structured logic to form a structured rule base; combining the task target with the upper limit of the system resource, quantifying the boundary range of the task constraint condition, and forming a constraint condition quantification set; And packaging the standardized platform parameter set, the structured rule base and the constraint set, constructing a three-dimensional task model, and checking through suitability evaluation, wherein the modeling is successful if the verification is passed.
- 3. The method for automatically executing the multi-web application based on the virtual browser isolation of claim 1, wherein the parameterized model-driven dynamic adaptation comprises the following steps: model input, namely isolating real-time running state data of an instance by a virtual browser and executing feedback data by a node; Model output, namely regulating and controlling parameters of the execution rhythm of task execution nodes, reconstructing an execution sequence instruction and making a node replacement decision; Triggering rules, namely executing sequence adjustment and triggering only by model output; The iterative logic is used for acting the adaptive adjustment instruction output by the model on the task execution sequence, and then reversely optimizing the adjustment strategy of the parameterized model by collecting the updated running state data and the node execution feedback data; the parameterized model is a tunable parametric model based on machine learning or artificial intelligence, including but not limited to a deep model, a large language model, or a multi-modal large model.
- 4. The method for automatically executing the multi-webpage application based on the virtual browser isolation according to claim 1, wherein the structural operation units are classified according to function types, and the structural operation units comprise a data acquisition class, an interactive operation class, a flow control class, a feedback processing class and an abnormality repair class; the task execution node set corresponding to each structured operation unit comprises configurable execution parameters, an exception processing branch and a platform adaptation template; the task execution node set supports instantiation configuration, and node instances are dynamically selected or combined according to target platform characteristics and task constraint conditions to form an execution unit group adapting to a current scene.
- 5. The method according to claim 1, wherein the execution context includes a structured representation of session data, operation state, and dependency, a task execution node triggers a state dependent on the execution context, and inhibits independent execution, the task execution node is strongly bound to the execution context and updates the execution context as a propulsive prefix, and the overall migration process of the execution context and task execution sequence includes: when migration is triggered, generating a complete snapshot of an execution context and a structural description file of a current task execution sequence, wherein the snapshot comprises all data of the execution context, and the description file is used for defining node set composition, dependency relationship and current execution progress; screening an optimal target virtual browser isolation instance based on resource redundancy, platform compatibility, network stability and node adaptation; transmitting the execution context snapshot and the task execution sequence description file through an encryption channel, and recovering session data, an operation state, a dependency relationship and a task execution sequence according to an original data structure after receiving a target instance; After the migration is completed, the target instance continues to advance from the current execution node based on the restored execution context and the task execution sequence.
- 6. The method for automatically executing multi-web application based on virtual browser isolation according to claim 1, wherein the quantitative state difference or the number of continuous failures of nodes reaches a preset threshold value, is determined to be a state mutation, and triggers execution of a sequence structure level reconstruction when the state mutation is determined to be the state mutation, wherein: the state mutation judgment specifically includes: Judging whether a state mutation occurs or not by quantifying the difference degree of the updated running state evaluation value and the current evaluation value or the continuous execution failure times of the node, and judging the state mutation if the difference degree is not lower than the state change threshold or the continuous failure times of the node reach the preset threshold; The structure level reconstruction is specifically realized: the task execution node set is regenerated by eliminating failure nodes, supplementing alternative nodes, replacing nodes with low adaptation degree or newly adding node instances adapting to the current state; the reconstruction of the dependency relationship between the nodes, namely, based on the interactive feedback of the real-time running state and the platform, adjusting the front-end/rear-end dependency of the nodes, and eliminating the cyclic dependency, the invalid dependency or the conflict dependency; and (3) rearranging the execution sequence, namely re-planning the node execution sequence by combining the node priority, the resource idle state, the platform response characteristic and the adjustment instruction output by the model, and optimizing the execution efficiency and the success rate.
- 7. The method for automatically executing the multi-webpage application based on the virtual browser isolation of claim 1, wherein the independent browser session environment comprises an independent operation sandbox, an independent cache space, an independent Cookie storage, an independent network configuration, independent user agent information and an independent process space; The operation sandbox prohibits data interaction and resource sharing across instances, provides environment support for independent maintenance of execution contexts, isolated operation of task execution nodes and safe transmission across instance migration, and simultaneously realizes physical isolation of a manual operation browser environment and an automatic execution environment.
- 8. The method for automatically executing the multi-web application based on the virtual browser isolation of claim 1, further comprising a data isolation storage and encryption transmission mechanism: An independent storage catalog is distributed for each virtual browser isolation instance, temporary data and an execution log generated by a task execution node are stored in the corresponding catalog only, and data interaction between the nodes is realized through a dedicated encryption channel; Processing the transmitted sensitive data by adopting an encryption algorithm, establishing an end-to-end encryption transmission channel, and only allowing authorized interaction between the virtual browser instance and the unified data management module; After receiving the encrypted data, the unified data management module restores the original data through a decryption mechanism, and stores and establishes indexes according to the dimension classification of the structured operation unit, the task execution node and the virtual browser instance; Setting hierarchical data access rights control, and allocating inquiry, export and modification rights based on user roles.
- 9. A multi-platform recruitment automation execution system based on virtual browser isolation, characterized in that it is applied to the execution method according to any one of the preceding claims 1-8, the system comprising: The task modeling module is used for receiving an automatic task request of the webpage application, analyzing and constructing a task model containing target platform parameters, operation rules and task constraint conditions; the isolation instance and context management module is used for creating a virtual browser isolation instance based on the task model, configuring an independent session environment, realizing strong binding modeling of an automation task and an execution context, and maintaining the consistency state of the execution context in real time; The structured operation configuration module is used for storing a preset structured operation unit and a corresponding instantiated task execution node set and providing node configuration, combination and management functions; The parameterized model driving module comprises a parameterized model, wherein the parameterized model is an adjustable parameter model based on machine learning or artificial intelligence and comprises a depth model, a large language model or a multi-mode large model, and the module is used for executing feedback data based on real-time running state data and nodes and dynamically adjusting an automatic execution strategy so as to realize closed-loop control; the execution sequence generation module is used for generating a dynamic iterative task execution sequence according to the automatic execution strategy, the node priority and the platform interaction dependency relationship; the state judging and reconstructing module is used for evaluating state change through a state migration judging mechanism and triggering the structure level reconstruction of the task execution sequence; the cross-instance migration module is used for realizing cross-instance synchronization and semantic consistency recovery of the execution context and the task execution sequence on the premise of not damaging session continuity when the execution abnormality or insufficient resources are detected; the data security management module is used for realizing the isolated storage, encryption transmission and hierarchical authority control of task execution data; and the result archiving module is used for terminating the automatic operation when the flow termination condition is met, and outputting and archiving the execution result.
Description
Multi-webpage application automatic execution method and system based on virtual browser isolation Technical Field The invention relates to the technical field of browser automation, in particular to a multi-webpage application automation execution method and system based on virtual browser isolation, which are particularly suitable for multi-platform recruitment automation scenes. Background The existing recruitment automation is executed in a real browser through scripts or RPA, a foreground window is easy to preempt, manual work is interfered, problems of session serial use, task conflict and the like are easy to occur during multi-platform and multi-account operation, and long-term stable operation is difficult. For example, the chinese published patent application CN202510460801.4 discloses a multi-platform recruitment information management system and method based on big data, which introduces technologies such as multi-source data fusion, dynamic capability assessment, elastic team organization policy, etc., so as to implement integration of multi-platform recruitment information and deep assessment of candidate skills, and optimize recruitment matching efficiency, but the core focuses on optimization of recruitment information management and personnel matching level, does not involve browser isolation and task scheduling design in an automatic execution process, still relies on a traditional browser execution mode, and cannot solve problems of foreground occupation, cross-platform session serial use, multi-task parallel conflict, etc. caused by a real browser, resulting in insufficient stability and independence of multi-platform recruitment automation execution, and difficulty in adapting to long-term and efficient multi-scene recruitment automation requirements. Disclosure of Invention In view of the foregoing, embodiments of the present invention wish to provide a method and a system for automatically executing a multi-web application based on virtual browser isolation, so as to solve or alleviate the technical problems existing in the prior art, and at least provide a beneficial choice. In order to solve the technical problems, the application adopts a technical scheme that: S1, receiving a webpage application automation task request, and modeling the task request into a task model containing target platform parameters, operation rules and task constraint conditions; the method comprises the steps of S2, creating at least one virtual browser isolation instance based on a task model, configuring an independent browser session environment, wherein the instance is used for carrying an automatic task with strong binding of an execution context, S3, depending on real-time running state data of the virtual browser isolation instance, adjusting an automatic execution strategy through a parameterized model, wherein the automatic execution strategy is related to a preset structured operation unit and generates a dynamic execution sequence containing node dependence and time sequence constraint, each structured operation unit corresponds to at least one instantiated task execution node set, S4, collecting node execution feedback data, updating running state data and execution context of the virtual browser isolation instance, quantifying state difference or node continuous failure times, triggering execution sequence structure level reconstruction when a preset threshold is reached, the structure level reconstruction comprises reconstructing at least one of a task execution node set, a dependency relationship among nodes or an execution sequence, S5, returning to iterative execution when a flow termination condition is not met, and continuing to terminate the whole execution sequence to the virtual browser isolation instance if the execution condition is detected to be met under the premise that the continuity of the session is not destroyed, and the execution sequence is not met, and continuing to terminate the whole execution of the task execution sequence to the virtual browser isolation instance. The webpage application automation task comprises a recruitment automation task, a task model modeling the task request into a task model comprising target platform parameters, operation rules and task constraint conditions, wherein the task model comprises the steps of receiving the webpage application automation task request, analyzing request information, extracting the target recruitment platform parameters, the recruitment operation rules and the task constraint conditions to form an element list, matching a target platform feature library based on the element list, conducting quantization processing on the target recruitment platform parameters to generate a standardized platform parameter set, converting the recruitment operation requirements into machine-executable structured logic to form a structured rule library, combining task targets with the upper limit of system resources to quantize the bounda