CN112732518A - Application program version monitoring method and device, electronic equipment and storage medium - Google Patents

Application program version monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112732518A
CN112732518A CN202011605342.8A CN202011605342A CN112732518A CN 112732518 A CN112732518 A CN 112732518A CN 202011605342 A CN202011605342 A CN 202011605342A CN 112732518 A CN112732518 A CN 112732518A
Authority
CN
China
Prior art keywords
version information
application program
application
information
version
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.)
Pending
Application number
CN202011605342.8A
Other languages
Chinese (zh)
Inventor
刘伟
李晓宇
周宇
张焱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ultrapower Intelligent Data Technology Co ltd
Original Assignee
Beijing Ultrapower Intelligent Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ultrapower Intelligent Data Technology Co ltd filed Critical Beijing Ultrapower Intelligent Data Technology Co ltd
Priority to CN202011605342.8A priority Critical patent/CN112732518A/en
Publication of CN112732518A publication Critical patent/CN112732518A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a method and a device for monitoring application program versions, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring address information of an application program to be monitored, and acquiring a release page of the application program according to the address information; acquiring version information of an application program from a release page at intervals of preset time according to a configuration file corresponding to the release page; storing the acquired version information of the application program and the current acquisition time in a database; extracting first version information corresponding to the latest acquisition time of the application program and second version information corresponding to the next latest acquisition time from a database; carrying out format standardization processing on the first version information and the second version information; comparing the first version information and the second version information subjected to format standardization processing; and inputting and displaying a comparison result of the version information of the application program. The technical scheme disclosed by the application can overcome the defect that the updating condition of a certain application program cannot be accurately monitored in the prior art.

Description

