System and method for collecting resource management and detecting usage based on social applications

By designing a collection resource management and detection system in social applications, the problems of low resource utilization efficiency and high cost are solved, dynamic adjustment and automatic detection of resources are realized, and the stability of data collection and cost reduction are ensured.

CN118708795APending Publication Date: 2024-09-27NAT COMP NETWORK & INFORMATION SECURITY MANAGEMENT CENT
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410729579.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Social applications face resource access restrictions during the data collection process, resulting in low resource utilization efficiency, which may lead to data loss and system crashes. The cost is high, and it is difficult for existing technology to effectively manage and detect the usage status of collected resources.

Method used

A system for the management and detection of collection resources based on social applications is designed, including collection resource scheduling, data collection scheduling, collection resource status collection, exception handling and other devices. Through the dynamic adjustment of the resource library, automatic detection and virtual device generation, Achieve optimal allocation and effective utilization of resources.

Benefits of technology

It improves the flexibility and adaptability of collection resources, avoids resource waste and competition, ensures the stability and cost reduction of data collection, and improves resource reuse rate and long-term effectiveness of data collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708795A
    Figure CN118708795A
Patent Text Reader

Abstract

The invention discloses a social application-based collection resource management and detection use system, which comprises a collection resource scheduling device used for storing, initializing and distributing collection resources; the data acquisition scheduling device is used for applying and using acquisition resources; the collected resource state collecting device is used for storing states of the collected resources which are used completely and classifying the collected resources; the abnormal collection resource processing device is used for deleting, refreshing and verifying the abnormal collection resources and updating the refreshed and verified collection resources into the collection resource scheduling device; the collection resource detection device is used for carrying out availability detection on the collection resources in the collection resource scheduling device and updating unavailable resources into the collection resource state collection device; the invention further discloses a method for collecting resource management and detection use based on the social application. The method has the advantages that the acquisition resources can be utilized to the maximum extent, and long-term and effective completion of data acquisition is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information technology, and more specifically, to a system and method for managing and detecting the use of social application collection resources. Background Art

[0002] In order to understand user interests and behavior patterns, maintain a good social environment, ensure user safety and health, and identify and detect bad content, data collection for social applications has become increasingly important. As data from social applications is collected, more and more social applications are beginning to take resource access restriction measures to protect their own data security and maintain platform stability. Common restriction methods include but are not limited to: login restrictions, verification code verification, registered membership system, access frequency restrictions, content access rights restrictions, etc. Therefore, in the process of data collection for social applications, the use and scheduling of collection resources has become an indispensable link to maximize the use of collection resources. Summary of the invention

[0003] An object of the present invention is to provide a system and method for managing and detecting the use of social application acquisition resources to at least solve the above-mentioned problems.

[0004] In order to achieve the purpose and other advantages of the present invention, a system for managing and detecting the use of social application collection resources is provided, comprising:

[0005] A collection resource scheduling device, which is used to store and initialize collection resources, and allocate corresponding collection resources to the data collection scheduling device according to the collection resource application request submitted by the data collection scheduling device;

[0006] A data collection and scheduling device, which is used to apply for and use collection resources, and submit the collection resource status after use to the collection resource status collection device;

[0007] A collection resource status collection device, which is used to store the status of the collection resources that have been used, and classify the collection resources that have been used, submit the collection resources with normal status to the collection resource scheduling device, and submit the collection resources with abnormal status to the abnormal collection resource processing device;

[0008] An abnormal acquisition resource processing device is used to delete, refresh and verify abnormal acquisition resources, and update the refreshed and verified acquisition resources to the acquisition resource scheduling device;

[0009] The acquisition resource detection device is used to regularly detect the availability of acquisition resources in the acquisition resource scheduling device, filter out unavailable resources therein and update them to the acquisition resource status collection device.

[0010] Preferably, the acquisition resource scheduling device has a built-in resource library, and the acquisition resources are stored in the resource library.

[0011] Preferably, the acquisition resource scheduling device obtains a certain number of acquisition resources from the resource library in advance, classifies the acquired resources into different queues in the memory according to application type, and automatically detects the length of each queue regularly. If the queue length is lower than the set threshold, new acquisition resources are obtained from the resource library for initialization.

[0012] Preferably, the acquisition resource application request carries acquisition resource scheduling information, and the acquisition resource scheduling information includes an acquisition node IP address, a user name, or a social application category.

[0013] Preferably, the acquisition resource status includes acquisition status, acquisition volume and task level.

[0014] Preferably, the acquisition resource detection device is also used to detect the number of acquisition resources. If the number is less than a set threshold, new acquisition resources are automatically generated using a virtual device, or fed back to the user for manual configuration of new acquisition resources, and the new acquisition resources are updated to the resource library.

