CN109951376B - Instant messaging software information acquisition method, device, system and storage medium - Google Patents

Instant messaging software information acquisition method, device, system and storage medium Download PDF

Info

Publication number
CN109951376B
CN109951376B CN201910152053.8A CN201910152053A CN109951376B CN 109951376 B CN109951376 B CN 109951376B CN 201910152053 A CN201910152053 A CN 201910152053A CN 109951376 B CN109951376 B CN 109951376B
Authority
CN
China
Prior art keywords
chat
user
target
instant messaging
target chat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910152053.8A
Other languages
Chinese (zh)
Other versions
CN109951376A (en
Inventor
王兆国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Disi Technology Co ltd
Original Assignee
Beijing Disi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Disi Technology Co ltd filed Critical Beijing Disi Technology Co ltd
Priority to CN201910152053.8A priority Critical patent/CN109951376B/en
Publication of CN109951376A publication Critical patent/CN109951376A/en
Application granted granted Critical
Publication of CN109951376B publication Critical patent/CN109951376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention relates to the technical field of data processing, in particular to a method, a device and a system for acquiring instant messaging software information and a storage medium. The method comprises the following steps: when receiving a task acquisition instruction, acquiring an IP address of a local machine; calling an acquisition task from a pre-established database according to the IP address of the local machine; logging in the instant messaging software according to the name of the instant messaging software, the user account and the login password; and searching a chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be inquired, and acquiring and outputting the chat information. All computers in a distributed computer cluster operate simultaneously. After each computer logs in the instant communication software according to the collection task, the chat information between the target chat object and the user can be reliably and automatically acquired in real time. The method is convenient for the supervision department to supervise the chat contents of a large number of users.

Description

Instant messaging software information acquisition method, device, system and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a method, a device and a system for acquiring instant messaging software information and a storage medium.
Background
With the continuous development of science and technology, electronic software forms are diversified. Particularly, the birth of instant messaging software enables the communication between people to be more convenient and faster, and the mutual distance between people is shortened. However, the instant messaging software brings convenience to people, and meanwhile, some lawbreakers use the instant messaging software to make illegal collusion. Such as the widespread dissemination of objectionable information through instant messaging software. Therefore, the supervision department needs to acquire the chat content of the user using the instant messaging software in time, monitor the chat content and prevent the wide spread of bad information.
Conventional ways of obtaining chat content of each user in instant messaging software include manual collection. The time and the labor are consumed, the labor cost is high, and the working efficiency is low. In addition, the chat information cannot be acquired in time, and even omission exists. This is very disadvantageous for the supervision of chat content of a large number of users by the supervision department.
Therefore, how to design an automatic and stable method to obtain the chat content propagated by the user through the instant messaging software in an instant and reliable manner becomes a technical problem to be solved urgently in the present application.
Disclosure of Invention
Therefore, embodiments of the present invention provide a method, an apparatus, a system and a storage medium for acquiring instant messaging software information, so as to solve the problems in the prior art that the conventional method for acquiring chat content transmitted by a user through instant messaging software is time-consuming and labor-consuming, has high labor cost and low working efficiency, and is unreliable in acquiring messages.
In a first aspect, an embodiment of the present invention provides an instant messaging software information acquisition method, where the method is applied to a distributed computer cluster, and the method is executed by a first computer in the distributed computer cluster, where the first computer is any one computer in the distributed computer cluster, and the method includes:
when receiving a task acquisition instruction, acquiring an IP address of a local machine;
according to the IP address of the machine, an acquisition task is called from a pre-established database, wherein the acquisition task at least comprises the following steps: the method comprises the steps that the name of instant messaging software, a user account, a login password and identification information corresponding to a target chat object to be inquired are obtained;
logging in the instant messaging software according to the name of the instant messaging software, the user account and the login password;
and searching a chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be inquired, and acquiring and outputting the chat information.
The embodiment of the present invention is further characterized in that, after receiving the task acquisition instruction, acquiring the IP address of the local computer, specifically including:
and when receiving a task acquisition instruction, acquiring the IP address of the local machine by using a Resolve function.
The embodiment of the present invention is further characterized in that the chat message includes: basic information of the target chat object and chat contents between the user and the target chat object; according to the identification information corresponding to the target chat object to be inquired, searching a chat window between a user and the target chat object, and acquiring and outputting basic information of the target chat object, the method specifically comprises the following steps:
acquiring a root node of a storage path of instant messaging software in a local machine by using an Automationelement.Rootelement function;
acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct-system child node corresponding to an identifier of a chat window between a user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct-system child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and forming an array by all the array elements;
traversing the array to obtain a first preset array element;
and acquiring the detailed information of the target chat object according to the first preset array element.
The embodiment of the present invention is further characterized in that the chat message includes: basic information of the target chat object and chat contents between the user and the target chat object; according to the identification information corresponding to the target chat object to be inquired, searching a chat window between the user and the target chat object, and acquiring and outputting chat contents between the user and the target chat object, the method specifically comprises the following steps:
acquiring a root node of a storage path of instant messaging software in a local machine by using an Automationelement.Rootelement function;
acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct-system child node corresponding to an identifier of a chat window between a user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct-system child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and forming an array by all the array elements;
traversing the array, and acquiring a second preset array element, wherein the second preset array element is used for recording the position information of the button of the 'message record';
positioning a message recording button according to a second preset element, a retrieval attribute current value parameter AutomationElement.NameProperty and a preset keyword by using a FindFirst function, wherein the AutomationElement.NameProperty is an externally input parameter;
and triggering a message recording button to acquire the chat content between the target chat object and the user.
The embodiment of the invention is also characterized in that after searching the chat window between the user and the target chat object and acquiring and outputting the chat information according to the identification information corresponding to the target chat object to be inquired, the method further comprises the following steps:
and converting the chatting information according to a preset data format by using a character string processing method.
The embodiment of the invention is also characterized in that after searching the chat window between the user and the target chat object and acquiring and outputting the chat information according to the identification information corresponding to the target chat object to be inquired, the method further comprises the following steps:
and closing the chat window between the target chat object and the user.
In a second aspect, an embodiment of the present invention further provides an instant messaging software information collecting device, where the device is applied to a distributed computer cluster, and the device corresponds to a first computer in the distributed computer cluster, where the first computer is any one computer in the distributed computer cluster, and the device includes:
the acquisition unit is used for acquiring the IP address of the local machine after receiving the task acquisition instruction;
the calling unit is used for calling an acquisition task from a pre-established database according to the IP address of the local machine, wherein the acquisition task at least comprises the following steps: the method comprises the steps that the name of instant messaging software, a user account, a login password and identification information corresponding to a target chat object to be inquired are obtained;
the login unit is used for logging in the instant messaging software according to the name of the instant messaging software, the user account and the login password;
and the processing unit is used for searching a chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be inquired, and acquiring and outputting the chat information.
The embodiment of the present invention is further characterized in that the processing unit is further configured to close a chat window between the target chat object and the user.
In a third aspect, an embodiment of the present invention further provides an instant messaging software information acquisition system, where the system includes: a processor and a memory;
the memory is used for storing one or more program instructions;
a processor for executing one or more program instructions to perform any one of the method steps of the instant messaging software information collection method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium contains one or more program instructions, and the one or more program instructions are used by an instant messaging software information acquisition system to execute any one of the method steps in an instant messaging software information acquisition method according to the first aspect.
According to the embodiment of the invention, the following advantages are provided: all computers in a distributed computer cluster operate simultaneously. When the tasks are allocated, the computer calls the collection tasks from the pre-established database according to the IP address of the computer, and the execution is orderly and disorderly. After each computer logs in the instant communication software according to the collection task, the chat information between the target chat object and the user can be reliably and automatically acquired in real time. The method is convenient for the supervision department to supervise the chat contents of a large number of users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so as to be understood and read by those skilled in the art, and are not used to limit the conditions that the present invention can be implemented, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the effects and the achievable by the present invention, should still fall within the range that the technical contents disclosed in the present invention can cover.
Fig. 1 is a schematic flow chart of an instant messaging software information acquisition method according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of an instant messaging software information acquisition device according to embodiment 2 of the present invention;
fig. 3 is a schematic structural diagram of an instant messaging software information collection system according to embodiment 3 of the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment 1 of the present invention provides an instant messaging software information acquisition method, specifically as shown in fig. 1, where the method is applied to a distributed computer cluster, and the method is executed by a first computer in the distributed computer cluster, where the first computer is any one computer in the distributed computer cluster, and the method includes:
and step 110, acquiring the IP address of the local machine after receiving the task acquisition instruction.
Specifically, the collection task instruction is issued by a scheduling center in the distributed computer cluster. Each computer in the computer cluster receives its own collection task instruction. When the dispatching center distributes tasks, the dispatching center issues task instructions according to the principle of load balancing. And after each computer receives the task acquisition instruction, the IP address of the computer can be actively acquired.
Optionally, a Resolve function may be used to obtain the native IP address.
And step 120, calling an acquisition task from a pre-established database according to the IP address of the local computer.
Specifically, the scheduling center stores the assigned task list in a pre-established database. Each computer needs to establish communication connection with a pre-established database, find a task list matched with the own IP from the pre-established database, and further acquire an acquisition task.
Acquisition tasks include, but are not limited to: the instant messaging system comprises an instant messaging software name, a user account, a login password and identification information corresponding to a target chat object to be inquired.
And step 130, logging in the instant messaging software according to the name of the instant messaging software, the user account and the login password.
Step 140, according to the identification information corresponding to the target chat object to be queried, finding the chat window between the user and the target chat object, and obtaining and outputting the chat information.
Optionally, the chat message includes: basic information of the target chat object and chat contents between the user and the target chat object; according to the identification information corresponding to the target chat object to be inquired, searching a chat window between a user and the target chat object, and acquiring and outputting basic information of the target chat object, the method specifically comprises the following steps:
acquiring a root node of a storage path of instant messaging software in a local machine by using an Automationelement.Rootelement function;
acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct-system child node corresponding to an identifier of a chat window between a user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct-system child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and forming an array by all the array elements;
traversing the array to obtain a first preset array element;
and acquiring the detailed information of the target chat object according to the first preset array element.
Optionally, according to the identification information corresponding to the target chat object to be queried, a chat window between the user and the target chat object is searched, and the chat content between the user and the target chat object is obtained and output, which specifically includes:
acquiring a root node of a storage path of instant messaging software in a local machine by using an Automationelement.Rootelement function;
acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct-system child node corresponding to an identifier of a chat window between a user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct-system child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and forming an array by all the array elements;
traversing the array, and acquiring a second preset array element, wherein the second preset array element is used for recording the position information of the button of the 'message record';
positioning a message recording button according to a second preset element, a retrieval attribute current value parameter AutomationElement.NameProperty and a preset keyword by using a FindFirst function, wherein the AutomationElement.NameProperty is an externally input parameter;
and triggering a message recording button to acquire the chat content between the target chat object and the user.
Optionally, after performing step 140, the method further includes step 150: and converting the chatting information according to a preset data format by using a character string processing method.
The step 150 is performed to convert the chat message according to a preset format, so that the chat message is convenient for the staff to check. For example, the data format is converted into a data format matched with the data table architecture, and then the data is filled into the data table, so that the data is convenient for a worker to check.
Optionally, after step 140 is executed, the method further includes step 160: and closing the chat window between the target chat object and the user.
The aim of closing the chat window between the current target chat object and the user is to reduce the computer running load and improve the computer running capacity. Certainly, if the instant messaging software chat records are obtained completely, the instant messaging software also needs to be closed directly, and the running load of the computer is further reduced.
It should be noted that the execution of step 150 and the execution of step 160 are not in a sequential order, and the execution order need not be in the numerical order, and the computer can freely allocate the execution order.
In addition, the target chat object can be a member existing in the user account in the instant messaging software, or can be a group. Such as a buddy in a QQ or a group of QQs. The method is set according to the actual situation, and no limitation is made here.
In a specific example, when a computer needs to obtain a message record of a QQ group, the following steps need to be performed:
when the computer executes steps 110 to 130 to log in the QQ, 1) the root node of the path stored in the computer by the QQ is obtained by using an Automationelement. 2) Acquiring an identifier of a QQ group chat window by using a FindFirst function according to a root node of a path stored in a local machine by the QQ, a tree copy containing element direct-level sublevel parameters, Children and RuntimeID corresponding to the QQ group chat window; 3) opening a QQ group chat window according to the identifier of the QQ group chat window; 4) and searching a direct subnode corresponding to the identifier of the QQ group chat window according to a TreeCoope.Children function by using a FindAll function, wherein the direct subnode is a panel window in the QQ group chat window, and the panel window comprises a chat interface, a bulletin board block, an album board block, a file board block, a movable board block, a setting board block, a message recording button, a QQ group detailed information interface board block and the like. 5) And after converting the panel window into conversion array elements according to a preset rule, forming an array by all the array elements. And traversing the array to obtain a first preset array element, wherein the first preset array element is the array element corresponding to the QQ group detailed information interface. 6) Then opening a QQ group detailed information interface, and searching a first type of preset child node identifiers according to TreeCoope.Children by using a FindAll function so as to gradually acquire head images, nicknames and the like of users; 7) and continuously utilizing the FindFirst function, and acquiring the gender, age, location, Q age and personal description of the user according to the current value of the retrieval attribute, namely, the name property, the specific keywords of the gender, the age and the like.
Further, after the steps 1) to 5) are executed, 6) opening a detailed information interface of the QQ group, and searching a second type of preset child node identifiers according to treescope. Through the above process, the detailed information of the target chat object is obtained.
Further, after the steps 1) to 3) above are executed, 4) using a FindAll function to search a direct-system child node corresponding to the identifier of the QQ group chat window according to a treescope.children function, where the direct-system child node is a panel window in the QQ group chat window, and the panel window includes a chat interface, a bulletin board, an album board, a file board, a movable board, a setting board, a message recording button, a QQ group detailed information interface board, and the like. 5) And after converting the panel window into conversion array elements according to a preset rule, forming an array by all the array elements. And traversing the array to obtain a second preset array element, wherein the second preset array element is used for recording the position information of the button of the 'message record'. 6) And positioning a message record button by using a FindFirst function according to a second preset element, a current value parameter of the retrieval attribute, name property and a preset keyword, wherein the keyword is 'message record'. 7) And triggering a message record button, opening the chat records in the QQ window, and acquiring the chat records in the QQ group by using a FindFirst function.
Further, the method comprises the step of processing the acquired QQ group data into a data format matched with the data table structure by using a character string processing method such as EndsWith and Split. Recently, the processed data is stored in a database.
The instant messaging software information acquisition method provided by the embodiment of the invention can simultaneously work through all computers in a distributed computer cluster. When the tasks are allocated, the computer calls the collection tasks from the pre-established database according to the IP address of the computer, and the execution is orderly and disorderly. After each computer logs in the instant communication software according to the collection task, the chat information between the target chat object and the user can be reliably and automatically acquired in real time. The method is convenient for the supervision department to supervise the chat contents of a large number of users.
Corresponding to the foregoing embodiment 1, an embodiment 2 of the present invention further provides an instant messaging software information collecting device, specifically as shown in fig. 2, where the device corresponds to a first computer in a distributed computer cluster, and the first computer is any one computer in the distributed computer cluster, and the device includes: an acquisition unit 201, a calling unit 202, a login unit 203, and a processing unit 204.
The acquiring unit 201 is configured to acquire an IP address of the local computer after receiving the task acquisition instruction;
the invoking unit 202 is configured to invoke an acquisition task from a pre-established database according to the local IP address, where the acquisition task at least includes: the method comprises the steps that the name of instant messaging software, a user account, a login password and identification information corresponding to a target chat object to be inquired are obtained;
a login unit 203, configured to log in the instant messaging software according to the name of the instant messaging software, the user account, and the login password;
the processing unit 204 is configured to search a chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be queried, and obtain and output chat information.
Optionally, the obtaining unit 201 is specifically configured to, after receiving the collection task instruction, obtain the local IP address by using a Resolve function.
Optionally, the chat message includes: basic information of the target chat object and chat contents between the user and the target chat object; the processing unit 204 is specifically configured to obtain a root node of a path stored in the local by the instant messaging software through an automation element.
Acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct-system child node corresponding to an identifier of a chat window between a user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct-system child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and forming an array by all the array elements;
traversing the array to obtain a first preset array element;
and acquiring the detailed information of the target chat object according to the first preset array element.
Optionally, the chat message includes: basic information of the target chat object and chat contents between the user and the target chat object; the processing unit 204 is specifically configured to obtain a root node of a path stored in the local by the instant messaging software through an automation element.
Acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct-system child node corresponding to an identifier of a chat window between a user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct-system child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and forming an array by all the array elements;
traversing the array, and acquiring a second preset array element, wherein the second preset array element is used for recording the position information of the button of the 'message record';
positioning a message recording button according to a second preset element, a retrieval attribute current value parameter AutomationElement.NameProperty and a preset keyword by using a FindFirst function, wherein the AutomationElement.NameProperty is an externally input parameter;
and triggering a message recording button to acquire the chat content between the target chat object and the user.
Optionally, the processing unit 204 is further configured to convert the chat information according to a preset data format by using a character string processing method.
Optionally, the processing unit 204 is further configured to close a chat window between the target chat object and the user.
The functions executed by each component in the instant messaging software information acquisition device provided by the embodiment of the present invention have been described in detail in the above embodiment 1, and therefore, redundant description is not repeated here.
The instant messaging software information acquisition device provided by the embodiment of the invention works simultaneously through all computers in a distributed computer cluster. When the tasks are allocated, the computer calls the collection tasks from the pre-established database according to the IP address of the computer, and the execution is orderly and disorderly. After each computer logs in the instant communication software according to the collection task, the chat information between the target chat object and the user can be reliably and automatically acquired in real time. The method is convenient for the supervision department to supervise the chat contents of a large number of users.
Corresponding to the above embodiment, embodiment 3 of the present invention further provides an instant messaging software information acquisition system, specifically as shown in fig. 3, where the system includes: a processor 301 and a memory 302;
the memory 302 is used to store one or more program instructions;
the processor 301 is configured to execute one or more program instructions to execute the instant messaging software information collecting method described in the above embodiments.
The instant messaging software information acquisition system provided by the embodiment of the invention simultaneously works through all computers in a distributed computer cluster. When the tasks are allocated, the computer calls the collection tasks from the pre-established database according to the IP address of the computer, and the execution is orderly and disorderly. After each computer logs in the instant communication software according to the collection task, the chat information between the target chat object and the user can be reliably and automatically acquired in real time. The method is convenient for the supervision department to supervise the chat contents of a large number of users.
In correspondence with the above embodiments, embodiments of the present invention also provide a computer storage medium containing one or more program instructions therein. One or more program instructions are used for the instant messaging software information acquisition system to execute the instant messaging software information acquisition method described in the above embodiments.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.

