Account data recovery method and device
By analyzing the account retrieval request sent by the terminal, calling the target interface for data collection, the problem that cannot meet the personalized needs of enterprises in the existing technology is solved, and personalized data retrieval and report generation for multiple media platforms is realized.
Patent Information
- Application Number
- CN202411836734.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-01-14
AI Technical Summary
The existing technology cannot meet the personalized needs of enterprises for historical data collection, and the solidified program collection method cannot meet the diversified needs.
By obtaining the account retrieval request sent by the terminal, analyzing the media platform, account and retrieval method information in the request, presenting the media platform selection components, generating configuration information, calling the target interface for data collection, and supporting the integration and personalized configuration of multiple media platforms .
It realizes personalized collection of content on different media platforms, meets the diversified needs of enterprises, and provides flexible data collection and report generation capabilities.
Smart Images

Figure CN119316310A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an account data recovery method and device. Background Art
[0002] In the related art, the retrieval of historical data usually needs to be performed through a fixed program according to fixed rules. However, as enterprises have an increasing demand for personalized retrieved data, the method of retrieving data through a fixed program cannot meet the diverse retrieval needs of enterprises. Summary of the invention
[0003] The main purpose of the present invention is to provide a data processing method and device to solve the deficiencies existing in the related art.
[0004] In order to achieve the above-mentioned purpose, according to the first aspect of the present invention, there is provided an account data retrieval method, comprising: obtaining an account retrieval request sent by a terminal, parsing the request, obtaining the request indicating a specified media platform, an account of the specified media platform, and retrieval method information, wherein a terminal web page presents a plurality of media platform selection components, and when any media platform selection component is triggered, a retrieval configuration page for any media platform is presented on the terminal; detecting configuration information obtained by the configuration operation in the retrieval configuration page, and generating the account retrieval request based on the configuration information; calling a target interface that matches the information obtained by the parsing; and collecting data under the specified media platform account from the specified media platform through the target interface according to the retrieval method information.
[0005] Optionally, the method further includes: in response to obtaining a request to export a report, generating a report for the designated media platform account based on the collected data; and feeding back the report to the terminal.
[0006] Optionally, the collected data includes content links obtained by retrieving content under the designated media platform account according to the retrieval method information; the collected data includes traffic data corresponding to each content obtained by retrieving different content under the designated media platform account according to the retrieval method information.
[0007] Optionally, calling a target interface that matches the parsed information includes: calling a preset integration middleware so that the integration middleware obtains the parsed information and determines a target interface of a designated media platform corresponding to the parsed information based on the parsed information; generating a request recognizable by the target interface; and transmitting the request to the target interface of the designated media platform through the integration middleware.
[0008] Optionally, generating a report of the designated media platform account based on the collected data includes: generating a report of the designated media platform account based on a pre-configured field mapping relationship.
[0009] Optionally, the mining method information includes: mining time information.
[0010] According to a second aspect of the present invention, there is provided an account data retrieval device, comprising: a parsing unit, for acquiring an account retrieval request sent by a terminal, parsing the request to obtain information indicating a specified media platform, an account of the specified media platform, and retrieval method information, wherein a terminal web page presents a plurality of media platform selection components, and when any media platform selection component is triggered, a retrieval configuration page for any media platform is presented on the terminal; configuration information obtained by a configuration operation is detected in the retrieval configuration page, and the account retrieval request is generated based on the configuration information; a calling unit, for calling a target interface that matches the information obtained by the parsing; and a data collection unit, for collecting data under the specified media platform account from the specified media platform through the target interface according to the retrieval method information.
[0011] According to a third aspect of the present invention, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions are used to cause the computer to execute any one of the methods described in the first aspect.
[0012] According to a fourth aspect of the present invention, there is provided an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the method described in any one implementation of the first aspect.
[0013] The present embodiment provides a method and device for retrieving account data, wherein the method obtains an account retrieval request sent by a terminal, parses the request, and obtains the request indicating a specified media platform, an account of the specified media platform, and retrieval method information, wherein the terminal web page presents multiple media platform selection components, and when any media platform selection component is triggered, a retrieval configuration page for any media platform is presented on the terminal; configuration information obtained by configuration operation is detected in the retrieval configuration page, and the account retrieval request is generated based on the configuration information; a target interface that matches the parsed information is called; and data under the specified media platform account is collected from the specified media platform through the target interface according to the retrieval method information. By integrating multiple media platforms and allowing users to configure the method of retrieving data on demand in a visually configured manner, the content of different media platforms can be retrieved in a personalized manner. This solves the defect in the related technology that enterprises cannot retrieve data in a personalized manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1 is a flow chart of the account data recovery method according to an embodiment of the present invention; Figure 2 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0018] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0019] According to an embodiment of the present invention, a method for retrieving account data is provided, such as Figure 1 As shown, it includes the following steps 101 to 103: Step 101: Obtain an account retrieval request sent by a terminal, parse the request, and obtain information indicating a specified media platform, an account of the specified media platform, and a retrieval method, wherein a terminal web page presents a plurality of media platform selection components. When any media platform selection component is triggered, a retrieval configuration page for any media platform is presented on the terminal; configuration information obtained by the configuration operation is detected on the retrieval configuration page, and the account retrieval request is generated based on the configuration information.
[0020] In this step, a web page for configuring the retrieving information is presented in the terminal web page, and components of multiple media platforms are provided in the web page. When any component is selected, a configuration area of any media platform can be presented. In the configuration area, the user can enter the account information belonging to the media platform and further configure the retrieving method information for the account information. When the configuration is completed, a request can be generated based on the configuration information.
[0021] As an optional implementation of this embodiment, the mining method information includes mining time information.
[0022] The retrieval time information can be used to retrieve the content published under the account of the specified media platform at that retrieval time.
[0023] Step 102: Call the target interface that matches the parsed information.
[0024] In this step, interfaces are pre-integrated with multiple media platforms to facilitate data collection from different media platforms.
[0025] As an optional implementation method of this embodiment, calling the target interface that matches the parsed information includes: calling a preset integration middleware so that the integration middleware obtains the parsed information and determines the target interface of the designated media platform corresponding to it based on the parsed information; generating a request that is recognizable by the target interface; and transmitting the request to the target interface of the designated media platform through the integration middleware.
[0026] In this optional implementation, when integrating interfaces, the integration can be performed directly according to the interface specification, but this method does not have a good effect on the hot plugging of media platforms. Therefore, in this embodiment, an integrated middleware is set, and the integrated middleware includes two types of interfaces, one is a first interface connected to the web page, and the other is a second interface connected to the media platform. The number of the second interfaces is determined according to the number of media platforms.
[0027] Furthermore, information can be obtained through analysis through the first interface, and the interface information of the specified media platform can be determined based on the specified media platform information in the information; then, a request recognizable to the interface of the specified media platform can be generated through the integrated middleware using the analyzed information, and the recognizable request can be sent to the interface of the specified media platform through the second interface.
[0028] By designing an integrated middleware, different media platforms can be added to the integrated middleware at any time, and media platforms integrated into the middleware can be removed at any time. Adding or removing will not affect the operation of the web page, and there is no need to make code-level improvements to the web page.
[0029] Through the above optional implementation method, by integrating multiple media platforms, it is possible to retrieve data from different accounts in different media platforms on one web page.
[0030] Step 103: Collect data under the designated media platform account from the designated media platform through the target interface according to the collection method information.
[0031] In this step, when the designated media platform receives the retrieval request through the target interface, the request is parsed to obtain the account information to be retrieved, i.e., the account of the aforementioned designated media platform. Based on the account information, the published content that matches the publishing time and the retrieval time information under the account information is determined from the database, and the published content is sent to the integration middleware through the target interface.
[0032] After the integrated middleware retrieves the content published under the account of the specified media, it standardizes the published content and automatically creates a collection task for each content under the account to be retrieved. Each collection task has a unique ID and the creation time of the task. The same media platform can accept the collection of content under multiple accounts at the same time, but the collection is carried out according to the time when the task was created. During the collection process, the integrated middleware obtains the collection progress in real time through the second interface, and associates the progress information with the created task. Each collection task is provided to the terminal web page and displayed in the format specified by the web page. When displayed, the task ID, the creation time of the task, the identification information of the account, and the number of content pieces collected under the account, such as the number of articles, are displayed.
[0033] As an optional implementation method of this embodiment, the collected data includes content links obtained by retrieving content under the designated media platform account according to the retrieval method information; the collected data includes traffic data corresponding to each content obtained by retrieving different content under the designated media platform account according to the retrieval method information.
[0034] In this optional implementation, the user enters a designated account through a web page, and the server collects data through integrated middleware, while collecting different content, it also collects content traffic data, including the number of likes and readings, etc.
[0035] As an optional implementation of this embodiment, in response to obtaining a request to export a report, a report of the designated media platform account is generated based on the collected data; and the report is fed back to the terminal.
[0036] As an optional implementation method of this embodiment, generating a report of the designated media platform account based on the collected data includes: generating a report of the designated media platform account based on a pre-configured field mapping relationship.
[0037] In the above optional implementation, the collected data includes the URL links of each content published under the account within the collection time, and the traffic data corresponding to each content, and the traffic data includes the number of likes and the number of readings.
[0038] The user can select any collection task on the web page to trigger the report export component, and thus generate a report export request. The server generates reports based on the collected content corresponding to the task. Specifically, two reports can be generated. One is the link to all content under the account within the collection time; the other is the traffic data of each different content within the collection time under the account. When generating a report, the collected content corresponds to the position of different report titles based on the pre-configured field mapping relationship.
[0039] This embodiment integrates different media platforms and collects the content published by different media platforms in a personalized manner according to the configuration.
[0040] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0041] According to an embodiment of the present invention, there is also provided an account data retrieval device, comprising a parsing unit, for acquiring an account retrieval request sent by a terminal, parsing the request, and obtaining information indicating a specified media platform, an account of the specified media platform, and a retrieval method, wherein a terminal web page presents a plurality of media platform selection components, and when any media platform selection component is triggered, a retrieval configuration page for any media platform is presented on the terminal; configuration information obtained by a configuration operation is detected in the retrieval configuration page, and the account retrieval request is generated based on the configuration information; a calling unit, for calling a target interface that matches the information obtained by the parsing; and a data collection unit, for collecting data under the specified media platform account from the specified media platform through the target interface according to the retrieval method information.
[0042] As an optional implementation manner of this embodiment, the method further includes: in response to obtaining a request to export a report, generating a report of the designated media platform account based on the collected data; and feeding back the report to the terminal.
[0043] As an optional implementation method of this embodiment, the collected data includes content links obtained by retrieving content under the designated media platform account according to the retrieval method information; the collected data includes traffic data corresponding to each content obtained by retrieving different content under the designated media platform account according to the retrieval method information.
[0044] As an optional implementation method of this embodiment, calling the target interface that matches the parsed information includes: calling a preset integration middleware so that the integration middleware obtains the parsed information and determines the target interface of the designated media platform corresponding to it based on the parsed information; generating a request that is recognizable by the target interface; and transmitting the request to the target interface of the designated media platform through the integration middleware.
[0045] As an optional implementation method of this embodiment, generating a report of the designated media platform account based on the collected data includes: generating a report of the designated media platform account based on a pre-configured field mapping relationship.
[0046] As an optional implementation of this embodiment, the mining method information includes: mining time information.
[0047] According to an embodiment of the present invention, the present invention also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the method described in any of the above embodiments when executing.
[0048] According to an embodiment of the present invention, the present invention further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the method described in any of the above embodiments when executed.
[0049] According to an embodiment of the present invention, the present invention further provides a computer program product, which can implement the method described in any of the above embodiments when executed by a processor.
[0050] Figure 2 A schematic block diagram of an example electronic device 300 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices.
[0051] like Figure 2 As shown, the electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 302 or a computer program loaded from a storage unit 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0052] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0053] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as the object matching method. For example, in some embodiments, the object matching method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method described above may be performed.
[0054] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0055] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0056] In the context of the present invention, 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, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, 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.
Claims
1. A method for retrieving account data, characterized in that: include: Acquire an account recovery request sent by a terminal, parse the request, and obtain information indicating a specified media platform, an account of the specified media platform, and a recovery method, wherein a terminal web page presents a plurality of media platform selection components, and when any media platform selection component is triggered, a recovery configuration page for any media platform is presented on the terminal; detect configuration information obtained by the configuration operation in the recovery configuration page, and generate the account recovery request based on the configuration information; Call the target interface that matches the parsed information; The data under the designated media platform account is collected from the designated media platform through the target interface according to the collection method information.
2. The account data recovery method according to claim 1, characterized in that: The method also includes: In response to obtaining a request to export a report, generating a report of the account of the specified media platform based on the collected data; The report is fed back to the terminal.
3. The account data recovery method according to claim 1, characterized in that: The collected data includes content links obtained by retrieving content under the designated media platform account according to the retrieving method information; And / or, the collected data includes traffic data corresponding to each content obtained by retrieving different contents under the designated media platform account according to the retrieving method information.
4. The account data recovery method according to claim 1, characterized in that: The target interfaces that match the parsed information include: Calling a preset integration middleware so that the integration middleware obtains the parsed information and determines a target interface of a designated media platform corresponding to the parsed information based on the parsed information; generating a request recognizable by the target interface; The request is transmitted to the target interface of the designated media platform through the integration middleware.
5. The account data recovery method according to claim 2, characterized in that: Generating a report of the designated media platform account based on the collected data includes: generating a report of the designated media platform account based on a pre-configured field mapping relationship.
6. The account data recovery method according to claim 1, characterized in that: The mining method information includes: mining time information.
7. An account data recovery device, characterized in that: include: A parsing unit is used to obtain an account recovery request sent by a terminal, parse the request, and obtain information indicating a specified media platform, an account of the specified media platform, and a recovery method, wherein a terminal web page presents a plurality of media platform selection components, and when any media platform selection component is triggered, a recovery configuration page for any media platform is presented on the terminal; configuration information obtained by the configuration operation is detected in the recovery configuration page, and the account recovery request is generated based on the configuration information; A calling unit, used to call a target interface that matches the parsed information; The data collection unit is used to collect data under the designated media platform account from the designated media platform according to the collection method information through the target interface.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the method described in any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data acquisition method, acquisition system, equipment and medium
CN114356176A
Data acquisition method and device, electronic equipment and storage medium
CN116360951A
Echo processing circuit and audio device
CN214799867U
The method of resource sharing in a home network system with unification middleware
KR100571520B1