Application program version monitoring method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of application program version updating monitoring, in particular to an application program version monitoring method and device, electronic equipment and a storage medium.
Background
With the rapid development of intelligent equipment, various applications based on the intelligent equipment are changed day by day. For various application programs (hereinafter, replaced by apps), version release needs to be completed in the fastest time, and after the apps update versions, the updated versions need to be uploaded to various large application downloading platforms. Currently, a method for monitoring whether an App version is updated generally includes obtaining a latest updated App by using a latest update page of an application platform.
However, due to the fact that a plurality of application platforms exist, version release time on each application platform may be different, updating of the App is monitored only according to the own application platform, and the defects that acquired data are incomplete and updating conditions of a certain type of application program cannot be accurately monitored exist.
Disclosure of Invention
In view of the above, the present application is proposed to provide an application version monitoring method, apparatus, electronic device and storage medium that overcome or at least partially solve the above problems.
In accordance with one aspect of the present application, there is disclosed an application version monitoring method, the method comprising:
acquiring address information of an application program to be monitored, and acquiring a release page of the application program according to the address information;
acquiring version information of the application program from the release page of the application program at preset time intervals according to the configuration file corresponding to the release page;
storing the acquired version information and the current acquisition time of the application program into a database;
extracting first version information corresponding to the latest acquisition time of the application program and second version information corresponding to the next latest acquisition time from the database; carrying out format standardization processing on the first version information and the second version information; comparing the first version information and the second version information subjected to format standardization processing;
and inputting and displaying a comparison result of the version information of the application program.
Optionally, the obtaining address information of the application program to be monitored includes:
and crawling the address information of the application programs from the publishing platform of the application programs through a web crawler, and inputting the crawled address information of each application program through a human-computer interaction interface.
Optionally, acquiring version information of the application program from the release page at preset time intervals according to the configuration file corresponding to the release page includes:
presetting a configuration file corresponding to a release platform aiming at the release platform of each application program; the configuration file comprises: the system comprises a name parameter, a version information parameter, an updating time parameter, a publishing platform parameter, an information acquisition time parameter and a corresponding regular expression matching rule;
acquiring a configuration file corresponding to a release page of the application program according to the release page;
and intercepting a name, version information, updating time, a release platform and information acquisition time from a release page of the application program according to each parameter contained in the configuration file and a corresponding regular expression matching rule.
Optionally, the database includes a first data table and a second data table; the first data table is used for storing the version information of the newly acquired application program; the second data table is used for synchronizing the version information of the stored application programs from the first data table after each comparison;
storing the collected version information and the current collection time of the application program in a database comprises:
the address information of the application program is used as a main key, and the name, version information, updating time, a release platform and information acquisition time of the application program are used as corresponding values and stored in a first data table of a database;
the extracting of the first version information corresponding to the latest acquisition time and the second version information corresponding to the second latest acquisition time of the application program from the database includes:
after the version information of the latest acquired application program is written in the first data table, acquiring first version information of the application program from the first data table, and acquiring second version information of the application program from the second data table.
Optionally, the format normalization processing on the first version information and the second version information includes:
and converting the first version information and the second version information into digital types and multiplying the digital types by preset constants.
Optionally, the method further includes: and judging whether the formats of the first version information and the second version information are the same, and if the formats of the first version information and the second version information are different, carrying out the residual zero filling on the version information with shorter bit number until the bits of the first version information and the second version information are the same.
Optionally, the first version information and the second version information subjected to format standardization processing are compared; the comparison result of inputting and displaying the version information of the application program comprises the following steps:
comparing the version information of each application program in the first data table and the second data table at intervals of preset time according to a preset script;
and when the version information of the application program is updated, pushing a comparison result of the version information of the application program to a user.
In accordance with one aspect of the present application, there is disclosed an application version monitoring apparatus, the apparatus comprising:
the device comprises an acquisition unit, a monitoring unit and a processing unit, wherein the acquisition unit is used for acquiring address information of an application program to be monitored and acquiring a release page of the application program according to the address information;
the acquisition unit is used for acquiring version information of the application program from the release page of the application program at preset time intervals according to the configuration file corresponding to the release page;
the storage unit is used for storing the acquired version information of the application program and the current acquisition time into a database;
the comparison unit is used for extracting first version information corresponding to the latest acquisition time of the application program and second version information corresponding to the next latest acquisition time from the database; carrying out format standardization processing on the first version information and the second version information; comparing the first version information and the second version information subjected to format standardization processing;
and the display unit is used for inputting and displaying the comparison result of the version information of the application program.
In accordance with one aspect of the present application, an electronic device is disclosed, wherein the electronic device comprises: a processor; and a memory arranged to store computer executable instructions that, when executed, cause the processor to perform a method as claimed in any one of the above.
In accordance with an aspect of the application, a computer readable storage medium is disclosed, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement a method as in any above.
As can be seen from the above, in the present application, the version information of each application program crawled from the corresponding release webpage by the web crawler according to the URL address of each application program is stored in the database. And then according to a preset script, acquiring first version information and second version information of an application program corresponding to the URL from a stored database at preset time intervals according to the primary key URL, carrying out format standardization processing, and then carrying out version information comparison. Therefore, the defects that due to the fact that a plurality of application platforms exist in the prior art, version release time on each application platform is possibly different, updating of the application programs is monitored only according to the own application platforms, obtained data are incomplete, and updating conditions of a certain type of application programs cannot be accurately monitored are overcome.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flow diagram of an application version monitoring method according to one embodiment of the present application;
FIG. 2 illustrates a detailed flow diagram of an application version monitoring method according to one embodiment of the present application;
FIG. 3 is a schematic diagram of an application version monitoring apparatus according to an embodiment of the present application;
FIG. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 5 shows a schematic diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Most of the existing application programs are downloaded through each large application platform, and most of the application programs are updated through the update pages of each large application platform. However, due to the fact that a plurality of application platforms exist, version release time on each application platform may be different, monitoring is performed only according to an application program update page of the own application platform, and the defects that acquired data are incomplete and the update condition of a certain type of application program cannot be accurately monitored exist.
The design concept of the application is as follows: in order to achieve the technical effect of more accurately detecting whether a certain type of application program is updated or not. Based on a webpage address (URL) of an App (application program) to be monitored, taking the URL of the application program as a unique identifier, and acquiring detailed information of the application program according to the URL corresponding to the application program through a data mining technology; and setting automatic timing to crawl, and storing the version information and the acquisition time of the application program into a database. Date is used as a distinction, so that comparison of version information is facilitated. And when the version information of the application program is updated, the updated application program and the related information are subjected to front-end display. Furthermore, the method and the device can simultaneously monitor the published pages of the same application program on a plurality of different application platforms, thereby monitoring the updating condition of the application program more timely and accurately.
FIG. 1 shows a flow diagram of an application version monitoring method according to one embodiment of the present application; referring to fig. 1, the method comprises the steps of:
step S110, acquiring address information of an application program to be monitored, and acquiring a release page of the application program according to the address information.
And step S120, acquiring version information of the application program from the release page of the application program at preset time intervals according to the configuration file corresponding to the release page.
And step S130, storing the acquired version information of the application program and the current acquisition time into a database.
In step S120 and step S120, according to the address information of the application program, the version information of the application program is crawled from the corresponding release page through a web crawler and stored in a database, so that subsequent comparison of the version information is facilitated.
Step S140, extracting first version information corresponding to the latest acquisition time of the application program and second version information corresponding to the next latest acquisition time from a database; carrying out format standardization processing on the first version information and the second version information; and comparing the first version information and the second version information which are subjected to format standardization processing.
In step S140, the latest first version information and the second latest version information are extracted from the database, and the obtained first version information and the second latest version information are subjected to format standardization and then compared, so that the defect that whether the versions are updated or not cannot be effectively judged due to inconsistency of the version information in the prior art is overcome.
Step S150, inputting and displaying a comparison result of the version information of the application program.
In step S150, the comparison result of the application program may be displayed at the front end, and the user may also be notified of the comparison result of the application program by way of an email or a notification message.
Therefore, in the application, based on the URL of the application program release page, the version information of the application program is crawled from the corresponding release webpage through a web crawler at preset time intervals, and the obtained version information is stored in a database. Then, extracting the latest first version information and the second latest second version information from a stored database according to a preset script; firstly, carrying out format standardization processing, and then carrying out version information comparison. In the application, the update information of the application program is timely acquired by acquiring the URL of the application program, so that the defects that in the prior art, due to the fact that a plurality of application platforms exist, version release time on each application platform is possibly different, updating of the application program is monitored only according to the own application platform, acquired data are incomplete, and the updating condition of a certain application program cannot be accurately monitored are overcome.
FIG. 2 illustrates a detailed flow diagram of an application version monitoring method according to one embodiment of the present application; referring to fig. 2, the method comprises the steps of:
step S210, obtaining address information of the application program to be monitored.
In step S210, address information of the application program is input in the human-computer interaction interface of the application program version monitoring device, that is, which application program the user needs to monitor, and then a corresponding URL address is added in the human-computer interaction interface. When a plurality of application programs need to be monitored, the list containing the plurality of application programs can be imported from the man-machine interaction interface through the list import.
In other embodiments of the present application, since the application platform has a large number of application programs, in order to reduce the workload of the user, the web crawler may crawl address information of the application programs from a publishing platform of the application programs; and then storing the crawled address information of each application program on different application platforms into a list, importing the information into a human-computer interaction interface, and transmitting the information to an application program version monitoring device.
Step S220, obtaining the issue page of the application program according to the address information.
Step S230, collecting version information of the application program from the release page of the application program every preset time according to the configuration file corresponding to the release page.
In step S230, a configuration file corresponding to the publishing platform is preset for the publishing platform of each application; the configuration file comprises: the system comprises a name parameter, a version information parameter, an updating time parameter, a publishing platform parameter, an information acquisition time parameter and a corresponding regular expression matching rule.
After the release page of the application program is obtained, data mining is carried out based on the regular expression matching rules of all key fields contained in the configuration file. Wherein, each key field means that the configuration file comprises: name parameter, version information parameter, update time parameter, release platform parameter, and information acquisition time parameter.
Specifically, the storage modes of the relevant information of the application programs on the different publishing platforms are different. In order to better match out the corresponding key fields, the matching efficiency is improved, and errors are reduced. And setting corresponding configuration files according to different publishing platforms. If the pea pod issuing platform presets a corresponding first configuration file; and presetting a corresponding second configuration file by the application publishing platform, and the like. The web crawler selects a corresponding configuration file in a current release page, and then intercepts names, version information, updating time, a release platform and information acquisition time from the release page of the application program according to parameters contained in the configuration file and a regular expression matching rule contained in the configuration file.
Figure BDA0002871748630000081
TABLE 1
Table 1 is a reference table of configuration files in an embodiment of the present application. As shown in the table, in the current publication page, the application name in the page is intercepted according to the regular expression and output in the name field; similarly, intercepting the current version information from the current release page and outputting the current version information in a version information field; intercepting the latest updating time of the version and outputting the latest updating time in an updating time field; and intercepting the name of the publishing platform of the application program and outputting the name in a field of the publishing platform. And directly outputting the current time of the system operation to the information acquisition time field. Preferably, the URL address of the current published page is also output to the URL field.
In one embodiment of the present application, referring to table 1, the mining result includes six fields, app _ web _ name, app _ version, up _ date, app _ platform, download _ url, and updatetime. The above six fields respectively correspond to six output fields in the configuration file, and are explained as follows:
app _ web _ name: the corresponding name parameter represents an application name.
app _ version: and the corresponding version information parameter represents the application version number.
up _ date: and the corresponding update time parameter represents the version update time.
app _ platform: and representing the publishing platform corresponding to the publishing platform parameter.
down _ url: and the corresponding URL parameter represents the address of the published page.
update time: the corresponding information acquisition time parameter represents program running time and an execution result, SUC represents that the execution success data has no abnormity, and ERR represents that the data is abnormal.
Step S240, using the address information of the application program as a primary key, and storing the name, version information, update time, release platform, and information acquisition time of the application program as corresponding values in a database.
Figure BDA0002871748630000091
TABLE 2
Table 2 shows the output results after data mining according to an embodiment of the present application. Referring to table 2, a table is created with the URL address as the main key, and the table includes the above six output fields.
In a specific embodiment of the present application, a first data table and a second data table are provided in a database. The first data table is used for storing the version information of the newly acquired application program; the second data table is used for synchronizing version information of the stored application programs from the first data table after the comparison. That is, the first data table is a data table containing the latest version information, and the second data table is a data table before update. And comparing the first data table with the second data table to obtain which application programs are subjected to version updating.
In an embodiment of the application, the URL addresses of the same application program on different application platforms may be obtained simultaneously, and after data mining, a data table in which the application program names are the same, the URL addresses are different, and corresponding output fields are also different is output. Therefore, in order to obtain the latest version of the application program, the pieces of data with the same application name may be compared to obtain the version information of the application program with the latest update time or the largest version. And then pushing the acquired latest version information of the application program to a user, such as informing through an email or outputting in a front-end page, wherein the latest version information of a certain APP is the X.XX version on a certain application platform.
In other embodiments of the present application, when the version information of the application program that is newly acquired is written in the first data table, the version information of the application program that is currently stored in the first data table is copied into the second data table, and after the version information of the application program that is currently stored in the first data table is copied into the second data table, the version information of the application program that is newly acquired is written in the first data table. The latest version information stored in the first data table is guaranteed, and the next-to-new version information is stored in the second data table.
Step S250, obtaining the first version information of the application program from the first data table of the database, and obtaining the second version information of the application program from the second data table of the database.
In an embodiment of the application, after the version information of the application program which is newly acquired is written in the first data table, that is, after the version information is updated, the first version information and the second version information are respectively obtained and compared. The time interval of the version information comparison is the same as the time interval of the acquisition from the release page. Therefore, after each acquisition, the version comparison operation can be performed once, and the user can be informed at the first time after the version of the application program is updated.
Step S260, the first version information and the second version information are converted into digital types and multiplied by a preset constant.
After the version information is updated, the number of bits of the version number of some application programs may change, so that it is impossible to directly determine whether the version information is actually updated. Such as the original version number being the 1.1.0 version. After the update, the naming rule of the version number is changed greatly or changed, which becomes 3.30.20805; the version number cannot be effectively judged by directly adding or subtracting, and errors are easy to occur.
The conversion of the first version information and the second version information into digital types and the multiplication by a preset constant are performed to complete the standardization of the version information in step S260, which facilitates the comparison of the version information. Taking the version numbers as examples, the first version information is 3.30.20805, and the second version information is 1.1.0. After normalization, the decimal points of the version number are removed, the decimal points are multiplied by a constant 1/100000, the first version information corresponds to 330.20805, the second version information corresponds to 0.0011, and at this time, the two values are compared to judge whether the first version is larger than the second version.
In other embodiments of the present application, after step S250, it may be further determined whether the formats of the first version information and the second version information are the same. In this embodiment, the format of the version information may be the number of bits of the version information, and when the number of bits of the first version information is different from that of the second version information, the remaining bits of the version information with a shorter number of bits are padded with zeros until the number of bits of the first version information is the same as that of the second version information.
In this embodiment, taking the version information as an example, the first version information is 3.30.20805, the second version information is 1.1.0, and it is determined that the first version information and the second version information have different digits. The remaining bits of the shorter second version information 1.1.0 are zero-padded to be the same as the bits of the first version information, resulting in 11000000. A comparison of the first version information and the second version information is then made. It is found that the first version information has been updated compared to the second version information.
And step S270, comparing the version information of each application program in the first data table and the second data table at preset time intervals according to a preset script.
In a specific embodiment of the present application, in order to timely know whether each application program has a version update, in step S270, the version information of each application program obtained by data mining is stored in an Oracle database, and in the process of comparing the version information, a script is run every other preset time, for example, every other hour, according to a preset script. The script is used for acquiring first version information from a first data table of the database and acquiring second version information from a second data table. And then, the first version information and the second version information are compared after being formatted, if the first version information is larger than the second version information, the version of the application program is updated, and the version update information of the application program can be output in a correlation mode by using the URL as a main key.
Step S280, when the version information of the application program is updated, outputting a comparison result of the version information of the application program.
Figure BDA0002871748630000111
TABLE 3
Table 3 is a version information comparison result output table. Referring to table 3, in step S280, the output updated version table includes the application name, the download platform, the new version information, the old version information, the downloaded URL, the update time, and the like. The user can intuitively know which application programs are updated through the version information comparison result output table.
In a specific implementation manner of the application, an update prompt or a system notification message can be set, namely after the version information is compared and the version of the application program is updated, a user can be reminded by setting a mail and sending a short message; and pushing a version comparison result to a user in a system message mode according to a bottom system message interface on the intelligent terminal.
In another specific embodiment of the present application, the URL addresses of the same application on different application platforms may be obtained simultaneously, or the URL addresses of multiple application programs on different application platforms may be obtained simultaneously, where the URL addresses of the same application program on different application platforms may exist; at this time, the corresponding configuration file may further include an identifier parameter (such as ApkName or AppName) of the application program, and whether the application program is the same application program may be determined by the identifier of the application program; the identification of the application program can be obtained from a publishing page or a URL of the application program according to a regular expression matching rule contained in a configuration file. Then, the version updating comparison of each application program can be performed according to each URL in the foregoing S210-S270; and then judging whether the version information with the same application program identification exists in the first data table, further comparing the version information with the same application program identification, and enabling the version information with the maximum version information to exist in a third data table. Therefore, the version information stored in the third data table may also be pushed to the user as the latest version information, for example, the latest version information is notified by mail or output in the front-end page, and the latest version information of some APP is the x.xx version on some application platform.
FIG. 3 is a schematic diagram of an application version monitoring apparatus according to an embodiment of the present application; referring to fig. 3, the apparatus includes:
an obtaining unit 301, configured to obtain address information of an application program to be monitored, and obtain a publication page of the application program according to the address information;
the acquisition unit 302 is configured to acquire version information of the application program from the release page of the application program at preset time intervals according to the configuration file corresponding to the release page;
the storage unit 303 is configured to store the acquired version information of the application program and the current acquisition time in a database;
a comparing unit 304, configured to extract, from the database, first version information corresponding to the latest acquisition time of the application program and second version information corresponding to the next latest acquisition time; carrying out format standardization processing on the first version information and the second version information; comparing the first version information and the second version information subjected to format standardization processing;
the display unit 305 is configured to input and display a comparison result of the version information of the application program.
In an embodiment of the present application, the collecting unit 302 is configured to crawl address information of an application program from a publishing platform of the application program through a web crawler, and input the crawled address information of each application program through a human-computer interaction interface.
In an embodiment of the application, a configuration file corresponding to a publishing platform is preset for the publishing platform of each application program; the configuration file comprises: the system comprises a name parameter, a version information parameter, an updating time parameter, a publishing platform parameter, an information acquisition time parameter and a corresponding regular expression matching rule;
the acquisition unit 302 is configured to acquire a configuration file corresponding to a publication page of the application program according to the publication page; and intercepting a name, version information, updating time, a release platform and information acquisition time from a release page of the application program according to each parameter contained in the configuration file and a corresponding regular expression matching rule.
In one embodiment of the present application, the database comprises a first data table and a second data table; the first data table is used for storing the version information of the newly acquired application program; the second data table is used for synchronizing the version information of the stored application programs from the first data table after each comparison;
the acquisition unit 302 is configured to store the address information of the application program as a primary key, and the name, version information, update time, release platform, and information acquisition time of the application program as corresponding values in a first data table of a database;
a comparing unit 304, configured to obtain first version information of the application program from the first data table after the version information of the application program that is newly acquired is written in the first data table, and obtain second version information of the application program from the second data table.
In an embodiment of the present application, the comparing unit 304 is configured to convert the first version information and the second version information into digital types and multiply the digital types by a preset constant.
In an embodiment of the application, the comparing unit 304 is configured to determine whether the formats of the first version information and the second version information are the same, and if the formats of the first version information and the second version information are different, perform zero padding on the version information with a shorter number of bits until the number of bits of the first version information is the same as the number of bits of the second version information.
In an embodiment of the application, the comparing unit 304 is configured to compare version information of each application program in the first data table and the second data table every preset time according to a preset script;
in an embodiment of the application, the presentation unit 305 outputs a comparison result of the version information of the application program when the version information of the application program is updated.
In summary, in the present application, according to the URL address of each application, the web crawler crawls the version information of each application from the corresponding publishing web page, and stores the obtained version information in the database. And then according to a preset script, acquiring first version information and second version information of an application program corresponding to the URL from a stored database at preset time intervals according to the primary key URL, carrying out format standardization processing, and then carrying out version information comparison. Therefore, the defects that due to the fact that a plurality of application platforms exist in the prior art, version release time on each application platform is possibly different, updating of the application programs is monitored only according to the own application platforms, obtained data are incomplete, and updating conditions of a certain type of application programs cannot be accurately monitored are overcome.
The application also discloses an electronic device, and fig. 4 shows a schematic structural diagram of the electronic device according to an embodiment of the application. The electronic device 400 comprises a processor 410 and a memory 420 arranged to store computer executable instructions (computer readable program code). The memory 420 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 420 has a storage space 430 storing computer readable program code 431 for performing any of the method steps described above. For example, the storage space 430 for storing the computer readable program code may include respective computer readable program codes 431 for respectively implementing various steps in the above method. The computer readable program code 431 can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a computer readable storage medium such as described in fig. 5.
FIG. 5 shows a schematic diagram of a computer-readable storage medium according to an embodiment of the present application. The computer readable storage medium 500 stores computer readable program code 431 for performing the steps of the method according to the present application, which is readable by the processor 410 of the electronic device 400, which computer readable program code 431, when executed by the electronic device 400, causes the electronic device 400 to perform the steps of the method described above, in particular the computer readable program code 431 stored by the computer readable storage medium may perform the method shown in any of the embodiments described above. The computer readable program code 431 may be compressed in a suitable form.
For the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms "first" and "second" are used to distinguish the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the terms "first" and "second" are not limited to numbers and execution orders.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. An application version monitoring method, the method comprising:
acquiring address information of an application program to be monitored, and acquiring a release page of the application program according to the address information;
acquiring version information of the application program from the release page at preset time intervals according to the configuration file corresponding to the release page;
storing the acquired version information and the current acquisition time of the application program into a database;
extracting first version information corresponding to the latest acquisition time of the application program and second version information corresponding to the next latest acquisition time from the database; carrying out format standardization processing on the first version information and the second version information; comparing the first version information and the second version information subjected to format standardization processing;
and inputting and displaying a comparison result of the version information of the application program.
2. The method of claim 1, wherein obtaining address information of the application to be monitored comprises:
and crawling the address information of the application programs from the publishing platforms of the application programs through a web crawler, and inputting the crawled address information of the application programs through a human-computer interaction interface.
3. The method according to claim 1, wherein collecting version information of the application program from the publication page at preset time intervals according to the configuration file corresponding to the publication page comprises:
presetting a configuration file corresponding to a release platform aiming at the release platform of each application program; the configuration file comprises: the system comprises a name parameter, a version information parameter, an updating time parameter, a publishing platform parameter, an information acquisition time parameter and a corresponding regular expression matching rule;
acquiring a configuration file corresponding to a release page of the application program according to the release page;
and intercepting a name, version information, updating time, a release platform and information acquisition time from a release page of the application program according to each parameter contained in the configuration file and a corresponding regular expression matching rule.
4. The method of claim 3, wherein the database comprises a first data table and a second data table; the first data table is used for storing the version information of the newly acquired application program; the second data table is used for synchronizing the version information of the stored application programs from the first data table after each comparison;
storing the collected version information and the current collection time of the application program in a database comprises:
the address information of the application program is used as a main key, and the name, version information, updating time, a release platform and information acquisition time of the application program are used as corresponding values and stored in a first data table of a database;
the extracting of the first version information corresponding to the latest acquisition time and the second version information corresponding to the second latest acquisition time of the application program from the database includes:
after the version information of the latest acquired application program is written in the first data table, acquiring first version information of the application program from the first data table, and acquiring second version information of the application program from the second data table.
5. The method according to any one of claims 1 to 4, wherein the format normalizing the first version information and the second version information comprises:
and converting the first version information and the second version information into digital types and multiplying the digital types by preset constants.
6. The method of claim 1, further comprising: and judging whether the formats of the first version information and the second version information are the same, and if the formats of the first version information and the second version information are different, carrying out the residual zero filling on the version information with shorter bit number until the bits of the first version information and the second version information are the same.
7. The method according to any one of claims 1 to 4, wherein the comparing of the first version information and the second version information subjected to format standardization processing; the comparison result of inputting and displaying the version information of the application program comprises the following steps:
comparing the version information of each application program in the first data table and the second data table at intervals of preset time according to a preset script;
and when the version information of the application program is updated, pushing a comparison result of the version information of the application program to a user.
8. An application version monitoring apparatus, the apparatus comprising:
the device comprises an acquisition unit, a monitoring unit and a processing unit, wherein the acquisition unit is used for acquiring address information of an application program to be monitored and acquiring a release page of the application program according to the address information;
the acquisition unit is used for acquiring version information of the application program from the release page of the application program at preset time intervals according to the configuration file corresponding to the release page;
the storage unit is used for storing the acquired version information of the application program and the current acquisition time into a database;
the comparison unit is used for extracting first version information corresponding to the latest acquisition time of the application program and second version information corresponding to the next latest acquisition time from the database; carrying out format standardization processing on the first version information and the second version information; comparing the first version information and the second version information subjected to format standardization processing;
and the display unit is used for inputting and displaying the comparison result of the version information of the application program.
9. An electronic device, wherein the electronic device comprises: a processor; and a memory arranged to store computer-executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202011605342.8A 2020-12-30 2020-12-30 Application program version monitoring method and device, electronic equipment and storage medium Pending CN112732518A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011605342.8A CN112732518A (en) 2020-12-30 2020-12-30 Application program version monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011605342.8A CN112732518A (en) 2020-12-30 2020-12-30 Application program version monitoring method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112732518A true CN112732518A (en) 2021-04-30

