Facebook chat data analysis method and device, equipment and storage medium

By enabling auxiliary functions on the Android system, analyzing the Facebook compose page, and recursively obtaining the chat interface list information and data, the problem of incomplete Facebook chat data analysis is solved, and more comprehensive data acquisition is achieved.

CN119728621APending Publication Date: 2025-03-28SHENZHEN MAITIAN GUARDIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411812187.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively parse Facebook chat data, especially on Android systems, resulting in incomplete analysis of chat data.

Method used

By enabling the auxiliary functions under the Android system, obtain the Facebook compose page, and call the preset function to recursively obtain the chat interface list information and chat data, and judge the user's reception and sending based on the preset enumeration type.

Benefits of technology

It realizes a more comprehensive Facebook chat data analysis, can obtain all chat data on the screen, and solves the problem of incomplete resolution in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728621A_ABST
    Figure CN119728621A_ABST
Patent Text Reader

Abstract

The invention relates to the field of computers, and discloses a Facebook chat data analysis method and device, equipment and a storage medium. The method comprises the following steps: starting an auxiliary function under an Android system, and obtaining a Facebook complex page; according to the complex page, calling a preset first function, and performing recursion to obtain chat interface list information; calling a preset second function according to the chat interface list information, and circularly traversing to obtain chat data; and judging receiving and sending of the user according to the chat data and a preset enumeration type. In the embodiment of the invention, all chat data in the screen can be obtained, so that more comprehensive Facebook chat data can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a Facebook chat data parsing method, device, equipment and storage medium. Background Art

[0002] As one of the world's largest social platforms, Facebook has become an important tool for people's daily communication. Its number of users and daily active users are among the highest in the world, and a large amount of social data is generated every day. These data not only include user content such as text, pictures, and videos, but also cover user communication records, such as Facebook Messenger chat data. Due to the widespread use of Facebook and the dependence on information sharing, the investigation of social network applications has become particularly important.

[0003] However, the Facebook chat history is quite complex and difficult to parse on Android, as the Facebook chat history is based on the irregular ID page developed by Compose. Currently, there is no mature parsing solution that can perfectly reproduce the user's Facebook chat data. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problem of incomplete analysis of Facebook chat data.

[0005] A first aspect of the present invention provides a Facebook chat data parsing method, the Facebook chat data parsing method comprising:

[0006] Enable the auxiliary function under the Android system and obtain the Facebookcompose page. The auxiliary function is used to monitor the changes of the Facebookcompose interface;

[0007] According to the compose page, a preset first function is called to recursively obtain chat interface list information, wherein the first function is a function for searching for an element node containing a specific class name in the compose page;

[0008] According to the chat interface list information, calling a preset second function, looping through and obtaining chat data, wherein the second function is a function for searching for specific text or description in the chat interface list;

[0009] The user's receiving and sending are determined according to the chat data and the preset enumeration type.

[0010] Optionally, in a first implementation of the first aspect of the present invention, calling a preset second function according to the chat interface list information and looping through to obtain chat data includes:

[0011] According to the chat interface list information, a preset second function is called to filter and obtain the class of the UI basic component node;

[0012] According to the class of the UI basic component node, a class set of nodes is obtained;

[0013] According to the class set of the node, the chat data is obtained by looping through.

[0014] Optionally, in a second implementation of the first aspect of the present invention, obtaining the chat data by looping through the class set of the node includes:

[0015] Obtaining a root node in the class set of the node, and determining whether the root node has a non-empty content description;

[0016] If not, recursively traverse the child nodes of the root node to determine whether the child nodes have a non-empty content description;

[0017] If so, traverse and determine whether other nodes in the class set of the node and the child nodes of the other nodes have non-empty content descriptions until all nodes in the class set of the node are traversed;

[0018] According to the non-empty content description, chat data is obtained.

[0019] Optionally, in a third implementation of the first aspect of the present invention, enabling auxiliary functions under the Android system and obtaining a Facebook compose page includes:

[0020] Enable the auxiliary function under the Android system and parse the device page elements through API callback;

[0021] According to the device page element, determining whether the device page has changed;

[0022] If yes, determining whether the device page contains the package name of Facebook;

[0023] If yes, then get the Facebookcompose page.

[0024] Optionally, in a fourth implementation of the first aspect of the present invention, calling a preset first function according to the compose page to recursively obtain chat interface list information includes:

[0025] According to the compose page, parse the compose layout, and form an xml file according to the compose layout;

[0026] Create a view hierarchy according to the XML file;

[0027] According to the view hierarchy, a preset first function is called to recursively obtain chat interface list information.

