CN110262856B - Application program data acquisition method, device, terminal and storage medium - Google Patents

Application program data acquisition method, device, terminal and storage medium Download PDF

Info

Publication number
CN110262856B
CN110262856B CN201910515412.1A CN201910515412A CN110262856B CN 110262856 B CN110262856 B CN 110262856B CN 201910515412 A CN201910515412 A CN 201910515412A CN 110262856 B CN110262856 B CN 110262856B
Authority
CN
China
Prior art keywords
preset
data
data acquisition
type
application program
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
CN201910515412.1A
Other languages
Chinese (zh)
Other versions
CN110262856A (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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN201910515412.1A priority Critical patent/CN110262856B/en
Publication of CN110262856A publication Critical patent/CN110262856A/en
Application granted granted Critical
Publication of CN110262856B publication Critical patent/CN110262856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Abstract

The embodiment of the invention discloses a method, a device, a terminal and a storage medium for acquiring application program data, wherein the method comprises the following steps: determining whether a preset scene type of the current program operation is triggered; and if the preset scene type is triggered, acquiring the data of the preset scene type according to a preset data acquisition configuration parameter. According to the embodiment of the invention, the scene types applied by the application program are classified, the data types under each scene type are classified, and the data acquisition amount of various data types is controlled, so that the visual control of the application program data acquisition scene is realized, the differentiated management of the data types and the dynamic management of the data access amount are realized, and the configurability of data acquisition is realized.

Description

Application program data acquisition method, device, terminal and storage medium
Technical Field
The embodiment of the invention relates to a data processing technology, in particular to an application program data acquisition method, an application program data acquisition device, a terminal and a storage medium.
Background
With the development of mobile internet technology, a large number of users use application programs every day, and the development and improvement of the application programs are facilitated by collecting and analyzing data generated by the users in the process of using the application programs, so that the business development is promoted.
The existing data acquisition method is usually to directly embed points, namely, directly acquire data and upload the data to a server when a scene of the data is needed or new data is generated. However, the data acquisition scene and the data type cannot be controlled in a distinguishing way by the acquisition mode, the data acquisition amount cannot be controlled, and if the corresponding logic is to be modified, a new version of application program needs to be released to cover an old version, so that the time consumption is long.
Disclosure of Invention
The embodiment of the invention provides an application program data acquisition method, an application program data acquisition device, a terminal and a storage medium, so as to realize dynamic management and configurability of application program data acquisition.
In a first aspect, an embodiment of the present invention provides an application data collection method, including:
determining whether a preset scene type of the current application program is triggered;
and if the preset scene type is triggered, acquiring the data of the preset scene type according to a preset data acquisition configuration parameter.
Optionally, before determining whether the preset scene type of the current application program is triggered, the method includes:
confirming the identity information of the current application program;
acquiring the preset data acquisition configuration parameters according to the identity information of the current application program, wherein the preset data acquisition configuration parameters are used for setting the acquisition quantity of different data types in a preset scene type.
Further, the obtaining the preset data acquisition configuration parameter according to the identity information of the current application program includes:
acquiring a preset data type of the preset scene type according to the identity information of the current application program;
and confirming the corresponding preset data access amount according to the preset data type.
Further, if the preset scene type is triggered, acquiring the data of the preset scene type according to the preset data acquisition configuration parameter includes:
if the preset scene type is triggered, determining whether the current data type of the current scene type operated by the application program is the preset data type;
and if the current data type is the preset data type, carrying out data acquisition on the current data type according to the preset data access amount.
Further, the preset data acquisition configuration parameters further include a data packing rule, and if the preset scene type is triggered, after acquiring the data of the preset scene type according to the preset data acquisition configuration parameters, the method includes:
forming a data packet of the data acquired by the current scene type according to the data packing rule;
and encrypting the data packet and uploading the data packet to a server.
Optionally, the preset scene types include: a start scene, a login scene, a search scene, and a shopping scene.
Optionally, the preset data types include: account information, network information, and page information.
In a second aspect, an embodiment of the present invention provides an application data acquisition apparatus, including:
the preset scene type triggering module is used for determining whether the preset scene type of the current application program operation is triggered or not;
the data acquisition module is used for acquiring the data of the preset scene type according to the preset data acquisition configuration parameters if the preset scene type is triggered.
In a third aspect, an embodiment of the present invention further provides a terminal, including:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the application data collection method provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the application data collection method provided by any of the embodiments of the present invention.
According to the embodiment of the invention, the scene type applied by the application program is firstly confirmed, and then the data acquisition is carried out on the application program according to the preset data acquisition configuration parameters corresponding to the scene type, so that the dynamic management and the configurability of the data acquisition scene type and the data acquisition amount of the application program are realized.
Drawings
FIG. 1 is a flowchart of a method for collecting application data according to a first embodiment of the present invention;
fig. 2 is a flowchart of an application data collection method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a method for collecting application data according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application data acquisition device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of an application data collection method according to a first embodiment of the present invention, where the method may be applied to collection of application data, and the method may be performed by an application data collection device, where the device may be implemented in software and/or hardware, and may be integrated on a terminal, for example, a smart phone, a tablet computer, a Personal Computer (PC), a learning machine, and the like.
As shown in fig. 1, the application data collection method provided in this embodiment may include:
s110, determining whether a preset scene type of the current application program is triggered.
Specifically, an Application (APP) refers to a computer program that, when running in user mode, may interact with a user, such as a WeChat, to perform a particular task or tasks. When the application program runs, specific scenes can appear, certain information is displayed for a user or certain interactive operations are carried out for the user, data generated by the scenes need to be collected so as to repair possible defects of the application program or improve user experience, trigger points are preset at scene types needing to be subjected to data collection, and when the trigger points are triggered, the data of the scene types can be collected according to a follow-up data collection mode. Preset scene types include, but are not limited to: a start scene, a login scene, a search scene, and a shopping scene.
For example, when an application program WeChat is running, scene types that may occur include, but are not limited to: the method comprises the steps of setting trigger points at a starting scene, a login scene and a chat scene in advance, triggering the trigger points when a WeChat runs to the starting scene and the login scene, and acquiring data of the starting scene and the login scene according to a follow-up data acquisition mode.
And S120, if the preset scene type is triggered, acquiring the data of the preset scene type according to a preset data acquisition configuration parameter.
Specifically, when the preset scene type is triggered, the application program is indicated to be operated to the scene type needing data acquisition, and at the moment, the data of the scene type needing data acquisition are acquired according to the preset data acquisition configuration parameters. The preset acquisition configuration parameters comprise a plurality of preset data types under the preset scene types and preset data access amounts corresponding to the preset data types to be acquired. The preset data types are classifications of data generated by preset scene types, and the same type of data is classified into the same data type. The preset data access amount is the amount of a certain data type to be acquired, which is smaller than or equal to the actually generated data access amount, and specifically can be the preset byte number of data acquisition or the preset stripe number of data acquisition. For example, the data types in the logon scenario of WeChat include, but are not limited to: the preset data acquisition configuration parameters for acquiring the data of the WeChat login scene can be: the preset byte number of the account information is as follows: 256Kb; the preset number of the password information is as follows: 10 strips.
According to the embodiment of the invention, firstly, the scene type applied by the application program is confirmed, then the application program is subjected to data acquisition according to the preset data acquisition configuration parameters corresponding to the scene type, so that the dynamic management and configurability of the data acquisition of the application program are realized, the data acquisition scene type is subjected to carding definition, the control can be more intuitively performed, and the time period for updating the data acquisition program is reduced.
Example two
Fig. 2 is a flowchart of an application data collection method according to a second embodiment of the present invention, where the embodiment is further optimized based on the above technical solution. As shown in fig. 2, the method specifically includes:
s210, confirming the identity information of the current application program.
Specifically, the identity information of the current application program refers to the type of the current application program, for example, the current application program is a WeChat, a music player, a video player or a browser, etc., the scene types of the application programs are different, the data types are different, and the subsequent data acquisition flow can be performed only by determining the identity information of the application program.
S220, acquiring preset data acquisition configuration parameters according to the identity information of the current application program, wherein the preset data acquisition configuration parameters are used for setting the acquisition quantity of different data types in the preset scene types.
Specifically, preset data acquisition configuration parameters are required to be acquired according to the identity information of the application program so as to obtain the data to be acquired. Different types of application programs have different functions, so that the data to be collected are different, and the corresponding preset data collection configuration parameters are different. For example, if the current application is a WeChat, the preset data acquisition configuration parameters for data acquisition of each scene type of the WeChat should be obtained, and if the current application is a music player, the preset data acquisition configuration parameters for data acquisition of each scene type of the music player should be obtained.
Wherein, each scene type is correspondingly provided with a preset data acquisition configuration parameter. The preset data acquisition configuration parameters are stored in a server background, and when an application program is started each time, the latest preset data acquisition configuration parameters are acquired from the server background for updating and storing. When the requirement of data acquisition is changed, the preset data acquisition configuration parameters, such as the preset data types or the preset data access amounts, can be directly modified, and the whole update of the application program is not needed.
S230, determining whether a preset scene type of the current application program is triggered.
Specifically, when an application program runs, specific scenes appear, certain information is displayed for a user or the user performs certain interactive operations, data generated by the scenes need to be collected so as to repair possible defects of the application program or improve user experience, trigger points are set in advance at scene types needing to be subjected to data collection, and when the trigger points are triggered, the data of the scene types can be collected according to a subsequent data collection mode. Preset scene types include, but are not limited to: a start scene, a login scene, a search scene, and a shopping scene.
For example, when an application program WeChat is running, scene types that may occur include, but are not limited to: the method comprises the steps of setting trigger points at a starting scene, a login scene and a chat scene in advance, triggering the trigger points when a WeChat runs to the starting scene and the login scene, and acquiring data of the starting scene and the login scene according to a follow-up data acquisition mode.
S240, if the preset scene type is triggered, acquiring the data of the preset scene type according to the preset data acquisition configuration parameters.
Specifically, when the preset scene type is triggered, the application program is indicated to be operated to the scene type needing data acquisition, and at the moment, the data of the scene type needing data acquisition are acquired according to the preset data acquisition configuration parameters. The preset acquisition configuration parameters comprise a plurality of preset data types under the preset scene types and preset data access amounts corresponding to the preset data types to be acquired. The preset data types are classifications of data generated by preset scene types, and the same type of data is classified into the same data type. The preset data access amount is the amount of a certain data type to be acquired, which is smaller than the actually generated data access amount, and specifically can be the preset byte number of data acquisition or the preset stripe number of data acquisition. For example, the data types in the logon scenario of WeChat include, but are not limited to: the preset data acquisition configuration parameters for acquiring the data of the WeChat login scene can be: the preset byte number of the account information is as follows: 256Kb; the preset number of the password information is as follows: 10 strips.
S250, the preset data acquisition configuration parameters further comprise data packaging rules, and data packets of the data acquired by the current scene type are formed according to the data packaging rules.
Specifically, the preset data acquisition configuration parameters further include a data packing rule, where the data packing rule includes: and packaging all data collected under the same scene type into a data packet. Multiple data types may be generated in one scene type, for example, the data types generated in a login scene are: and after all data are acquired according to the preset data acquisition configuration parameters, the data are packed into a data packet, so that the subsequent uploading is convenient.
Alternatively, when the amount of data collected is small, in order to save flow steps, all data collected under multiple scene types may be packaged into one data packet, or data of the same data type collected under different scene types may be packaged into one data packet.
S260, encrypting the data packet and uploading the encrypted data packet to a server.
Specifically, in order to ensure data security, the packaged data packet may be encrypted first and then uploaded to the server.
Optionally, the data packet may be directly uploaded to the server without being encrypted under the condition that the data leakage is not caused.
According to the embodiment of the invention, the preset data acquisition configuration parameters are obtained according to the identity information of the application program, the acquired data are formed into the data packet, and the data packet is encrypted and then uploaded to the server, so that the data after data acquisition can be conveniently uploaded, and the safety of data acquisition is improved.
Example III
Fig. 3 is a flowchart of an application data collection method according to a third embodiment of the present invention, where the embodiment is further refined based on the above technical solution. As shown in fig. 3, the method specifically includes:
s310, confirming the identity information of the current application program.
Specifically, the identity information of the current application program refers to the type of the current application program, for example, the current application program is a WeChat, a music player, a video player or a browser, etc., the scene types of the application programs are different, the data types are different, and the subsequent data acquisition flow can be performed only by determining the identity information of the application program.
S320, acquiring a preset data type of a preset scene type according to the identity information of the current application program.
Specifically, under one scene type of the application program, multiple data types can be generated, wherein some data types need to be subjected to data acquisition, and some data types do not need to be subjected to data acquisition, so that only preset data types needing to be subjected to data acquisition are required to be acquired. For example, when the WeChat is running, the data types in the login scene include but are not limited to: the account information and the password information are the acquired preset data acquisition types; when a music player is running, the data types in the music playing scene include, but are not limited to: and the page information and the network information are the acquired preset data acquisition types.
S330, confirming the corresponding preset data access amount according to the preset data type.
Specifically, the data access amounts required to be acquired by different data types are different, each data type has a corresponding data access amount, and after the preset data type required to be acquired, the corresponding preset data access amount can be acquired. For example, the preset byte number of the account information in the WeChat runtime login scene is 256Kb, and the preset number of the password information is 10.
S340, determining whether a preset scene type of the current application program is triggered.
Specifically, when an application program runs, specific scenes appear, certain information is displayed for a user or the user performs certain interactive operations, data generated by the scenes need to be collected so as to repair possible defects of the application program or improve user experience, trigger points are set in advance at scene types needing to be subjected to data collection, and when the trigger points are triggered, the data of the scene types can be collected according to a subsequent data collection mode. Preset scene types include, but are not limited to: a start scene, a login scene, a search scene, and a shopping scene.
For example, when an application program WeChat is running, scene types that may occur include, but are not limited to: the method comprises the steps of setting trigger points at a starting scene, a login scene and a chat scene in advance, triggering the trigger points when a WeChat runs to the starting scene and the login scene, and acquiring data of the starting scene and the login scene according to a follow-up data acquisition mode.
S350, if the preset scene type is triggered, determining whether the current data type of the current scene type operated by the application program is the preset data type.
Specifically, when the application program runs, multiple data types are generated, but not all the data types need to be acquired, and whether the data type generated by the current scene type of the application program running is the preset data type in the preset data acquisition configuration parameters needs to be judged, so that the data can be acquired. For example, when the WeChat is running, the data types in the login scene include but are not limited to: the method comprises the steps of acquiring account information, password information and verification code information, wherein preset data types are the account information and the password information, acquiring data only when the current data type is the account information or the password information, and not acquiring data when the current data type is the verification code information.
And S360, if the current data type is the preset data type, carrying out data acquisition on the current data type according to the preset data access amount.
Specifically, different preset data types have different preset data access amounts, when the current data type is determined to be the preset data type, data acquisition is performed according to the corresponding preset data access amount, and all the data access amounts of the preset data type are not acquired. For example, the preset byte number of the account information in the WeChat running login scene is 256Kb, the preset byte number of the password information is 10, if the account information actually generates 512Kb and the password information actually generates 20 pieces when the current application program runs, the data acquisition is performed only according to the preset data access amount, and the redundant account information and password information are not acquired.
According to the third embodiment of the invention, the preset data type of the preset scene type is obtained according to the identity information of the application program, the corresponding preset data access amount is confirmed according to the preset data type, whether the current data type is the preset data type needing data acquisition is judged first, and then the data acquisition is carried out according to the preset data access amount, so that the type distinguishing management of the data is realized, the size of the data packet is limited by the setting of the preset data access amount, the load of a service end is conveniently balanced, and the data acquisition pressure under the condition of rapidly rising the data of a sales promotion and the like is reduced.
Example IV
Fig. 4 is a schematic structural diagram of an application data collection device according to a fourth embodiment of the present invention, where the embodiment is applicable to data collection of an application. The device may be implemented in software and/or hardware and may be integrated on a terminal, such as a smart phone, a tablet computer, a Personal Computer (PC), a learning machine, etc. The application program data acquisition device provided by the embodiment of the invention can execute the application program data acquisition method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Details of the fourth embodiment of the present invention may be referred to in any of the method embodiments of the present invention.
As shown in fig. 4, an application data acquisition device 400 provided in a fourth embodiment of the present invention includes a preset scene type triggering module 410 and a data acquisition module 420, where:
a preset scene type triggering module 410, configured to determine whether a preset scene type of a current application running is triggered;
the data acquisition module 420 is configured to acquire data of the preset scene type according to a preset data acquisition configuration parameter if the preset scene type is triggered.
Optionally, the application data acquisition device 400 further includes:
the identity information confirming module is used for confirming the identity information of the current application program;
the preset data acquisition configuration parameter acquisition module is used for acquiring the preset data acquisition configuration parameters according to the identity information of the current application program, and the preset data acquisition configuration parameters are used for setting the acquisition quantity of different data types in a preset scene type;
further, the preset data acquisition configuration parameter acquisition module is specifically configured to:
acquiring a preset data type of the preset scene type according to the identity information of the current application program;
and confirming the corresponding preset data access amount according to the preset data type.
Further, the data acquisition module 420 is specifically configured to:
if the preset scene type is triggered, determining whether the current data type of the current scene type operated by the application program is the preset data type;
and if the current data type is the preset data type, carrying out data acquisition on the current data type according to the preset data access amount.
Optionally, the preset data collection configuration parameters further include a data packing rule, and the application data collection device 400 further includes:
the data packaging module is used for forming a data packet of the data acquired by the current scene type according to the data packaging rule;
and encrypting the data packet and uploading the data packet to a server.
According to the embodiment of the invention, the scene type applied by the application program is confirmed by firstly setting the preset scene triggering confirmation module, and the data acquisition module is set to acquire the data of the application program according to the preset data acquisition configuration parameters corresponding to the scene type, so that the dynamic management and configurability of the data acquisition of the application program are realized, the data acquisition scene type is subjected to carding definition, the control can be more intuitively performed, and the time period for updating the data acquisition program is reduced.
Example five
Fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention. Fig. 5 illustrates a block diagram of an exemplary terminal 512 suitable for use in implementing embodiments of the invention. The terminal 512 shown in fig. 5 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 5, the terminal 512 is in the form of a general-purpose terminal. The components of terminal 512 may include, but are not limited to: one or more processors 516 (one processor is illustrated in fig. 5), a storage device 528, and a bus 518 connecting the various system components, including the storage device 528 and the processor 516.
Bus 518 represents one or more of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Subversive Alliance, ISA) bus, micro channel architecture (Micro Channel Architecture, MAC) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Terminal 512 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal 512 and includes both volatile and nonvolatile media, removable and non-removable media.
The storage 528 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 530 and/or cache memory 532. The terminal 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 534 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard disk drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable nonvolatile optical disk such as a Read Only Memory (CD-ROM), digital versatile disk (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media, may be provided. In such cases, each drive may be coupled to bus 518 through one or more data media interfaces. The storage 528 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 540 having a set (at least one) of program modules 542 may be stored in, for example, storage 528, such program modules 542 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 542 generally perform the functions and/or methods in the described embodiments of the invention.
The terminal 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing terminal, display 524, etc.), with one or more terminals that enable a user to interact with the terminal 512, and/or with any terminal (e.g., network card, modem, etc.) that enables the terminal 512 to communicate with one or more other computing terminals. Such communication may occur through an input/output (I/O) interface 522. Also, terminal 512 can communicate with one or more networks such as a local area network (Local Area Network, LAN), a wide area network (Wide Area Network, WAN), and/or a public network such as the internet via network adapter 520. As shown in fig. 5, network adapter 520 communicates with other modules of terminal 512 over bus 518. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with terminal 512, including, but not limited to: microcode, end drives, redundant processors, external disk drive arrays, disk array (Redundant Arrays of Independent Disks, RAID) systems, tape drives, data backup storage systems, and the like.
Processor 516 executes programs stored in storage 528 to perform various functional applications and data processing, such as implementing the application data collection method provided by any embodiment of the present invention, which may include:
determining whether a preset scene type of the current application program is triggered;
and if the preset scene type is triggered, acquiring the data of the preset scene type according to a preset data acquisition configuration parameter.
Example six
The sixth embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, where the program when executed by a processor implements the application data collection method according to any embodiment of the present invention, and the method may include:
determining whether a preset scene type of the current application program is triggered;
and if the preset scene type is triggered, acquiring the data of the preset scene type according to a preset data acquisition configuration parameter.
The computer-readable storage media provided by embodiments of the present invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (7)