Family

ID=75610437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011605342.8A Pending CN112732518A (en) 2020-12-30 2020-12-30 Application program version monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112732518A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870774A (en) * 2017-11-24 2018-04-03 武汉精测电子集团股份有限公司 A kind of system for AOI system software version management
CN109254921A (en) * 2018-09-18 2019-01-22 平安科技(深圳)有限公司 Application version verification method, device, computer equipment and storage medium
CN110377331A (en) * 2019-07-22 2019-10-25 腾讯科技(深圳)有限公司 Monitoring method, device, equipment and the storage medium of release application program
CN110427215A (en) * 2019-07-30 2019-11-08 阿里巴巴集团控股有限公司 A kind of program version mRNA differential display mRNA method and device applied to front end exploitation
US20200327035A1 (en) * 2016-08-26 2020-10-15 Hitachi, Ltd. Application management system, method, and computer program
CN111831628A (en) * 2020-07-28 2020-10-27 中国平安财产保险股份有限公司 System operation and maintenance monitoring method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200327035A1 (en) * 2016-08-26 2020-10-15 Hitachi, Ltd. Application management system, method, and computer program
CN107870774A (en) * 2017-11-24 2018-04-03 武汉精测电子集团股份有限公司 A kind of system for AOI system software version management
CN109254921A (en) * 2018-09-18 2019-01-22 平安科技(深圳)有限公司 Application version verification method, device, computer equipment and storage medium
CN110377331A (en) * 2019-07-22 2019-10-25 腾讯科技(深圳)有限公司 Monitoring method, device, equipment and the storage medium of release application program
CN110427215A (en) * 2019-07-30 2019-11-08 阿里巴巴集团控股有限公司 A kind of program version mRNA differential display mRNA method and device applied to front end exploitation
CN111831628A (en) * 2020-07-28 2020-10-27 中国平安财产保险股份有限公司 System operation and maintenance monitoring method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110515951B (en) BOM standardization method and system, electronic device and storage medium
CN111897548B (en) Front-end resource issuing method and device, electronic equipment and computer storage medium
CN110888842A (en) File storage method, file query method, file storage device, file query device and file query equipment
CN111897846A (en) Cache data verification method, device, equipment and storage medium
CN107562485B (en) Method and device for automatically collecting patch data
CN111008034A (en) Patch generation method and device
CN111198709A (en) RPM software package management method, system, device and readable storage medium
JPWO2018122890A1 (en) Log analysis method, system and program
CN112732518A (en) Application program version monitoring method and device, electronic equipment and storage medium
CN112579141A (en) Firmware updating method, device, equipment and storage medium of embedded system
CN112729868A (en) Vehicle diagnosis method, device, equipment and medium
CN112231194B (en) Index abnormity root analysis method and device and computer readable storage medium
CN113641523A (en) Log processing method and device
CN114817152A (en) Method and system for querying slice file
CN114238733A (en) Key information extraction method and device, computer storage medium and electronic equipment
CN113779086A (en) Power station equipment data acquisition method, device, equipment and storage medium
CN113535830A (en) Automatic interface expansion method, device, equipment and storage medium
CN111399830A (en) Application program capacity monitoring method and device, electronic equipment and storage medium
CN112559366B (en) Method, device, system, equipment and storage medium for updating test object
CN116521742B (en) Source code analysis result aggregation method and device, electronic equipment and storage medium
CN116466987A (en) Document packaging method and device, electronic equipment and storage medium
CN110471782B (en) Configuration information consistency processing method and device and electronic equipment
CN116644096A (en) File export method, device, computer equipment and storage medium
CN115827313A (en) Data recovery method and device, electronic equipment and storage medium
CN115438064A (en) Database access method, device and storage medium

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