[0028] Optionally, in a fifth implementation of the first aspect of the present invention, calling a preset first function according to the view hierarchy to recursively obtain chat interface list information includes:

[0029] According to the view hierarchy, calling a preset first function to match the class name of the node in the compose page;

[0030] According to the class name of the node in the matched compose page, recursively traverse all child nodes of the matched node to obtain the chat interface list information.

[0031] Optionally, in a sixth implementation of the first aspect of the present invention, judging the reception and sending of the user according to the chat data and a preset enumeration type includes:

[0032] Get the location information of the UI basic component node in the compose page;

[0033] According to the location information, obtaining an enumeration type corresponding to the chat data;

[0034] The user's reception and sending are determined according to the enumeration type corresponding to the chat data.

[0035] A second aspect of the present invention provides a Facebook chat data parsing device, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the instructions in the memory so that the Facebook chat data parsing device executes the above-mentioned Facebook chat data parsing method.

[0036] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned Facebook chat data parsing method.

[0037] In an embodiment of the present invention, the auxiliary function under the Android system is turned on to obtain the Facebook compose page, and the auxiliary function is used to monitor the changes in the Facebook compose interface; according to the compose page, the preset first function is called to recursively obtain the chat interface list information, and the first function is a function for finding the element node containing a specific class name in the compose page; according to the chat interface list information, the preset second function is called to loop through and obtain the chat data, and the second function is a function for finding a specific text or description in the chat interface list; according to the chat data and the preset enumeration type, the user's reception and sending are judged. In the present invention, based on the auxiliary function under the Android system, the Facebook compose interface changes are monitored, and the entire chat interface list in the compose page and all the text or description in the chat interface list are parsed through the preset first function and the second function, and all the chat data on the screen are obtained, so as to obtain more comprehensive Facebook chat data. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of an embodiment of a method for parsing Facebook chat data in an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of an embodiment of a device for analyzing Facebook chat data in an embodiment of the present invention;

[0040] Figure 3 Schematic diagram of an embodiment of a Facebook chat data parsing device in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] Embodiments of the present invention provide a Facebook chat data parsing method, device, equipment and storage medium.

[0042] The embodiments disclosed in the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments disclosed in the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments disclosed in the present invention are only for exemplary purposes and are not intended to limit the scope of protection disclosed in the present invention.

[0043] In the description of the embodiments disclosed in the present invention, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0044] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the Facebook chat data parsing method in the embodiment of the present invention includes:

[0045] S100, turn on the accessibility feature under the Android system and get the Facebookcompose page.

[0046] In this embodiment, an Android assistant terminal is installed on an Android device, wherein the Android device includes a smart phone, a tablet computer, etc. Then the permissions to be used (accessibility-AccessibilityService) are configured, wherein AccessibilityService is a service provided by the Android system, which runs in the background and can receive AccessibilityEvent events issued by the system. These events represent a series of state changes of the user interface. For example, focus changes, button clicks, etc. will trigger AccessibilityEvent. AccessibilityService can request to obtain the content of the current active window, thereby realizing monitoring and response to interface changes. After the user turns on the accessibility function, clicks on Facebook chat, and the assistant terminal can obtain the Facebookcompose overall page elements. Specifically, after the assistant terminal is installed, it will jump to the accessibility permission set by the system, prompting the user to click to turn on the accessibility function. After the turn-on is successful, it will automatically return to the assistant terminal. After successful authorization, this assistant terminal has the accessibility permission and can parse all elements on the device interface.

[0047] S200, according to the compose page, call the preset first function and recursively obtain the chat interface list information.

[0048] In this embodiment, after the user clicks on the Facebook chat interface, the callback of the auxiliary function is triggered, and the preset first function is called to obtain the overall chat interface list information, wherein the first function refers to the findTopNodeByClassName function, which is used to find the function of the element node containing a specific class name in the compose page. The function is to pass a nodeinfo node, and recursively use the calssName of the node as a judgment condition to obtain the desired data information, wherein nodeinfo is a class used to represent the accessibility node in the interface. It contains information about user interface elements so that auxiliary tools (such as screen readers) can interact with these elements.

[0049] S300, calling a preset second function according to the chat interface list information, and looping through to obtain chat data.

[0050] In this embodiment, according to the chat interface list information, the preset second function is called, and the second function refers to the findTextOrDescByClassName function, which is used to find specific text or description in the chat interface list. Specifically, this findTextOrDescByClassName function passes a nodeinfo node, and recursively uses the node's calssName and the Text data on the node as a judgment condition to filter out the redundant information in the compose page, thereby obtaining the desired data information. Then the chat data is traversed through the for loop.