Claims (10)

1. An instant messaging software information acquisition method is applied to a distributed computer cluster, and is executed by a first computer in the distributed computer cluster, wherein the first computer is any computer in the distributed computer cluster, and the method comprises the following steps:
when receiving a task acquisition instruction, acquiring an IP address of a local machine;
the collection task instruction is issued by a scheduling center in the distributed computer cluster; each computer in the computer cluster receives a task acquisition instruction thereof; when the dispatching center distributes tasks, the dispatching center issues task instructions according to the principle of load balancing; after each computer receives a task acquisition instruction, the IP address of the computer is actively acquired;
calling an acquisition task from a pre-established database according to the IP address of the local machine; the dispatching center stores the distributed task list into a pre-established database; each computer needs to establish communication connection with a pre-established database, then finds a task list matched with the IP of the computer from the pre-established database, and further obtains an acquisition task;
wherein the collection task at least comprises: the method comprises the steps that the name of instant messaging software, a user account, a login password and identification information corresponding to a target chat object to be inquired are obtained;
logging in the instant messaging software according to the name of the instant messaging software, the user account and the login password;
and searching a chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be inquired, and acquiring and outputting the chat information.
2. The method according to claim 1, wherein the acquiring an IP address of the local computer after receiving the task collecting instruction specifically includes:
and when receiving a task acquisition instruction, acquiring the IP address of the local machine by using a Resolve function.
3. The method of claim 1, wherein the chat information comprises: basic information of the target chat object and chat contents between the user and the target chat object; the method for searching the chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be inquired, and acquiring and outputting the basic information of the target chat object specifically comprises the following steps:
acquiring a root node of a storage path of instant messaging software in a local machine by using an Automationelement.Rootelement function;
acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct child node corresponding to an identifier of a chat window between the user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and then forming an array by all the array elements;
traversing the array to obtain a first preset array element;
and acquiring the detailed information of the target chat object according to the first preset array element.
4. The method of claim 1, wherein the chat information comprises: basic information of the target chat object and chat contents between the user and the target chat object; the method for searching the chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be inquired, and acquiring and outputting the chat content between the user and the target chat object specifically comprises the following steps:
acquiring a root node of a storage path of instant messaging software in a local machine by using an Automationelement.Rootelement function;
acquiring an identifier of a chat window between a user and a target chat object by using a FindFirst function according to a root node of a storage path of instant messaging software in a local machine, a rule input device containing an element direct-level sub-level parameter TreeCope.Children and a rule input device corresponding to the chat window between the user and the target chat object, wherein the TreeCope.Children and the rule input device are input from the outside;
opening a chat window between the user and the target chat object according to the identifier of the chat window between the user and the target chat object;
searching a direct child node corresponding to an identifier of a chat window between the user and a target chat object according to a TreeCoope.Children function by using a FindAll function, wherein the direct child node is a panel window in the chat window between the user and the target chat object;
converting the panel window into conversion array elements according to a preset rule, and then forming an array by all the array elements;
traversing the array to obtain a second preset array element, wherein the second preset array element is used for recording the position information of a button of 'message recording';
positioning a message recording button according to the second preset element, the current value parameter AutomationElement.NameProperty of the retrieval attribute and a preset keyword by using a FindFirst function, wherein the AutomationElement.NameProperty is an externally input parameter;
and triggering the message recording button to acquire the chat content between the target chat object and the user.
5. The method according to any one of claims 1 to 4, wherein after searching the chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be queried and obtaining and outputting the chat information, the method further comprises:
and converting the chat information according to a preset data format by using a character string processing method.
6. The method according to any one of claims 1 to 4, wherein after searching the chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be queried and obtaining and outputting the chat information, the method further comprises:
and closing a chat window between the target chat object and the user.
7. An instant messaging software information acquisition device, wherein the device is applied to a distributed computer cluster, the device corresponds to a first computer in the distributed computer cluster, the first computer is any one computer in the distributed computer cluster, and the device comprises:
the acquisition unit is used for acquiring the IP address of the local machine after receiving the task acquisition instruction; the collection task instruction is issued by a scheduling center in the distributed computer cluster; each computer in the computer cluster receives a task acquisition instruction thereof; when the dispatching center distributes tasks, the dispatching center issues task instructions according to the principle of load balancing; after each computer receives a task acquisition instruction, the IP address of the computer is actively acquired;
the calling unit is used for calling an acquisition task from a pre-established database according to the IP address of the local machine; the dispatching center stores the distributed task list into a pre-established database; each computer needs to establish communication connection with a pre-established database, then finds a task list matched with the IP of the computer from the pre-established database, and further obtains an acquisition task;
wherein the collection task at least comprises: the method comprises the steps that the name of instant messaging software, a user account, a login password and identification information corresponding to a target chat object to be inquired are obtained;
the login unit is used for logging in the instant messaging software according to the name of the instant messaging software, the user account and the login password;
and the processing unit is used for searching a chat window between the user and the target chat object according to the identification information corresponding to the target chat object to be inquired, and acquiring and outputting the chat information.
8. The apparatus as recited in claim 7 wherein said processing element is further configured to close a chat window between said target chat object and said user.
9. An instant messaging software information acquisition system, the system comprising: a processor and a memory;
the memory is to store one or more program instructions;
the processor, configured to execute the one or more program instructions, to perform the method of any of claims 1-6.
10. A computer storage medium containing one or more program instructions for execution by an instant messaging software information collection system to perform the method steps of any of claims 1-6.
CN201910152053.8A 2019-02-28 2019-02-28 Instant messaging software information acquisition method, device, system and storage medium Active CN109951376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910152053.8A CN109951376B (en) 2019-02-28 2019-02-28 Instant messaging software information acquisition method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910152053.8A CN109951376B (en) 2019-02-28 2019-02-28 Instant messaging software information acquisition method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN109951376A CN109951376A (en) 2019-06-28
CN109951376B true CN109951376B (en) 2021-07-16