1. An application data collection method, comprising:
confirming the identity information of the current application program;
acquiring preset data acquisition configuration parameters according to the identity information of the current application program, wherein the preset data acquisition configuration parameters are used for setting the acquisition quantity of different data types in preset scene types; when the application program is started, if the requirement of data acquisition is changed, modifying preset data acquisition configuration parameters, and acquiring and updating the latest preset data acquisition configuration parameters by the application program and storing the latest preset data acquisition configuration parameters;
determining whether a preset scene type of the current application program is triggered;
if the preset scene type is triggered, acquiring the data of the preset scene type according to the preset data acquisition configuration parameters;
the obtaining the preset data acquisition configuration parameters according to the identity information of the current application program comprises the following steps:
acquiring a preset data type of the preset scene type according to the identity information of the current application program;
confirming a corresponding preset data access amount according to the preset data type; wherein the preset data access amount comprises a preset byte number for data acquisition or a preset number for data acquisition;
wherein, if the preset scene type is triggered, acquiring the data of the preset scene type according to the preset data acquisition configuration parameter includes:
if the preset scene type is triggered, determining whether the current data type of the current scene type operated by the application program is the preset data type;
and if the current data type is the preset data type, carrying out data acquisition on the current data type according to the preset data access amount.
2. The method of claim 1, wherein the preset data collection configuration parameters further comprise a data packing rule, and wherein if the preset scene type is triggered, after collecting the data of the preset scene type according to the preset data collection configuration parameters, the method comprises:
forming a data packet of the data acquired by the current scene type according to the data packing rule;
and encrypting the data packet and uploading the data packet to a server.
3. The method of claim 1, wherein the preset scene type comprises: a start scene, a login scene, a search scene, and a shopping scene.
4. The method of claim 1, wherein the preset data type comprises: account information, network information, and page information.
5. An application data acquisition device, comprising:
the preset scene type triggering module is used for determining whether the preset scene type of the current application program operation is triggered or not;
the data acquisition module is used for acquiring the data of the preset scene type according to the preset data acquisition configuration parameters if the preset scene type is triggered;
the identity information confirming module is used for confirming the identity information of the current application program;
the preset data acquisition configuration parameter acquisition module is used for acquiring the preset data acquisition configuration parameters according to the identity information of the current application program, and the preset data acquisition configuration parameters are used for setting the acquisition quantity of different data types in a preset scene type; when the application program is started, if the requirement of data acquisition is changed, modifying preset data acquisition configuration parameters, and acquiring and updating the latest preset data acquisition configuration parameters by the application program and storing the latest preset data acquisition configuration parameters;
the preset data acquisition configuration parameter acquisition module is specifically configured to:
acquiring a preset data type of the preset scene type according to the identity information of the current application program;
confirming a corresponding preset data access amount according to the preset data type; wherein the preset data access amount comprises a preset byte number for data acquisition or a preset number for data acquisition;
the data acquisition module is specifically configured to:
if the preset scene type is triggered, determining whether the current data type of the current scene type operated by the application program is the preset data type;
and if the current data type is the preset data type, carrying out data acquisition on the current data type according to the preset data access amount.
6. A terminal, comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the application data collection method of any of claims 1-4.
7. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the application data acquisition method according to any one of claims 1-4.
CN201910515412.1A 2019-06-14 2019-06-14 Application program data acquisition method, device, terminal and storage medium Active CN110262856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910515412.1A CN110262856B (en) 2019-06-14 2019-06-14 Application program data acquisition method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910515412.1A CN110262856B (en) 2019-06-14 2019-06-14 Application program data acquisition method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110262856A CN110262856A (en) 2019-09-20
CN110262856B true CN110262856B (en) 2024-01-12