[0051] S400, judging the user's receiving and sending according to the chat data and the preset enumeration type.

[0052] In this embodiment, the chat data received and sent by the user is determined according to a preset enumeration type sendType. Optionally, the enumeration type can be defined by a keyword, and SendType can be defined by a numerical enumeration or a string enumeration.

[0053] Specifically, the enumeration type sendType includes:

[0054] 1: Send

[0055] 2: Receive

[0056] If the enumeration type sendType is 1, it means that the chat data is the data sent by the user. If the enumeration type sendType is 2, it means that the chat data is the data received by the user. The enumeration type can clearly distinguish the sending and receiving behaviors of messages in the code, thereby improving the readability and maintainability of the code.

[0057] In an optional implementation of the first aspect of the present invention, calling a preset second function according to the chat interface list information, and looping through to obtain chat data includes:

[0058] According to the chat interface list information, the preset second function is called to filter and obtain the class of the UI basic component node; according to the class of the UI basic component node, the class set of the node is obtained; according to the class set of the node, the chat data is obtained by looping through.

[0059] In this embodiment, the overall chat interface list information is obtained, and then the second function is used to filter out the redundant information in the compose page, leaving only the basic UI components, where the basic UI components include ViewGroup and View. In the Android UI hierarchy, View is the basic building block, and ViewGroup is a container for combining these building blocks. A typical Android interface is usually composed of multiple nested ViewGroup and View objects to form a tree structure; ViewGroup can contain not only multiple View objects, but also other ViewGroup objects, thereby achieving more complex layout and interaction. Facebook uses these two basic UI components to draw interfaces and render data. Specifically, the findTextOrDescByClassName function is called to filter out the nodeinfo of the two className types android.view.ViewGroup and android.view.View, and a listNodeInfo collection is obtained, which is traversed through a for loop to obtain all chat data.

[0060] In an optional implementation of the first aspect of the present invention, obtaining chat data by looping through a set of node classes includes:

[0061] Get the root node in the node's class set, and determine whether the root node has a non-empty content description; if not, recursively traverse the child nodes of the root node to determine whether the child nodes have a non-empty content description; if so, traverse and determine whether other nodes in the node's class set and the child nodes of other nodes have non-empty content descriptions, until all nodes in the node's class set are traversed; obtain chat data based on the non-empty content description.

[0062] In this embodiment, the associated view with contentDescription is traversed and returned from nodeinfo, and the preset third function is called, wherein the third function refers to the findViewWithcontentDescription function, which is used to traverse the view structure represented by nodeinfo, and find the first view with a non-empty contentDescription. ContentDescription is usually used to assist in function description and help barrier-free services understand the view content. First, traverse from the nodeinfo root node starting from the class set listNodeInfo. Specifically, determine whether the nodeinfo root node has a non-empty content description. If not, recursively traverse the child nodes of the nodeinfo root node to determine whether the child nodes have a non-empty content description; if so, traverse and determine whether other nodeinfo nodes in the class set and the child nodes of other nodeinfo nodes have non-empty content descriptions until all nodes in the class set are traversed. When the nodeinfo node has a non-empty content description, the host View associated with the node is obtained, and the chat data is obtained through the View.

[0063] In an optional implementation of the first aspect of the present invention, enabling auxiliary functions under the Android system and obtaining the Facebook compose page includes:

[0064] Enable the accessibility function under the Android system, parse the device page elements through API callback; determine whether the device page has changed based on the device page elements; if so, determine whether the device page contains the Facebook package name; if so, obtain the Facebookcompose page.

[0065] In this embodiment, by turning on the accessibility permission, all elements on the device interface can be parsed, and the Android assistant end is notified that the device page has changed according to the API callback of the Android system. If the device page has changed, it is determined whether the device page contains the package name of Facebook to determine whether the Facebook application interface has changed. If the device page contains the package name of Facebook, it means that the Facebook application interface has changed, and the Facebookcompose page is obtained. When the assistant end accesses Facebook data, the OAuth authentication protocol can be used to obtain an access token. In the Facebook developer console, the required permissions are set for the assistant end. For example, the user's friend list, email address and other information can be requested. These permissions require explicit authorization from the user. Specifically, the API provided by Facebook is used to build an OAuth authentication URL, which will guide the user to Facebook for identity authentication. In the Android application, Intent is used to start the system browser to guide the user to complete the OAuth authentication process. After the user authorizes, Facebook will redirect to the specified redirection URI with an access token. When the user completes the authentication and returns to the application, the access token in the redirection URI needs to be parsed. Then, the access token can be used to call Facebook's API to obtain user information or other resources.