[0015] Preferably, in the system for managing and detecting the use of social application-based acquisition resources, the acquisition resource scheduling device includes one or more Resource servers, and the data acquisition scheduling device is a Crawler cluster.

[0016] The present invention also provides a method for managing and detecting the use of social application collection resources, which is applied to the above-mentioned system for managing and detecting the use of social application collection resources, and the method includes:

[0017] S1. Acquire acquisition resources, and store and initialize the acquisition resources through an acquisition resource scheduling device;

[0018] S2, obtaining a collection resource application request, and allocating the corresponding collection resources to a data collection scheduling device;

[0019] S3, obtaining the state of the used acquisition resources, classifying the used acquisition resources, submitting the acquisition resources with normal state to the acquisition resource scheduling device, and submitting the acquisition resources with abnormal state to the abnormal acquisition resource processing device;

[0020] S4, deleting, refreshing and verifying the abnormal acquisition resources, and updating the refreshed and verified acquisition resources to the acquisition resource scheduling device;

[0021] S5. Perform availability detection on the collection resources in the collection resource scheduling device, filter out unavailable resources and return to S3.

[0022] The present invention has at least the following beneficial effects:

[0023] First, the collection resource configuration can be dynamically adjusted according to the different data collection requirements of the Crawler (crawler node), avoiding the waste of collection resources. For example, when the collection task volume is large, resources can be increased, and when the task volume is small, resources can be appropriately reduced to improve the flexibility and adaptability of the system.

[0024] Second, the collection resources are allocated according to the Crawler's task priority and importance, so that key tasks can be processed first, optimizing the utilization rate of collection resources and ensuring that the collection resources can be maximized.

[0025] Third, it can effectively avoid the competition between crawler nodes for the use of collection resources, which may lead to data loss or even system crashes, thereby improving the stability of the system.

[0026] Fourth, reduce the cost of data collection. Dynamically adjust the allocation of collection resources according to different needs to avoid excessive use of collection resources that may lead to resource restrictions or bans, and ensure the long-term and effective completion of data collection.

[0027] Fifth, improve the reuse rate of collected resources. Effectively judge the resource usage status, and the effective and invalid resources can be processed quickly.

[0028] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a structural block diagram of a system for managing and detecting the use of social application collection resources according to an embodiment of the present invention;

[0030] Figure 2 It is a flowchart of a method for managing and detecting the use of social application collection resources according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The present invention is further described in detail below in conjunction with embodiments and drawings so that those skilled in the art can implement the invention with reference to the description.

[0032] It should be understood that the terms such as “having”, “including” and “comprising” used herein do not exclude the existence or addition of one or more other elements or combinations thereof.

[0033] It should be noted that the experimental methods described in the following embodiments are conventional methods unless otherwise specified, and the reagents and materials are commercially available unless otherwise specified; in the description of the present invention, the terms "lateral", "longitudinal", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0034] like Figure 1 As shown, the present invention provides a system for managing and detecting the use of social application collection resources, including a collection resource scheduling device S101, a data collection scheduling device S102 connected to the collection resource scheduling device S101, a collection resource status collection device S103 connected to the data collection scheduling device S102, an abnormal collection resource processing device S104 connected to the collection resource status collection device S103, and a collection resource detection device S105 between the collection resource scheduling device S101 and the collection resource status collection device S103. Among them,

[0035] The acquisition resource scheduling device S101 includes one or more Resource servers. The acquisition resource scheduling device S101 is used to store and initialize the acquisition resources required for data acquisition, dynamically adjust the priority of acquisition resource configuration according to the returned acquisition volume and the importance of the task, and allocate the corresponding acquisition resources to the data acquisition scheduling device S102 according to the acquisition resource application request submitted by the data acquisition scheduling device S102;

[0036] The data collection scheduling device S102 is used for the crawler cluster to apply for and use collection resources, and submit the collection resource status after use to the collection resource status collection device S103;

[0037] The acquisition resource status collection device S103 is used to store the status of the acquisition resources that have been used, and classify the acquisition resources that have been used, submit the acquisition resources with normal status to the acquisition resource scheduling device S101 for next use, and submit the acquisition resources with abnormal status to the abnormal acquisition resource processing device S104;

[0038] The abnormal acquisition resource processing device S104 is used to delete, refresh and verify the abnormal acquisition resources, and update the refreshed and verified acquisition resources to the acquisition resource scheduling device S101;

[0039] The acquisition resource detection device S105 is used to regularly detect the availability of the acquisition resources in the acquisition resource scheduling device S101, filter out unavailable resources therein and update them to the acquisition resource status collection device S103 to wait for processing.