Family

ID=67008210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910152053.8A Active CN109951376B (en) 2019-02-28 2019-02-28 Instant messaging software information acquisition method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN109951376B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399065A (en) * 2019-07-23 2019-11-01 北京字节跳动网络技术有限公司 Message treatment method, device and electronic equipment
CN110505072B (en) * 2019-09-27 2021-05-25 连尚(新昌)网络科技有限公司 Method, terminal device and computer readable medium for backing up chat records

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8077718B2 (en) * 2005-08-12 2011-12-13 Microsoft Corporation Distributed network management
CN105282094B (en) * 2014-06-16 2018-05-08 北京神州泰岳软件股份有限公司 A kind of collecting method and system
CN104811352B (en) * 2015-04-21 2018-12-28 广州多益网络股份有限公司 A kind of information detecting method and system of enterprise group
CN107276887A (en) * 2017-07-06 2017-10-20 北京北信源软件股份有限公司 It is a kind of that the method and apparatus that instant communication message is not read are reminded by short message
CN108769115A (en) * 2018-04-19 2018-11-06 中国科学院计算技术研究所 Distributed RSS data acquisition method and system
CN108880988B (en) * 2018-06-12 2021-10-08 深圳华讯网络科技有限公司 Method, system, computer equipment and storage medium for monitoring instant communication message