[0066] In an optional implementation of the first aspect of the present invention, according to the compose page, calling a preset first function, and recursively obtaining chat interface list information includes:

[0067] According to the compose page, parse the compose layout, and form an xml file based on the compose layout; according to the xml file, create a view hierarchy; according to the view hierarchy, call the preset first function to recursively obtain the chat interface list information.

[0068] In this embodiment, when the assistant end is started, the Android system will calculate the layout, parse the Compose layout, form an XML file, and create a view hierarchy. Specifically, when the application starts, the Android system will parse the XML layout file. This process is usually completed by creating an XmlPullParser object, which is responsible for parsing the XML file line by line and dynamically creating view objects based on the parsed content. During the parsing process, the system will use the reflection mechanism to dynamically create view objects. Whenever a new view element is encountered, the system will create an instance of the element. After the parsing is completed, the system organizes all view objects into a view hierarchy, which reflects the parent / child relationship of the views specified in the layout file. According to the view hierarchy, key elements can be recursively searched from top to bottom to obtain specific class name elements.

[0069] In an optional implementation of the first aspect of the present invention, calling a preset first function according to the view hierarchy to recursively obtain chat interface list information includes:

[0070] According to the view hierarchy, call the preset first function to match the class name of the node in the compose page; according to the class name of the node in the matched compose page, recursively traverse all child nodes of the matching node to obtain the chat interface list information.

[0071] In this embodiment, according to the view hierarchy, the preset findTopNodeByClassName function is called to match the class name of the node in the compose page, and the node with a specific class name is screened out. The screened node is the root node of the Facebook chat interface, and then all child nodes of the matching node are recursively traversed, first processing the current root node, and then recursively processing all its child nodes until there are no child nodes. In the recursive process, the relevant information of each node is collected to obtain the chat interface list information.

[0072] In an optional implementation of the first aspect of the present invention, judging the reception and sending of the user according to the chat data and the preset enumeration type includes:

[0073] Get the location information of the UI basic component node in the compose page; according to the location information, get the enumeration type corresponding to the chat data; according to the enumeration type corresponding to the chat data, determine the user's reception and sending.

[0074] In this embodiment, the position coordinates of the UI basic component node are used to calculate the position of the UI basic component node in the compose page, for example, on the left = receiving, on the right = sending

[0075] See also Figure 2According to a second aspect of the present invention, a device for analyzing Facebook chat data is provided, and the device for analyzing Facebook chat data comprises:

[0076] The page parsing module 10 is used to enable the auxiliary function under the Android system and obtain the Facebook compose page. The auxiliary function is used to monitor the changes of the Facebook compose interface;

[0077] The interface list acquisition module 20 is used to call a preset first function according to the compose page to recursively obtain the chat interface list information, where the first function is a function for searching for an element node containing a specific class name in the compose page;

[0078] A chat data acquisition module 30 is used to call a preset second function according to the chat interface list information, and loop through the information to obtain chat data. The second function is a function used to search for specific text or description in the chat interface list.

[0079] The receiving and sending data acquisition module 40 is used to determine the user's receiving and sending according to the chat data and the preset enumeration type.

[0080] In an optional implementation of the second aspect of the present invention, the chat data acquisition module 30 is also used to call a preset second function based on the chat interface list information, filter and obtain the class of the UI basic component node; obtain a class set of nodes based on the class of the UI basic component node; and obtain chat data through a loop traversal based on the class set of nodes.

[0081] In an optional implementation of the second aspect of the present invention, the chat data acquisition module 30 is further used to obtain the root node in the node class set and determine whether the root node has a non-empty content description; if not, recursively traverse the child nodes of the root node to determine whether the child nodes have a non-empty content description; if so, traverse and determine whether other nodes in the node class set and the child nodes of other nodes have non-empty content descriptions, until all nodes in the node class set are traversed; and obtain chat data based on the non-empty content description.

[0082] In an optional implementation of the second aspect of the present invention, the page parsing module 10 is also used to enable auxiliary functions under the Android system, and parse device page elements through API callback; based on the device page elements, determine whether the device page has changed; if so, determine whether the device page contains the Facebook package name; if so, obtain the Facebookcompose page.

[0083] In an optional implementation of the second aspect of the present invention, the interface list acquisition module 20 is also used to parse the compose layout according to the compose page, and form an XML file according to the compose layout; create a view hierarchy according to the XML file; call a preset first function according to the view hierarchy, and recursively obtain the chat interface list information.

[0084] In an optional implementation of the second aspect of the present invention, the interface list acquisition module 20 is also used to call a preset first function according to the view hierarchy to match the class name of the node in the compose page; according to the class name of the node in the matched compose page, recursively traverse all child nodes of the matching node to obtain the chat interface list information.