[0040] Specifically, in the above embodiment, a resource library is built in the acquisition resource scheduling device S101, and the acquisition resources are stored in the resource library; the acquisition resource scheduling device S101 is responsible for resource initialization and processing acquisition resource application requests sent by each node in the Crawler cluster. The initialization resource will connect to the resource library, sort the required resources of various types, and obtain the available resources with the highest sorting, thereby avoiding direct interaction between each Crawler node and the resource library, reducing the query pressure of the resource library, and making each resource reasonably utilized, effectively avoiding waste and abuse of resources; the abnormal acquisition resource processing device S104 obtains the acquisition resource status stored after the Crawler node is used and the unavailable resources screened out by the acquisition resource detection device S105 from the acquisition resource status collection device S103, performs corresponding deletion, refresh and verification operations on the resources according to the status information, and updates the new available resources to the resource library, thereby ensuring the sustainable use of acquisition resources in data collection.

[0041] In a preferred embodiment of the above embodiment, the acquisition resource scheduling device obtains a certain number of acquisition resources from the resource library in advance, classifies the acquired resources according to application type and stores them in different queues in the memory, and automatically detects the length of each queue regularly. If the queue length is lower than the set threshold, new acquisition resources are obtained from the resource library for initialization.

[0042] In a preferred embodiment of the above embodiment, the acquisition resource application request carries acquisition resource scheduling information, and the acquisition resource scheduling information includes an acquisition node IP address, a user name, or a social application category.

[0043] In a preferred embodiment of the above embodiment, the acquisition resource status includes acquisition status, acquisition amount and task level.

[0044] In a preferred embodiment of the above embodiment, the acquisition resource detection device is also used to detect the number of acquisition resources. If the number is less than a set threshold, new acquisition resources are automatically generated using a virtual device, or feedback is given to the user to manually configure new acquisition resources, and the new acquisition resources are updated to the resource library.

[0045] The present invention also provides a method for managing and detecting the use of social application collection resources, which is applied to the above-mentioned system for managing and detecting the use of social application collection resources, and the method includes:

[0046] S1. Acquire acquisition resources, and store and initialize the acquisition resources through an acquisition resource scheduling device;

[0047] S2, obtaining a collection resource application request, and allocating the corresponding collection resources to a data collection scheduling device;

[0048] S3, obtaining the state of the used acquisition resources, classifying the used acquisition resources, submitting the acquisition resources with normal state to the acquisition resource scheduling device, and submitting the acquisition resources with abnormal state to the abnormal acquisition resource processing device;

[0049] S4, deleting, refreshing and verifying the abnormal acquisition resources, and updating the refreshed and verified acquisition resources to the acquisition resource scheduling device;

[0050] S5. Perform availability detection on the collection resources in the collection resource scheduling device, filter out unavailable resources and return to S3.

[0051] Next, combine Figure 2 The method for managing and detecting the use of social application collection resources is further described in detail.

[0052] (1) Obtain a certain amount of available resources required for social application collection from the resource library, and store the obtained resources in different queues in the memory according to application type. Regularly and automatically check the length of each queue. If the queue length is lower than the set threshold, obtain new available resources from the resource library for initialization.

[0053] (2) When each child node in the Crawler cluster collects social application data, if it needs to use collection resources, the collection resource scheduling device S101 will obtain the request instruction for applying for resources, obtain the resource scheduling information (including but not limited to the collection node IP address, user name or social application category) carried in the request, and search for the corresponding resource according to the resource scheduling information. If the resource exists, the corresponding resource is returned to the Crawler for use according to the scheduling information. If the corresponding resource information is not found or the connection with the current Resource server is abnormal, other Resource servers are traversed to find the corresponding idle and available resources for allocation to improve the stability and reliability of the system.

[0054] (3) After completing the task collection, the collection node will update the important information such as the collection status, task level, and collection volume as the collection resource status to the resource status (collection resource status collection device S103). The resource status (collection resource status collection device S103) classifies the received collection resources. Normal resources determine their next use cycle according to the task level and collection volume in the status configuration, and update them to the resource library to wait for the next initialization; abnormal resources call the resource update module (abnormal collection resource processing device S104);

[0055] (4) The resource update module receives the abnormal state of the acquisition resources and performs corresponding operations on the abnormal state. The permanently restricted unavailable acquisition resources are deleted; the resource refresh operation is performed on the acquisition resources that need to be refreshed; and the resource verification is performed on the acquisition resources that trigger the verification.

[0056] (5) The collection resource detection device S105 regularly detects the collection resources in the resource library. For normal resources, no operation is performed. For abnormal resources, the resource update module is called according to the status configuration format in the resource status to perform corresponding processing. The number of collection resources is detected. If it is insufficient to meet the data collection of social applications, new collection resources are automatically generated using virtual device resource technology. For social applications that do not support automatic generation of collection resources, feedback is given to the user to manually configure new collection resources.

[0057] Furthermore, the processing operations of the resource update module mainly include:

[0058] (1) Unrecoverable collection resources: Delete the unrecoverable collection resources.

[0059] (2) Collection resources that need to be refreshed. For resources that need to be refreshed, use automation technology to refresh the resources. This technology can be some automation modules of Python (such as Playwright, Selenium, Autojs, etc.) to automatically refresh the corresponding social applications, extract the new resources required for collection, and update them to the resource library.

[0060] (3) Collection resources that trigger verification. For resources that trigger image verification, image recognition technology can be used to identify them, and the information obtained through recognition can be verified through automated technology. Then, new resources required for collection can be extracted and updated to the resource library. If the target social application detects automated technology, reverse technology (such as web reverse engineering, Android reverse engineering, etc.) can be used to pass verification and then update the new resources.

[0061] In summary, the present invention conducts an in-depth study on the usage of collection resources in the data collection process, and combines distributed scheduling technology, automation technology, virtual device resource technology, image recognition technology and other technologies to propose a system and method for the management and detection of collection resources based on social applications, so as to maximize the utilization of collection resources.

[0062] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

Claims

1. A system for managing and detecting the use of social application collection resources, characterized in that: include: A collection resource scheduling device, which is used to store and initialize collection resources, and allocate corresponding collection resources to the data collection scheduling device according to the collection resource application request submitted by the data collection scheduling device; A data collection and scheduling device, which is used to apply for and use collection resources, and submit the collection resource status after use to the collection resource status collection device; A collection resource status collection device, which is used to store the status of the collection resources that have been used, and classify the collection resources that have been used, submit the collection resources with normal status to the collection resource scheduling device, and submit the collection resources with abnormal status to the abnormal collection resource processing device; An abnormal acquisition resource processing device is used to delete, refresh and verify abnormal acquisition resources, and update the refreshed and verified acquisition resources to the acquisition resource scheduling device; The acquisition resource detection device is used to regularly detect the availability of acquisition resources in the acquisition resource scheduling device, filter out unavailable resources therein and update them to the acquisition resource status collection device.

2. The system for managing and detecting the use of social application collection resources as claimed in claim 1, characterized in that: The acquisition resource scheduling device has a built-in resource library, and the acquisition resources are stored in the resource library.

3. The system for managing and detecting the use of social application collection resources as claimed in claim 2, characterized in that: The acquisition resource scheduling device obtains a certain number of acquisition resources from the resource library in advance, classifies the acquired resources into different queues in the memory according to application type, and automatically detects the length of each queue regularly. If the queue length is lower than the set threshold, new acquisition resources are obtained from the resource library for initialization.

4. The system for managing and detecting the use of social application collection resources as claimed in claim 3, characterized in that: The acquisition resource application request carries acquisition resource scheduling information, and the acquisition resource scheduling information includes an acquisition node IP address, a user name, or a social application category.

5. The system for managing and detecting the use of social application collection resources as claimed in claim 4, characterized in that: The acquisition resource status includes acquisition status, acquisition amount and task level.

6. The system for managing and detecting the use of social application collection resources as claimed in claim 5, characterized in that: The acquisition resource detection device is also used to detect the number of acquisition resources. If the number is less than a set threshold, a new acquisition resource is automatically generated using a virtual device, or fed back to the user for manual configuration of a new acquisition resource, and the new acquisition resource is updated to the resource library.

7. The system for managing and detecting the use of social application collection resources as claimed in claim 6, characterized in that: The acquisition resource scheduling device includes one or more Resource servers, and the data acquisition scheduling device is a Crawler cluster.

8. A method for managing and detecting the use of social application collection resources, characterized in that: The method is applied to the system for managing and detecting the use of social application collection resources as claimed in claim 1, and the method comprises: S1. Acquire acquisition resources, and store and initialize the acquisition resources through an acquisition resource scheduling device; S2, obtaining a collection resource application request, and allocating the corresponding collection resources to a data collection scheduling device; S3, obtaining the state of the used acquisition resources, classifying the used acquisition resources, submitting the acquisition resources with normal state to the acquisition resource scheduling device, and submitting the acquisition resources with abnormal state to the abnormal acquisition resource processing device; S4, deleting, refreshing and verifying the abnormal acquisition resources, and updating the refreshed and verified acquisition resources to the acquisition resource scheduling device; S5. Perform availability detection on the collection resources in the collection resource scheduling device, filter out unavailable resources and return to S3.

Citation Information

Patent Citations

  • Resource information management system and method in cluster environment

    CN110502346A

  • Resource monitoring device and system, resource monitoring method, electronic equipment and medium

    CN113849378A

  • Resource management method and device, electronic equipment and storage medium

    CN114650392A

  • Acquisition resource scheduling method and system

    CN115357610A

  • System and method for dynamic rescheduling of multiple varying resources with user social mapping

    US20120042320A1