Family

ID=67918258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910515412.1A Active CN110262856B (en) 2019-06-14 2019-06-14 Application program data acquisition method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110262856B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935231A (en) * 2020-07-13 2020-11-13 支付宝(杭州)信息技术有限公司 Information processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108108286A (en) * 2018-01-03 2018-06-01 上海众人网络安全技术有限公司 Method of data capture and device, server, storage medium
CN109101601A (en) * 2018-08-01 2018-12-28 上海闻泰信息技术有限公司 Using recommended method, device, mobile terminal and storage medium
CN109313563A (en) * 2016-09-06 2019-02-05 华为技术有限公司 A kind of collecting method, apparatus and system
US20190130261A1 (en) * 2017-10-31 2019-05-02 International Business Machines Corporation Method and apparatus for combining independently evolved neural networks in a distributed environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109313563A (en) * 2016-09-06 2019-02-05 华为技术有限公司 A kind of collecting method, apparatus and system
US20190130261A1 (en) * 2017-10-31 2019-05-02 International Business Machines Corporation Method and apparatus for combining independently evolved neural networks in a distributed environment
CN108108286A (en) * 2018-01-03 2018-06-01 上海众人网络安全技术有限公司 Method of data capture and device, server, storage medium
CN109101601A (en) * 2018-08-01 2018-12-28 上海闻泰信息技术有限公司 Using recommended method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN110262856A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
US10554805B2 (en) Information processing method, terminal, and computer-readable storage medium
US20210256077A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
US20210326151A1 (en) Methods, devices and computer-readable storage media for processing a hosted application
CN111177113A (en) Data migration method and device, computer equipment and storage medium
US20230035104A1 (en) Verification method, apparatus and device, and storage medium
CN111026400A (en) Method and device for analyzing service data stream
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN107632751B (en) Information display method and device
CN113568626B (en) Dynamic packaging and application package opening method and device and electronic equipment
CN110673886B (en) Method and device for generating thermodynamic diagrams
CN113127050B (en) Application resource packaging process monitoring method, device, equipment and medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN110442819A (en) Data processing method, device, storage medium and terminal
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium
US9436669B1 (en) Systems and methods for interfacing with dynamic web forms
CN115510508A (en) Page information protection method and device and electronic equipment
CN113434217B (en) Vulnerability scanning method, vulnerability scanning device, computer equipment and medium
CN115203674A (en) Automatic login method, system, device and storage medium for application program
CN111400137B (en) Storage method and device of monitoring event, mobile terminal and storage medium
CN114070892A (en) Data transmission method and device
WO2018133231A1 (en) Method and device for intelligently processing application event
WO2024066622A1 (en) Cloud system testing method and apparatus
CN112468829B (en) Sharing method of cache video, electronic device and computer readable storage medium
CN111885152B (en) Promotion information processing method, electronic device and computer-readable storage medium
CN111352357B (en) Robot control method and device and terminal equipment

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