Also Published As

Publication number Publication date
CN109951376A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
US11416676B2 (en) Using text messages to interact with spreadsheets
CN108519967B (en) Chart visualization method and device, terminal and storage medium
CN105138592B (en) A kind of daily record data storage and search method based on distributed structure/architecture
JP4879580B2 (en) System and method for providing an automatic search menu to a user interface
EP3975474B1 (en) Methods and apparatuses for chaining service data
US20130103391A1 (en) Natural language processing for software commands
CN110908641B (en) Visualization-based stream computing platform, method, device and storage medium
CN109656963B (en) Metadata acquisition method, apparatus, device and computer readable storage medium
CN101902505A (en) Distributed DNS inquiry log real-time statistic device and method thereof
US20100162132A1 (en) Techniques to manage and display related communications
CN108287894B (en) Data processing method, device, computing equipment and storage medium
US7113979B1 (en) System, method and article of manufacture for enhancing electronic messages
US20240020305A1 (en) Systems and methods for automatic archiving, sorting, and/or indexing of secondary message content
CN109951376B (en) Instant messaging software information acquisition method, device, system and storage medium
CN110975293A (en) Method, device, server and medium for establishing resource reference relation table
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
EP2770761A1 (en) Communication device and method for profiling and presentation of message threads
US10931617B2 (en) Sharing of bundled content
CN116340269A (en) Method for acquiring and searching Flink task logs in real time based on elastic search
CN111694793A (en) Log storage method and device and log query method and device
US20210034574A1 (en) Systems and methods for verifying performance of a modification request in a database system
US20240095033A1 (en) Systems and methods for handling macro compatibility for documents at a storage system
CN108255913A (en) A kind of real-time streaming data processing method and processing device
US20220222360A1 (en) Chatbot control device and chatbot control method
CN114547206A (en) Data synchronization method and data synchronization system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant