CN111158713A - Software updating method and device - Google Patents

Software updating method and device Download PDF

Info

Publication number
CN111158713A
CN111158713A CN201811317773.7A CN201811317773A CN111158713A CN 111158713 A CN111158713 A CN 111158713A CN 201811317773 A CN201811317773 A CN 201811317773A CN 111158713 A CN111158713 A CN 111158713A
Authority
CN
China
Prior art keywords
software
webpage
information
updating
preset
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
CN201811317773.7A
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.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811317773.7A priority Critical patent/CN111158713A/en
Publication of CN111158713A publication Critical patent/CN111158713A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of computers, in particular to a software updating method and a software updating device, which respectively obtain webpage response data of each webpage through crawling; wherein, the webpage response data at least comprises software updating information; respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information which accords with a preset rule; respectively acquiring the corresponding software update addresses in the screened software update information; and respectively downloading corresponding software updating packages according to the updating addresses of the software, and updating the corresponding software in the preset software knowledge base according to the downloaded software updating packages, so that a large amount of software updating information can be quickly obtained and screened by crawling and automatic updating, the reliability and effectiveness of the software updating information are improved, the automatic updating is carried out, the labor and the cost are saved, and the software updating efficiency is improved.

Description

Software updating method and device
Technical Field
The invention relates to the technical field of computers, in particular to a software updating method and device.
Background
At present, in the field of open source software management, open source software is usually obtained manually, for example, whether the latest software package is released or the latest bug patch is updated is periodically checked manually in an official open source website, once the latest software package is released or updated, the software is updated to a software knowledge base of the software after being downloaded manually, but the software updating method is not timely enough in updating, and a large amount of manpower is required to be invested to obtain information from each website and download the information manually, so that the updating efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a software updating method and device, and aims to solve the problem of low software updating efficiency in the prior art.
The embodiment of the invention provides the following specific technical scheme:
a software update method, comprising:
respectively crawling to obtain webpage response data of each webpage; wherein, the webpage response data at least comprises software updating information;
respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information which accords with a preset rule;
respectively acquiring the corresponding software update addresses in the screened software update information;
and respectively downloading corresponding software updating packages according to the updating addresses of the software, and updating the corresponding software in the preset software knowledge base according to the downloaded software updating packages.
Optionally, further comprising: sending a response request to a preset software website, and acquiring website response data returned by the preset software website; the website response data at least comprises web pages, wherein each web page represents a web page of each software update information;
respectively crawling to obtain webpage response data of each webpage, and specifically comprising the following steps: and respectively crawling each webpage, and respectively sending a response request to each webpage to obtain webpage response data returned by each webpage.
Optionally, after sending the response request to each of the webpages, the method further includes:
and if determining that webpage response data returned by any webpage in the webpages are not obtained, sending a response request to the webpage which does not respond, and if determining that the number of times of sending the response request to the webpage exceeds a preset number threshold value, and still not obtaining the returned webpage response data, stopping sending the response request to the webpage.
Optionally, the software update information at least includes a software name and version information;
respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information meeting preset rules, which specifically comprises the following steps:
respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, and screening out software updating information of which the software name is matched with the preset software knowledge base;
and screening out software updating information higher than the version information of the corresponding software in the preset software knowledge base according to the version information of the software updating information matched between the screened out software name and the preset software knowledge base.
Optionally, further comprising: and respectively acquiring the description information of the corresponding software updating package in the screened software updating information, and updating the description information of the updated software in the preset software knowledge base according to the description information of the software updating package.
A software updating apparatus comprising:
the crawling module is used for respectively crawling to obtain webpage response data of each webpage; wherein, the webpage response data at least comprises software updating information;
the screening module is used for respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base and screening out the software updating information meeting preset rules;
the acquisition module is used for respectively acquiring the corresponding software update addresses in the screened software update information;
and the updating module is used for respectively downloading the corresponding software updating packages according to the updating addresses of the software and updating the corresponding software in the preset software knowledge base according to the downloaded software updating packages.
Optionally, the crawling module is further configured to: sending a response request to a preset software website, and acquiring website response data returned by the preset software website; the website response data at least comprises web pages, wherein each web page represents a web page of each software update information;
when the webpage response data of each webpage are obtained by crawling respectively, the crawling module is specifically configured to: and respectively crawling each webpage, and respectively sending a response request to each webpage to obtain webpage response data returned by each webpage.
Optionally, after sending the response request to each of the webpages, the crawling module is further configured to:
and if determining that webpage response data returned by any webpage in the webpages are not obtained, sending a response request to the webpage which does not respond, and if determining that the number of times of sending the response request to the webpage exceeds a preset number threshold value, and still not obtaining the returned webpage response data, stopping sending the response request to the webpage.
Optionally, the software update information at least includes a software name and version information;
respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information meeting preset rules, wherein the screening module is specifically used for:
respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, and screening out software updating information of which the software name is matched with the preset software knowledge base;
and screening out software updating information higher than the version information of the corresponding software in the preset software knowledge base according to the version information of the software updating information matched between the screened out software name and the preset software knowledge base.
Optionally, the obtaining module is further configured to: respectively acquiring the description information of the corresponding software update package in the screened software update information;
the update module is further configured to: and updating the description information of the updated software in the preset software knowledge base according to the description information of the software updating package.
A computer apparatus, comprising:
at least one memory for storing a computer program;
at least one processor configured to implement the steps of any of the software update methods described above when executing the computer program stored in the memory.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the software updating methods described above.
In the embodiment of the invention, webpage response data of each webpage are obtained by crawling respectively; wherein, the webpage response data at least comprises software updating information; respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information which accords with a preset rule; respectively acquiring the corresponding software update addresses in the screened software update information; the corresponding software updating packages are respectively downloaded according to the updating addresses of the software, and the corresponding software in the preset software knowledge base is updated according to the downloaded software updating packages, so that a large amount of software updating information can be quickly obtained by crawling the response data of each webpage, a software updating information source is provided for automatic software updating, manual acquisition is not needed, labor is saved, time and cost are saved, timeliness of the software updating information can be guaranteed, the crawled software updating information is screened, examined and analyzed, the software updating information meeting the preset rules is screened out, reliability and effectiveness of the software updating information are improved, the updating addresses are obtained, the corresponding software in the software knowledge base is updated, automatic updating degree of the software is improved, and software updating efficiency is improved.
Drawings
FIG. 1 is a flowchart of a software update method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another software update method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a software updating apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, aiming at the update of open source software, the update is usually performed by manually checking and downloading the update regularly in an open source website, and then the update is performed in a software knowledge base of the update, but the update is not timely enough, and the update efficiency is low.
In the embodiment of the invention, mainly aiming at open source software, because the acquisition and the update of the open source software are different from the software installed in other operator update terminals, when the software in the terminal is generally updated, only comparison with a server end is needed, and the update can be carried out regularly, but for the open source software, the open source software generally needs to be acquired from each webpage in an open source website, the software update information of the open source software in the open source website is very much, the content is relatively complex, and a large amount of labor cost is needed for manual screening and searching, therefore, in the embodiment of the invention, the webpage of the software update information is crawled from the open source software website through a crawling technology, and screening and auditing are carried out, so that the software update information required by the open source software can be screened out, the software update information with repeated or delayed version information is filtered, and further aiming at the finally acquired software update information which accords with the preset rule, and acquiring a corresponding update address, downloading a corresponding software update package, and realizing automatic software update.
Of course, in the embodiment of the present invention, the updating of the open source software is not limited, and the method is applicable to similar scenes and problems, and in the embodiment of the present invention, only the open source software is taken as an example for schematic description.
Referring to fig. 1, in the embodiment of the present invention, a specific process of the software updating method is as follows:
step 100: respectively crawling to obtain webpage response data of each webpage; the webpage response data at least comprises software updating information.
Wherein each web page represents a web page of each software update information. For example, a large number of web pages corresponding to the update information of the open source software are provided in the software update information of the open source website, and the update information of the open source software can be known in more detail by clicking and opening the web pages.
Specifically, when step 100 is executed, the method specifically includes:
and respectively crawling each webpage, and respectively sending response requests to each webpage to obtain webpage response data returned by each webpage.
Further, before step 100 is executed, a possible implementation manner for acquiring each web page is provided in the embodiment of the present invention, a response request is sent to a preset software website, and website response data returned by the preset software website is acquired; the website response data at least comprises web pages, wherein each web page represents a web page of each software update information.
The preset software website represents a software platform capable of providing various software update information, such as an open source website, and the embodiment of the present invention is not limited thereto.
That is to say, in the embodiment of the present invention, a response request may be sent to a software website, for example, an open source website, to obtain returned website response data, and a webpage of each software update information may be obtained from the website response data, so that each webpage may be crawled one by one, and a response request may be sent to each webpage, respectively, to obtain returned webpage response data.
For example, a software update information function is provided in an open source website, and when crawling is performed, a response request may be sent to the open source website to obtain a software update information list in website response data, where the software update information list includes each web page.
Therefore, in the embodiment of the invention, the preset crawler technology can be adopted to crawl and obtain the software updating information corresponding to each webpage, so that a large amount of software updating information can be quickly obtained without manual acquisition, the cost and the time are saved, and the efficiency is improved.
Further, when the web page is not responded, that is, no web page response data is returned, a possible implementation manner is provided in the embodiments of the present invention, after the response request is sent to each web page, if it is determined that no web page response data returned by any web page in each web page is obtained, the response request is sent to any web page that is not responded again, and if it is determined that the number of times of sending the response request to any web page exceeds a preset number threshold value, the response request is stopped being sent to any web page.
The preset number threshold may be set according to actual conditions and requirements, and is not limited in the embodiment of the present invention.
That is, when it is determined that the web page is not responded and the web page response data is not obtained, the response request may be sent to the web page again, and the redialing frequency is recorded, and within the preset frequency threshold, if the web page has not returned the web page response data all the time, the response request may be sent to the web page all the time, and the influence of unstable network environment may be reduced, for example, the returned web page response data may not be obtained within a certain time range due to the influence of network connection condition, so the redialing frequency may be increased, the missed detection of the web page may be avoided, and if the preset frequency threshold is exceeded, the web page response data returned by the web page may still not be obtained, the sending of the response request to the web page may need to be stopped, the web page may be considered as an invalid web page, the fetching of the web page may be abandoned, the resource waste caused by repeatedly crawling the invalid web page may be avoided, and the situation of, the efficiency of crawling can be improved.
In this way, in the embodiment of the present invention, the redialing and the redialing preset time threshold are set for the web pages that do not respond, and the redialing is set in consideration of the fact that the network environment is relatively unstable in practice, and some web pages may not return the web page response data within a specified time range, which is likely to cause missed detection of the web page information, so that the number of times of responding requests to the web pages is increased in the embodiment of the present invention, the web page response data of the web pages is obtained, and the influence of the network connection condition on the crawling result can be reduced; the reason for setting the redialing preset time threshold is that some false or invalid webpages may exist, if the invalid webpages are repeatedly requested all the time, resources are wasted, and even program deadlock is caused.
Step 110: and respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information which accords with a preset rule.
The software update information at least includes a software name, version information, and the like, which are not limited to the software name and the version information, but also may include other software related information.
The software knowledge base is a database for recording each software in the embodiment of the invention, namely, the software in the software knowledge base is updated, at least the software name, version information, description information and the like of each software are recorded, and the software knowledge base can be dynamically updated, and the software information recorded in the software knowledge base can also be updated according to requirements, for example, for the acquisition and update of the open source software, the scene managed by the open source software usually has a clear crawling target and required open source software, the corresponding software knowledge base of the open source software is established according to the requirements of the software knowledge base, and the software in the software knowledge base can be added or deleted according to the requirements.
When step 110 is executed, the method specifically includes:
firstly, respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information of which the software name is matched with the preset software knowledge base.
For example, the software names of the crawled software updating information are respectively software a, software b and software c, the software a and the software b are recorded in the software knowledge base, and after matching, if the software c cannot be matched with the software knowledge base, the software updating information of the software a and the software b is screened out.
Of course, the matching is not limited to the matching of software names, the purpose of the matching is to filter whether the software is recorded in a software knowledge base, and is the matching of basic information of the software, as long as the matching can be used to match whether the software is the basic information of the same software, and the embodiment of the present invention is not limited.
Therefore, according to basic information of software, for example, a software name is firstly matched with the software knowledge base, required software updating information can be quickly screened from massive crawling software updating information, only software recorded in the software knowledge base is processed and updated, namely, only the software updating information in a management range is selected, irrelevant software updating information is removed, resource consumption can be reduced, and the software knowledge base can be dynamically updated according to requirements, so that the matching analysis accuracy can be improved.
Further, aiming at the software updating information of which the software name is not matched with the preset software knowledge base, the software updating information can be directly deleted or displayed, and a user can judge whether the software is needed or not according to the requirement and can add the software into the software knowledge base if the software is needed.
And then, screening out software updating information higher than version information of corresponding software in a preset software knowledge base according to the version information of the software updating information of which the screened software name is matched with the preset software knowledge base.
That is, after the matched software update information is screened out, the matching screening is performed again, so as to filter the repeated and delayed software update information, that is, the file information of the software is matched, and if the version information in the software update information is not higher than the version information of the corresponding software in the software knowledge base, the software update information can be deleted, that is, the new version of the software in the software knowledge base is not obtained, and the corresponding software in the software knowledge base does not need to be updated.
Further, repeated software updating information can be filtered, a possible implementation manner is provided in the embodiment of the invention, whether the screened software names have the same software updating information in the software updating information matched with the preset software knowledge base is sequentially and respectively compared, if so, only one piece of software updating information in the same software updating information is reserved, and other pieces of same software updating information are deleted.
Furthermore, in order to improve the correctness of the software updating information, the embodiment of the invention can also add a manual auditing link for manually auditing whether the contents of the software name, the updating description information, the updating address and the like are correct, so that false or wrong software updating information can be filtered out, and by manual auditing, the software updating information which is not automatically audited and passes through, namely the software updating information which is not screened out, can be audited again, and omission can be avoided, because the data format of some software updating information can not be identified or is not a standard format, and whether the software updating information is a high-version software updating information can not be judged and filtered out, so that the manual auditing and the automatic auditing are combined, the repeated or low-version software updating information can be automatically audited and screened, and the manual auditing can carry out semantic level fine understanding on the software updating information, and the reliability of the software updating information is ensured.
Therefore, screening is carried out, compared with the method that software updating is started as soon as a new version of software is detected, in the embodiment of the invention, the amount and the source of the crawled data are more, so that the correctness and the reliability of software updating information cannot be ensured, and if the new version of software is detected, the reliability can be reduced, so that the software updating is incorrect.
Step 120: and respectively acquiring the corresponding software update addresses in the screened software update information.
Therefore, the mining can be performed only aiming at the screened software updating information, the updating address of the software updating package is mined, and the processing efficiency can be improved.
Step 130: and respectively downloading corresponding software updating packages according to the updating addresses of the software, and updating corresponding software in a preset software knowledge base according to the downloaded software updating packages.
In the embodiment of the invention, after the update address of each software is acquired, the update address can be stored firstly, then the update address is detected at regular time, and then the update is performed, so that the update can be performed without acquiring one update address, and then the update can be performed uniformly according to a plurality of update addresses, thereby improving the update efficiency.
Furthermore, the description information of the updated software also needs to be updated, and a possible implementation manner is provided in the embodiment of the present invention, and the description information of the corresponding software update package in the screened software update information is respectively obtained, and the description information of the updated software in the preset software knowledge base is updated according to the description information of the software update package.
Therefore, after the update address and the description information of the software are acquired, the corresponding software update package can be automatically downloaded by accessing the update address, and then the corresponding software in the software knowledge base can be updated by uploading the software update package and the description information of the software update package to the software knowledge base.
In the embodiment of the invention, webpage response data of each webpage are obtained by crawling respectively; the webpage response data at least comprises software updating information; respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information which accords with a preset rule; respectively acquiring the corresponding software update addresses in the screened software update information; the method comprises the steps of downloading corresponding software updating packages according to updating addresses of software, updating corresponding software in a preset software knowledge base according to the downloaded software updating packages, combining a crawler technology and an automatic updating technology, providing a source of software updating information through crawling, analyzing and processing the crawling information, screening and auditing the crawling software updating information, and improving reliability and correctness, so that software updating is carried out, the automation degree of open source software management is improved, manpower is saved, cost is saved, and software updating efficiency is improved.
A specific application scenario is specifically described below, taking open source software as an example, and based on the foregoing embodiment, specifically referring to fig. 2, a flowchart of another software updating method in the embodiment of the present invention is specifically described, which specifically includes:
step 200: a response request is sent to the software website.
For example, taking an open source software update as an example, the software website is an open source software website platform.
Step 201: and judging whether website response data are obtained, if so, executing the step 202, otherwise, executing the step 219.
The web page response data at least includes web pages, such as a web page list of software update information.
Step 202: and acquiring a webpage list of software updating information.
The web page list includes web pages.
Step 203: it is determined whether the web page list is traversed, if yes, step 209 is performed, and if not, step 204 is performed.
Step 204: a response request is sent to the web page.
Step 205: and judging whether the webpage response data are obtained, if so, executing step 207, otherwise, executing step 206.
Step 206: and judging whether the number of times of sending the response request exceeds a preset number threshold, if so, executing the step 203, otherwise, continuing to execute the step 204.
In this way, by setting the frequency threshold, if the webpage response data of the webpage are not obtained when the frequency threshold is exceeded, the next webpage in the webpage list is crawled, and a response request is sent to the next webpage until all the webpages in the webpage list are crawled.
Step 207: and judging whether the software knowledge base is matched, if so, executing the step 208, otherwise, executing the step 203.
The method specifically comprises the following steps: and respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, judging whether the software name is matched with the preset software knowledge base, if so, judging the matched software knowledge base, recording the matched software knowledge base into a software information list to be updated, and performing subsequent operation processing on the part of software updating information, otherwise, judging the unmatched software knowledge base.
That is, step 207 is to filter the irrelevant software update information and obtain only the software update information corresponding to the software recorded in the software repository.
Step 208: and recording the software information into a list of the software information to be updated.
Step 209: and acquiring a list of software information to be updated.
Step 210: and judging whether the software information list to be updated is traversed or not, if so, executing step 219, otherwise, executing step 211 and step 212.
Step 211: and manually checking the software updating information.
The method specifically comprises the following steps: and auditing the contents of the software name, the update address and the like, and filtering false or wrong software update information.
Step 212: and automatically auditing the software updating information.
The method specifically comprises the following steps: and screening out software updating information higher than the version information of corresponding software in the preset software knowledge base according to the version information of the software updating information of which the screened out software name is matched with the preset software knowledge base.
And moreover, whether the screened software names have the same software updating information in the software updating information matched with the preset software knowledge base can be respectively compared in sequence, if so, only one piece of software updating information in the same software updating information is reserved, and other pieces of same software updating information are deleted.
In this way, duplicate and version information lagging software update information may be filtered through automatic auditing.
Step 213: and judging whether the audit is passed, if so, executing the step 214 and the step 215, otherwise, executing the step 210.
Step 214: descriptive information of the software update package is obtained.
Step 215: and acquiring an update address of the software update package.
Step 216: and detecting the update address of each software update package at regular time.
Step 217: and downloading the corresponding software updating package according to the updating address.
Step 218: and updating the software knowledge base.
Specifically, the corresponding software in the preset software repository may be updated according to the downloaded software update package, and the description information of the updated software in the preset software repository may be updated according to the description information of the software update package.
Step 219: and (6) ending.
It should be noted that, the execution sequence of the above steps in the embodiment of the present invention is not limited, and this is only one possible example.
Based on the above embodiments, referring to fig. 3, in an embodiment of the present invention, a software updating apparatus specifically includes:
the crawling module 30 is used for respectively crawling to obtain webpage response data of each webpage; wherein, the webpage response data at least comprises software updating information;
the screening module 31 is configured to match the software update information in the web page response data of each web page with a preset software knowledge base, and screen out software update information that meets a preset rule;
an obtaining module 32, configured to obtain update addresses of corresponding software in the screened software update information respectively;
and the updating module 33 is configured to download the corresponding software update packages according to the update addresses of the software, and update the corresponding software in the preset software knowledge base according to the downloaded software update packages.
Optionally, the crawling module 30 is further configured to: sending a response request to a preset software website, and acquiring website response data returned by the preset software website; the website response data at least comprises web pages, wherein each web page represents a web page of each software update information;
when the web page response data of each web page is obtained by crawling, the crawling module 30 is specifically configured to: and respectively crawling each webpage, and respectively sending a response request to each webpage to obtain webpage response data returned by each webpage.
Optionally, after sending the response request to each of the webpages, the crawling module 30 is further configured to:
and if determining that webpage response data returned by any webpage in the webpages are not obtained, sending a response request to the webpage which does not respond, and if determining that the number of times of sending the response request to the webpage exceeds a preset number threshold value, and still not obtaining the returned webpage response data, stopping sending the response request to the webpage.
Optionally, the software update information at least includes a software name and version information;
respectively matching the software updating information in the web page response data of each web page with a preset software knowledge base, and screening out the software updating information meeting preset rules, wherein the screening module 31 is specifically configured to:
respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, and screening out software updating information of which the software name is matched with the preset software knowledge base;
and screening out software updating information higher than the version information of the corresponding software in the preset software knowledge base according to the version information of the software updating information matched between the screened out software name and the preset software knowledge base.
Optionally, the obtaining module 32 is further configured to: respectively acquiring the description information of the corresponding software update package in the screened software update information;
the update module 33 is further configured to: and updating the description information of the updated software in the preset software knowledge base according to the description information of the software updating package.
Referring to fig. 4, a schematic structural diagram of a computer device according to an embodiment of the present invention is shown.
An embodiment of the present invention provides a computer apparatus, where the server may include a processor 410 (CPU), a memory 420, an input device 430, an output device 440, and the like, where the input device 430 may include a keyboard, a mouse, a touch screen, and the like, and the output device 440 may include a display device, such as a Liquid Crystal Display (LCD), a Cathode Ray Tube (CRT), and the like.
Memory 420 may include Read Only Memory (ROM) and Random Access Memory (RAM), and provides processor 410 with program instructions and data stored in memory 420. In an embodiment of the present invention, the memory 420 may be used to store the program of the software updating method described above.
By calling the program instructions stored in the memory 420, the processor 410 is configured to perform the following steps according to the obtained program instructions:
respectively crawling to obtain webpage response data of each webpage; wherein, the webpage response data at least comprises software updating information;
respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information which accords with a preset rule;
respectively acquiring the corresponding software update addresses in the screened software update information;
and respectively downloading corresponding software updating packages according to the updating addresses of the software, and updating the corresponding software in the preset software knowledge base according to the downloaded software updating packages.
Optionally, the processor 410 is further configured to:
sending a response request to a preset software website, and acquiring website response data returned by the preset software website; the website response data at least comprises web pages, wherein each web page represents a web page of each software update information;
then, the processor 410 is specifically configured to crawl the web page response data of each web page: and respectively crawling each webpage, and respectively sending a response request to each webpage to obtain webpage response data returned by each webpage.
Optionally, after sending the response request to each of the webpages, the processor 410 is further configured to:
and if determining that webpage response data returned by any webpage in the webpages are not obtained, sending a response request to the webpage which does not respond, and if determining that the number of times of sending the response request to the webpage exceeds a preset number threshold value, and still not obtaining the returned webpage response data, stopping sending the response request to the webpage.
Optionally, the software update information at least includes a software name and version information;
the software update information in the web page response data of each web page is respectively matched with a preset software knowledge base, and the software update information meeting preset rules is screened out, and the processor 410 is specifically configured to:
respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, and screening out software updating information of which the software name is matched with the preset software knowledge base;
and screening out software updating information higher than the version information of the corresponding software in the preset software knowledge base according to the version information of the software updating information matched between the screened out software name and the preset software knowledge base.
Optionally, the processor 410 is further configured to:
and respectively acquiring the description information of the corresponding software updating package in the screened software updating information, and updating the description information of the updated software in the preset software knowledge base according to the description information of the software updating package.
Based on the above embodiments, in the embodiments of the present invention, there is provided a computer-readable storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the software updating method in any of the above method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (12)

1. A software update method, comprising:
respectively crawling to obtain webpage response data of each webpage; wherein, the webpage response data at least comprises software updating information;
respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information which accords with a preset rule;
respectively acquiring the corresponding software update addresses in the screened software update information;
and respectively downloading corresponding software updating packages according to the updating addresses of the software, and updating the corresponding software in the preset software knowledge base according to the downloaded software updating packages.
2. The method of claim 1, further comprising:
sending a response request to a preset software website, and acquiring website response data returned by the preset software website; the website response data at least comprises web pages, wherein each web page represents a web page of each software update information;
respectively crawling to obtain webpage response data of each webpage, and specifically comprising the following steps:
and respectively crawling each webpage, and respectively sending a response request to each webpage to obtain webpage response data returned by each webpage.
3. The method of claim 2, wherein after sending the response requests to the web pages, respectively, further comprising:
and if determining that webpage response data returned by any webpage in the webpages are not obtained, sending a response request to the webpage which does not respond, and if determining that the number of times of sending the response request to the webpage exceeds a preset number threshold value, and still not obtaining the returned webpage response data, stopping sending the response request to the webpage.
4. The method according to claim 1, wherein the software update information includes at least software name, version information;
respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information meeting preset rules, which specifically comprises the following steps:
respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, and screening out software updating information of which the software name is matched with the preset software knowledge base;
and screening out software updating information higher than the version information of the corresponding software in the preset software knowledge base according to the version information of the software updating information matched between the screened out software name and the preset software knowledge base.
5. The method of claim 1, further comprising:
and respectively acquiring the description information of the corresponding software updating package in the screened software updating information, and updating the description information of the updated software in the preset software knowledge base according to the description information of the software updating package.
6. A software update apparatus, comprising:
the crawling module is used for respectively crawling to obtain webpage response data of each webpage; wherein, the webpage response data at least comprises software updating information;
the screening module is used for respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base and screening out the software updating information meeting preset rules;
the acquisition module is used for respectively acquiring the corresponding software update addresses in the screened software update information;
and the updating module is used for respectively downloading the corresponding software updating packages according to the updating addresses of the software and updating the corresponding software in the preset software knowledge base according to the downloaded software updating packages.
7. The apparatus of claim 6, wherein the crawling module is further to:
sending a response request to a preset software website, and acquiring website response data returned by the preset software website; the website response data at least comprises web pages, wherein each web page represents a web page of each software update information;
when the webpage response data of each webpage are obtained by crawling respectively, the crawling module is specifically configured to:
and respectively crawling each webpage, and respectively sending a response request to each webpage to obtain webpage response data returned by each webpage.
8. The apparatus of claim 7, wherein after sending the response requests to the respective web pages, the crawling module is further configured to:
and if determining that webpage response data returned by any webpage in the webpages are not obtained, sending a response request to the webpage which does not respond, and if determining that the number of times of sending the response request to the webpage exceeds a preset number threshold value, and still not obtaining the returned webpage response data, stopping sending the response request to the webpage.
9. The apparatus of claim 6, wherein the software update information includes at least a software name, version information;
respectively matching the software updating information in the webpage response data of each webpage with a preset software knowledge base, and screening out the software updating information meeting preset rules, wherein the screening module is specifically used for:
respectively matching the software name in the webpage response data of each webpage with a preset software knowledge base, and screening out software updating information of which the software name is matched with the preset software knowledge base;
and screening out software updating information higher than the version information of the corresponding software in the preset software knowledge base according to the version information of the software updating information matched between the screened out software name and the preset software knowledge base.
10. The apparatus of claim 6, wherein the obtaining module is further configured to:
respectively acquiring the description information of the corresponding software update package in the screened software update information;
the update module is further configured to: and updating the description information of the updated software in the preset software knowledge base according to the description information of the software updating package.
11. A computer device, comprising:
at least one memory for storing a computer program;
at least one processor adapted to implement the steps of the method according to any of claims 1-5 when executing a computer program stored in a memory.
12. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program realizing the steps of the method according to any of claims 1-5 when executed by a processor.
CN201811317773.7A 2018-11-07 2018-11-07 Software updating method and device Pending CN111158713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811317773.7A CN111158713A (en) 2018-11-07 2018-11-07 Software updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811317773.7A CN111158713A (en) 2018-11-07 2018-11-07 Software updating method and device