[0085] In an optional implementation of the second aspect of the present invention, the sending and receiving data acquisition module 40 is also used to obtain the location information of the UI basic component node in the compose page; according to the location information, the enumeration type corresponding to the chat data is obtained; according to the enumeration type corresponding to the chat data, the user's reception and sending are judged.

[0086] Figure 3 is a schematic diagram of the structure of a Facebook chat data parsing device provided by an embodiment of the present invention. The Facebook chat data parsing device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 may be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the Facebook chat data parsing device 500. Furthermore, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the Facebook chat data parsing device 500.

[0087] The Facebook chat data parsing device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 3The structure of the Facebook chat data parsing device shown does not constitute a limitation on the Facebook chat data parsing device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0088] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the Facebook chat data parsing method.

[0089] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0090] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0091] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A Facebook chat data parsing method, characterized in that: The Facebook chat data parsing method comprises: Enable the auxiliary function under the Android system and obtain the Facebookcompose page. The auxiliary function is used to monitor the changes of the Facebookcompose interface; According to the compose page, a preset first function is called to recursively obtain chat interface list information, wherein the first function is a function for searching for an element node containing a specific class name in the compose page; According to the chat interface list information, calling a preset second function, looping through and obtaining chat data, wherein the second function is a function for searching for specific text or description in the chat interface list; The user's receiving and sending are determined according to the chat data and the preset enumeration type.

2. The Facebook chat data parsing method according to claim 1, characterized in that: The calling of a preset second function according to the chat interface list information and looping through the chat data comprises: According to the chat interface list information, a preset second function is called to filter and obtain the class of the UI basic component node; According to the class of the UI basic component node, a class set of nodes is obtained; According to the class set of the node, the chat data is obtained by looping through.

3. The Facebook chat data parsing method according to claim 2, characterized in that: The step of obtaining chat data by looping through the class set of the node includes: Obtaining a root node in the class set of the node, and determining whether the root node has a non-empty content description; If not, recursively traverse the child nodes of the root node to determine whether the child nodes have a non-empty content description; If so, traverse and determine whether other nodes in the class set of the node and the child nodes of the other nodes have non-empty content descriptions until all nodes in the class set of the node are traversed; According to the non-empty content description, chat data is obtained.

4. The Facebook chat data parsing method according to claim 1, characterized in that: The method of enabling auxiliary functions under the Android system and obtaining the Facebookcompose page includes: Enable the auxiliary function under the Android system and parse the device page elements through API callback; According to the device page element, determining whether the device page has changed; If yes, determining whether the device page contains the package name of Facebook; If yes, then get the Facebookcompose page.

5. The Facebook chat data parsing method according to claim 1, characterized in that: The calling of the preset first function according to the compose page to recursively obtain the chat interface list information includes: According to the compose page, parse the compose layout, and form an xml file according to the compose layout; Create a view hierarchy according to the XML file; According to the view hierarchy, a preset first function is called to recursively obtain chat interface list information.

6. The Facebook chat data parsing method according to claim 5, characterized in that: The calling of a preset first function according to the view hierarchy to recursively obtain chat interface list information includes: According to the view hierarchy, calling a preset first function to match the class name of the node in the compose page; According to the class name of the node in the matched compose page, recursively traverse all child nodes of the matched node to obtain the chat interface list information.

7. The Facebook chat data parsing method according to claim 1, characterized in that: The determining of the user's receiving and sending according to the chat data and the preset enumeration type includes: Get the location information of the UI basic component node in the compose page; According to the location information, obtaining an enumeration type corresponding to the chat data; The user's reception and sending are determined according to the enumeration type corresponding to the chat data.

8. A Facebook chat data parsing device, characterized in that: The Facebook chat data parsing device comprises: The page parsing module is used to enable the auxiliary function under the Android system and obtain the Facebookcompose page. The auxiliary function is used to monitor the changes of the Facebookcompose interface; An interface list acquisition module is used to call a preset first function according to the compose page to recursively obtain chat interface list information, wherein the first function is a function for searching for an element node containing a specific class name in the compose page; A chat data acquisition module, used to call a preset second function according to the chat interface list information, and loop through the information to obtain chat data, wherein the second function is a function used to search for specific text or description in the chat interface list; The receiving and sending data acquisition module is used to determine the user's receiving and sending according to the chat data and the preset enumeration type.

9. A device for analyzing Facebook chat data, characterized in that: The Facebook chat data parsing device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the Facebook chat data parsing device to execute the Facebook chat data parsing method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the Facebook chat data parsing method according to any one of claims 1 to 7 is implemented.