Publications (1)

Publication Number Publication Date
CN111158713A true CN111158713A (en) 2020-05-15

Family

ID=70555293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811317773.7A Pending CN111158713A (en) 2018-11-07 2018-11-07 Software updating method and device

Country Status (1)

Country Link
CN (1) CN111158713A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503564A (en) * 2016-10-26 2017-03-15 上海携程商务有限公司 The discovery method and system of software vulnerability

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503564A (en) * 2016-10-26 2017-03-15 上海携程商务有限公司 The discovery method and system of software vulnerability

Similar Documents

Publication Publication Date Title
US10887171B2 (en) Routing configuration method of view files, storage medium, terminal device and apparatus
CN109376291B (en) Website fingerprint information scanning method and device based on web crawler
CN106815135B (en) Vulnerability detection method and device
CN110851681B (en) Crawler processing method, crawler processing device, server and computer readable storage medium
CN103078945B (en) To the method and system that browser crash data processes
CN106873952B (en) Data processing system and method for mobile terminal webpage development and application device
CN111078637B (en) Script file online method and device, computer equipment and storage medium
CN110084486B (en) Resource management method and device
CN112579476B (en) Method and device for aligning vulnerability and software and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
WO2022012327A1 (en) Code analysis method and system, and computing device
CN115033894A (en) Software component supply chain safety detection method and device based on knowledge graph
US9760470B2 (en) Device, method, and program analysis of new source code to be added to execution program to check for bug
CN108829575B (en) Test case recommendation method, electronic device and readable storage medium
CN111966630B (en) File type detection method, device, equipment and medium
CN111046316B (en) Application on-shelf state monitoring method, intelligent terminal and storage medium
CN110874475A (en) Vulnerability mining method, vulnerability mining platform and computer readable storage medium
CN117194398A (en) Abnormal file processing method and device, storage medium and electronic equipment
CN112560030A (en) File monitoring method and device, electronic equipment and computer readable storage medium
CN111158713A (en) Software updating method and device
WO2020133083A1 (en) Systems and methods for development of web products
CN110968779A (en) Processing method and device for crawling webpage information
CN111400245B (en) Art resource migration method and device
CN112464242A (en) Webpage platform vulnerability collection method, system, terminal and storage medium
CN111736848A (en) Packet conflict positioning method and device, electronic equipment and readable 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200515

WD01 Invention patent application deemed withdrawn after publication