Update determination method and device and computer readable storage medium
By obtaining web page screenshots and historical update moments of the target web page, using OCR and regular expressions to identify the update moments, directly judge whether the data is updated, solving the problem of low efficiency in update determination in the prior art, and achieving efficient update judgment.
Patent Information
- Application Number
- CN202410920470.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-15
AI Technical Summary
The existing methods of obtaining data update information through crawler technology or hook technology are inefficient and are easily blocked by anti-crawler technology and reverse hook technology, resulting in low update determination efficiency.
By obtaining web page screenshots and historical update moments of the target web page, using OCR to identify text information and regular expressions to determine the update moments, avoid using crawler or hook technology, and directly judge whether the data is updated.
Improve the efficiency of update determination, avoid the influence of anti-crawler and anti-hook technologies, and ensure the accuracy and efficiency of update judgments.
Smart Images

Figure CN118964879A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an update determination method, device, and computer-readable storage medium. Background Art
[0002] To determine whether target data (such as application audit standard data, software development kit (SDK) data or application data) has been updated, existing solutions usually obtain update information of target data from external websites through crawler technology or hook technology, and then determine whether the target data has been updated based on the update information.
[0003] However, since there are problems with the non-standard behavior of obtaining data through crawler technology or hook technology, and external websites are often configured with anti-crawler technology or hook technology, the efficiency of update determination is low. Summary of the invention
[0004] The present application provides an update determination method, device, and computer-readable storage medium, which can improve the efficiency of update determination.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, an update determination method is provided, the method comprising: obtaining a screenshot of a target web page and a historical update time; the target web page is used to publish update information of target data, the web page screenshot comprises a target update time, the target update time is the time when the update information is published, and the historical update time is the time when the target data was last updated; determining the target update time in the web page screenshot; and determining that the target data has been updated when the target update time is later than the historical update time.
[0007] Compared with the existing solutions for determining whether the target data has been updated through crawler technology or hook technology, in the solution of the present application, since the target web page is used to publish the update information of the target data, a web page screenshot of the target web page including the target update time and the historical update time of the last update of the target data is obtained, and then the target update time in the web page screenshot is determined. Thereafter, if the target update time is later than the historical update time, it means that the target data has been updated after the historical update time, and it can be determined that the target data has been updated without the use of crawler technology or hook technology, thereby avoiding the influence of relevant specifications, anti-crawler technology or hook technology on the determination of the update, thereby improving the efficiency of update determination.
[0008] In combination with the first aspect, in certain embodiments of the first aspect, determining the target update time in the web page screenshot includes: identifying text information in the web page screenshot based on OCR; determining the target update time based on the text information and a target regular expression; and the target regular expression is used to determine the update time in the text information.
[0009] Based on this scheme, since the target regular expression is used to determine the update time in the text information, the text information in the web page screenshot can be identified based on OCR, and then the target update time is determined based on the text information and the target regular expression, thereby realizing the scheme of identifying the target update time in the web page screenshot.
[0010] In combination with the first aspect, in certain embodiments of the first aspect, the target update time is determined based on text information and a target regular expression, including: inputting the text information into the target regular expression to obtain at least one update time; and determining the latest update time among the at least one update time as the target update time.
[0011] Based on this scheme, text information is input into the target regular expression to obtain at least one update time. Since a web page screenshot may include multiple update times, the latest update time can be determined as the target update time by determining the latest update time of at least one update time as the target update time, thereby improving the accuracy of the determined target update time.
[0012] In combination with the first aspect, in certain embodiments of the first aspect, obtaining a screenshot of a target webpage includes: obtaining a target list; the target list includes an address of the target webpage; opening the address of the target webpage to obtain the target webpage; and obtaining a screenshot based on the target webpage.
[0013] Based on this solution, by obtaining a target list including the address of a target web page, and then opening the address of the target web page to obtain the target web page, and then being able to obtain a web page screenshot based on the target web page, the solution of obtaining a web page screenshot of the target web page is implemented.
[0014] In combination with the first aspect, in certain implementations of the first aspect, the target list also includes a historical update time, and when the target update time is later than the historical update time, the method further includes: replacing the historical update time in the target list with the target update time.
[0015] Based on this solution, when the target list also includes the historical update time, if the target update time is later than the historical update time, the historical update time can be updated by replacing the historical update time in the target list with the target update time.
[0016] In combination with the first aspect, in certain embodiments of the first aspect, the target list also includes a communication identifier of a manager of the target data. When the target update time is later than the historical update time, the method also includes: generating an update indication message; the update indication message is used to indicate that the target data has been updated; and sending the update indication message to the communication identifier.
[0017] Based on this scheme, when the target list also includes historical update time, if the target update time is later than the historical update time, an update indication message is generated to indicate that the target data has been updated, and then the update indication message is sent to the communication identifier, so that the manager can be informed that the target data has been updated.
[0018] In a second aspect, an update determination device is provided for implementing the update determination method of the first aspect. The update determination device includes a module, unit, or means corresponding to the above method, and the module, unit, or means can be implemented by hardware, software, or hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions.
[0019] In combination with the second aspect, in certain embodiments of the second aspect, the device includes: an acquisition module and a processing module; the acquisition module is used to acquire a web page screenshot and a historical update time of the target web page; the target web page is used to publish update information of the target data, and the web page screenshot includes a target update time, the target update time is the time when the update information is published, and the historical update time is the time when the target data was last updated; the processing module is used to determine the target update time in the web page screenshot; the processing module is also used to determine that the target data has been updated when the target update time is later than the historical update time.
[0020] In combination with the second aspect, in certain embodiments of the second aspect, the processing module is used to determine the target update time in the web page screenshot, including: identifying the text information in the web page screenshot based on OCR; determining the target update time based on the text information and the target regular expression; the target regular expression is used to determine the update time in the text information.
[0021] In combination with the second aspect, in certain embodiments of the second aspect, a processing module is used to determine a target update time based on text information and a target regular expression, including: inputting text information into the target regular expression to obtain at least one update time; and determining the latest update time of at least one update time as the target update time.
[0022] In combination with the second aspect, in certain embodiments of the second aspect, the acquisition module is used to obtain a screenshot of the target web page, including: obtaining a target list; the target list includes the address of the target web page; opening the address of the target web page to obtain the target web page; and obtaining a screenshot based on the target web page.
[0023] In combination with the second aspect, in certain embodiments of the second aspect, the target list also includes a historical update time. When the target update time is later than the historical update time, the processing module is further used to: replace the historical update time in the target list with the target update time.
[0024] In combination with the second aspect, in certain embodiments of the second aspect, the target list also includes the communication identifier of the manager of the target data. When the target update time is later than the historical update time, the processing module is also used to: generate an update indication message; the update indication message is used to indicate that the target data has been updated; and send the update indication message to the communication identifier.
[0025] According to a third aspect, an update determination device is provided, comprising: at least one processor and a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions to implement a method as provided in the first aspect and any possible implementation manner thereof.
[0026] In a fourth aspect, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an update determination device, the update determination device is enabled to perform the method provided in the first aspect and any possible implementation manner thereof.
[0027] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the method provided in the first aspect and any possible implementation manner thereof.
[0028] In the sixth aspect, a chip system is provided, comprising: a processor and an interface circuit; the interface circuit is used to receive a computer program or instruction and transmit it to the processor; the processor is used to execute the computer program or instruction so that the chip system performs the method provided in the first aspect above and any possible implementation manner thereof.
[0029] Among them, the technical effects brought about by any implementation of the second to sixth aspects can refer to the technical effects brought about by different implementations of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of the architecture of an update determination system provided for this application;
[0031] Figure 2A flowchart of an update determination method provided in this application;
[0032] Figure 3 A flowchart of another update determination method provided in this application;
[0033] Figure 4 A flowchart of another update determination method provided in this application;
[0034] Figure 5 A flowchart of another update determination method provided in this application;
[0035] Figure 6 A flowchart of another update determination method provided in this application;
[0036] Figure 7 A schematic diagram of the structure of an update determination device provided in this application;
[0037] Figure 8 A schematic diagram of the structure of another update determination device provided in the present application. DETAILED DESCRIPTION
[0038] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0039] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0040] Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0041] It is understood that the "embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the various embodiments in the entire specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It is understood that in various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0042] It can be understood that in the present application, "when", "if" and "if" all mean that corresponding processing will be carried out under certain objective circumstances, but do not limit the time, nor do they require judgment actions when implementing them, nor do they mean the existence of other limitations.
[0043] It can be understood that some optional features in the embodiments of the present application may be implemented independently in certain scenarios without relying on other features, such as the solution on which they are currently based, to solve corresponding technical problems and achieve corresponding effects, or may be combined with other features according to needs in certain scenarios. Accordingly, the devices provided in the embodiments of the present application may also realize these features or functions accordingly, which will not be elaborated here.
[0044] In this application, unless otherwise specified, the same or similar parts between the various embodiments can refer to each other. In the various embodiments in this application, and the various implementation methods in each embodiment, if there is no special description and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The following implementation methods of this application do not constitute a limitation on the scope of protection of this application.
[0045] Figure 1 This is a schematic diagram of the architecture of an update determination system provided by the present application. The technical solution of the embodiment of the present application can be applied to Figure 1 The update determination system shown, such as Figure 1 As shown, the update determination system 10 includes an update determination device 11 and an electronic device 12 .
[0046] The update determination device 11 is directly or indirectly connected to the electronic device 12. In this connection relationship, a wired connection or a wireless connection may be adopted, which is not limited in the embodiment of the present application.
[0047] Data can be exchanged between the update determination device 11 and the electronic device 12 .
[0048] It should be noted that the update determination device 11 and the electronic device 12 can be independent devices or integrated into the same device, and this application does not make any specific limitation on this.
[0049] When the update determination device 11 and the electronic device 12 are integrated into the same device, the communication between the update determination device 11 and the electronic device 12 is the communication between the internal modules of the device. In this case, the communication process between the two is the same as the "communication process between the two when the update determination device 11 and the electronic device 12 are independent of each other".
[0050] In the following embodiments provided in the present application, the present application is described by taking the example that the update determination device 11 and the electronic device 12 are independently configured.
[0051] In practical applications, the update determination method provided in the embodiment of the present application can be applied to the update determination device 11, and can also be applied to the device included in the update determination device 11.
[0052] The following describes the update determination method provided in the embodiment of the present application by taking the application of the update determination method to the update determination device 11 as an example in conjunction with the accompanying drawings.
[0053] Figure 2 A flowchart of an update determination method provided in this application is shown as follows: Figure 2 As shown, the method comprises the following steps:
[0054] S201. The update determination device obtains a webpage screenshot and a historical update time of a target webpage.
[0055] The target webpage is used to publish update information of the target data, and the webpage screenshot includes the target update time, which is the time when the update information is published, and the historical update time is the time when the target data was last updated.
[0056] It should be noted that the update information may be specific data updated by the target data, or the update information may be indication information indicating that the target data has been updated, and this application does not impose any specific restrictions on this.
[0057] The target data may be the application's audit standard data, SDK data or application data, and this application does not impose any specific restrictions on this.
[0058] As a possible implementation, combining Figure 1The update determination device receives a message from an electronic device, the message including a webpage screenshot and a historical update time of a target webpage, and the update determination device obtains the webpage screenshot and the historical update time of the target webpage from the message.
[0059] As another possible implementation method, combining Figure 1 The update determination device receives a message from an electronic device, the message including a target list, wherein the target list includes an address and a historical update time of a target web page.
[0060] The update determination device obtains a target list from the message, and obtains the address and historical update time of the target web page from the target list.
[0061] Thereafter, the update determination device opens the address of the target webpage, obtains the target webpage, and obtains a webpage screenshot based on the target webpage.
[0062] It should be noted that, in this possible implementation, the specific instructions for obtaining a screenshot of a web page can refer to the relevant instructions in the subsequent parts of the specific implementation method of this application, and this application will not explain it here.
[0063] S202: The update determination device determines a target update time in the webpage screenshot.
[0064] As a possible implementation manner, the update determination device recognizes text information in the webpage screenshot based on optical character recognition (OCR), and then determines the target update time according to the text information and a target regular expression.
[0065] The target regularization is used to determine the update time in the text information.
[0066] It should be noted that the specific description of this possible implementation method can refer to the relevant description in the subsequent part of the specific implementation method of this application, and this application will not explain it here.
[0067] S203: When the target update time is later than the historical update time, the update determination device determines that the target data is updated.
[0068] As a possible implementation manner, the update determination device determines whether the target update time is later than the historical update time to obtain a determination result.
[0069] If the determination result indicates that the target update time is later than the historical update time, the update determination device determines that the target data is updated.
[0070] If the determination result indicates that the target update time is not later than the historical update time, the update determination means determines that the target data is not updated.
[0071] Compared with the existing solutions for determining whether the target data has been updated through crawler technology or hook technology, in the solution of the present application, since the target web page is used to publish the update information of the target data, a web page screenshot of the target web page including the target update time and the historical update time of the last update of the target data is obtained, and then the target update time in the web page screenshot is determined. Thereafter, if the target update time is later than the historical update time, it means that the target data has been updated after the historical update time, and it can be determined that the target data has been updated without the use of crawler technology or hook technology, thereby avoiding the influence of relevant specifications, anti-crawler technology or hook technology on the determination of the update, thereby improving the efficiency of update determination.
[0072] The above is a general description of the update determination method provided in the present application. The following will further describe the update determination method provided in the present application in conjunction with the accompanying drawings.
[0073] In one design, Figure 3 A flowchart of another update determination method provided in this application is as follows: Figure 3 As shown, S202 provided in the specific implementation manner of the present application may specifically include the following multiple steps:
[0074] S301, the update determination device recognizes text information in the webpage screenshot based on OCR.
[0075] As a possible implementation manner, the update determination device calls the OCR SDK to recognize the webpage screenshot and obtain the text information in the webpage screenshot.
[0076] S302: The update determination device determines a target update time according to the text information and the target regular expression.
[0077] The target regular expression is used to determine the update time in the text information.
[0078] It should be noted that the target regular expression can be "\d{4}-\d{1,2}\s\d{1,2}-\d{2}". Of course, the target regular expression can also be other regular expressions, and this application does not make any specific restrictions on this.
[0079] It should be noted that the specific description of the target regular expression example can refer to the existing solution, and this application will not explain it again here.
[0080] As a possible implementation manner, the update determination device inputs text information into a target regular expression to obtain at least one update time, and then determines the latest update time among the at least one update time as the target update time.
[0081] It should be noted that the specific description of this possible implementation method can refer to the relevant description in the subsequent part of the specific implementation method of this application, and this application will not explain it here.
[0082] Based on this scheme, since the target regular expression is used to determine the update time in the text information, the text information in the web page screenshot can be identified based on OCR, and then the target update time is determined based on the text information and the target regular expression, thereby realizing the scheme of identifying the target update time in the web page screenshot.
[0083] In one design, Figure 4 A flowchart of another update determination method provided in this application is as follows: Figure 4 As shown, S302 provided in the specific implementation manner of the present application may specifically include the following multiple steps:
[0084] S401. An update determination device inputs text information into a target regular expression to obtain at least one update time.
[0085] It should be noted that after the update determination device inputs the text information into the target regular expression, the target regular expression can output at least one update time, thereby obtaining at least one update time.
[0086] If the target regular expression cannot output the result correctly, the administrator can be notified to adjust the target regular expression so that the target regular expression can output the result correctly.
[0087] S402: The update determination device determines the latest update time among at least one update time as the target update time.
[0088] As a possible implementation manner, the update determination device arranges at least one update time in order from earliest to latest, and determines the last update time as the target update time.
[0089] Based on this scheme, text information is input into the target regular expression to obtain at least one update time. Since a web page screenshot may include multiple update times, the latest update time can be determined as the target update time by determining the latest update time of at least one update time as the target update time, thereby improving the accuracy of the determined target update time.
[0090] In one design, Figure 5 A flowchart of another update determination method provided in this application is as follows: Figure 5 As shown, in a specific implementation of the present application, the update determination device obtains a webpage screenshot of the target webpage, which may specifically include the following steps:
[0091] S501, updating the determination device to obtain a target list.
[0092] The target list includes addresses of target web pages.
[0093] It should be noted that the target list may also include historical updates, the communication identifier of the administrator of the target data and / or the identifier of the target data, and this application does not impose any specific restrictions on this.
[0094] A target list can also be called a list collection.
[0095] The communication identifier may include an email address, mobile phone number and / or instant messaging identifier, and this application does not impose any specific restrictions on this.
[0096] As a possible implementation, combining Figure 1 The update determination device receives a message from an electronic device, the message includes a target list, and the update determination device obtains the target list from the message.
[0097] S502: The update determination device opens the address of the target web page to obtain the target web page.
[0098] As a possible implementation method, the update determination device uses webview to open the address of the target webpage to obtain the target webpage.
[0099] S503: The update determination device obtains a webpage screenshot based on the target webpage.
[0100] As a possible implementation manner, the update determination device maximizes the target webpage, and then adjusts the zoom ratio of the target webpage to 80%, and then takes a screen shot to obtain a webpage screenshot.
[0101] As another possible implementation manner, after the update determination device opens the target webpage, it takes a screen shot to obtain a webpage screenshot.
[0102] Based on this solution, by obtaining a target list including the address of a target web page, and then opening the address of the target web page to obtain the target web page, and then being able to obtain a web page screenshot based on the target web page, the solution of obtaining a web page screenshot of the target web page is implemented.
[0103] In one design, the target list also includes a historical update time. When the target update time is later than the historical update time, the update determination method provided by the present application may further include the following steps:
[0104] The update determination means replaces the historical update time in the target list with the target update time.
[0105] As a possible implementation manner, the update determination device deletes the historical update time in the target list and adds the target update time to the target list.
[0106] Based on this solution, when the target list also includes the historical update time, if the target update time is later than the historical update time, the historical update time can be updated by replacing the historical update time in the target list with the target update time.
[0107] In one design, the target list also includes a communication identifier of a manager of the target data. In the case where the target update time is later than the historical update time, Figure 6 A flowchart of another update determination method provided in this application is as follows: Figure 6 As shown, the update determination method provided by the present application may also include the following steps:
[0108] S601. An update determination device generates an update indication message.
[0109] The update indication message is used to indicate that the target data is updated.
[0110] As a possible implementation manner, the update determination device encapsulates indication information for indicating that the target data is updated to obtain an update indication message.
[0111] S602: The update determination device sends an update indication message to the communication identifier.
[0112] As a possible implementation manner, the update determination device sends an update indication message to the communication identifier via the Internet.
[0113] Based on this scheme, when the target list also includes historical update time, if the target update time is later than the historical update time, an update indication message is generated to indicate that the target data has been updated, and then the update indication message is sent to the communication identifier, so that the manager can be informed that the target data has been updated.
[0114] In one design, the solution of the present application can be executed regularly, for example, it can be executed at 1 a.m. every day.
[0115] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the update determination device executing the update determination method. In order to achieve the above functions, the update determination device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0116] The embodiment of the present application can divide the functional modules of the update determination device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic, which is only a logical function division, and there may be other division methods in actual implementation. In addition, the "module" here may refer to a specific application-specific integrated circuit (ASIC), a circuit, a processor and memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above functions.
[0117] In the case of functional module division, Figure 7 FIG. 2 shows a schematic diagram of the structure of an update determination device. Figure 7 As shown, the update determination device 70 includes an acquisition module 701 and a processing module 702 .
[0118] In some embodiments, the update determination device 70 may further include a storage module ( Figure 7 ), for storing program instructions and data.
[0119] Among them, the acquisition module 701 is used to obtain a screenshot of the target web page and the historical update time; the target web page is used to publish the update information of the target data, and the web page screenshot includes the target update time, the target update time is the publishing time of the update information, and the historical update time is the time when the target data was last updated; the processing module 702 is used to determine the target update time in the web page screenshot; the processing module 702 is also used to determine that the target data has been updated when the target update time is later than the historical update time.
[0120] Optionally, processing module 702 is used to determine the target update time in the web page screenshot, including: identifying text information in the web page screenshot based on OCR; determining the target update time according to the text information and a target regular expression; and the target regular expression is used to determine the update time in the text information.
[0121] Optionally, the processing module 702 is used to determine the target update time according to the text information and the target regular expression, including: inputting the text information into the target regular expression to obtain at least one update time; determining the latest update time among the at least one update time as the target update time.
[0122] Optionally, the acquisition module 701 is used to acquire a screenshot of a target web page, including: acquiring a target list; the target list includes the address of the target web page; opening the address of the target web page to obtain the target web page; and obtaining a screenshot based on the target web page.
[0123] Optionally, the target list also includes a historical update time. When the target update time is later than the historical update time, the processing module 702 is further used to replace the historical update time in the target list with the target update time.
[0124] Optionally, the target list also includes the communication identifier of the manager of the target data. When the target update time is later than the historical update time, the processing module 702 is also used to: generate an update indication message; the update indication message is used to indicate that the target data has been updated; and send the update indication message to the communication identifier.
[0125] All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.
[0126] When the functions of the above functional modules are implemented in the form of hardware, Figure 8 FIG. 4 shows a schematic diagram of the structure of another update determination device. Figure 8 As shown, the update determination device 80 includes a processor 801, a memory 802 and a bus 803. The processor 801 and the memory 802 may be connected via the bus 803.
[0127] The processor 801 is the control center of the update determination device 80, which can be a processor or a general term for multiple processing elements. For example, the processor 801 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0128] As an embodiment, the processor 801 may include one or more CPUs, such as Figure 8 CPU0 and CPU1 are shown in the figure.
[0129] The memory 802 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0130] As a possible implementation, the memory 802 may exist independently of the processor 801, and the memory 802 may be connected to the processor 801 via a bus 803 to store instructions or program codes. When the processor 801 calls and executes the instructions or program codes stored in the memory 802, the update determination method provided in the embodiment of the present application can be implemented.
[0131] In another possible implementation, the memory 802 may also be integrated with the processor 801 .
[0132] The bus 803 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0133] It should be pointed out that Figure 8 The structure shown does not constitute a limitation on the update determination device 80. Figure 8 In addition to the components shown, the update determination device 80 may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0134] As an example, combining Figure 7 The functions implemented by the acquisition module 701 and the processing module 702 in the update determination device 70 are the same as those implemented by Figure 8 The function of processor 801 in is the same.
[0135] Optional, such as Figure 8 As shown, the update determination device 80 provided in the embodiment of the present application may further include a communication interface 804 .
[0136] The communication interface 804 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 804 may include a receiving unit for receiving data and a sending unit for sending data.
[0137] In a possible implementation, in the update determination device 80 provided in the embodiment of the present application, the communication interface 804 may also be integrated in the processor 801, which is not specifically limited in the embodiment of the present application.
[0138] As a possible product form, the update determination device of the embodiment of the present application can also be implemented using the following: one or more field programmable gate arrays (FPGA), programmable logic devices (PLD), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout the present application.
[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0140] An embodiment of the present application also provides a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed, the computer executes each step in the method flow shown in the above method embodiment.
[0141] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer is caused to execute each step in the method flow shown in the above method embodiment.
[0142] An embodiment of the present application provides a chip system, including: a processor and an interface circuit; the interface circuit is used to receive a computer program or instruction and transmit it to the processor; the processor is used to execute the computer program or instruction so that the chip system executes each step in the method flow shown in the above method embodiment.
[0143] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage media in a suitable combination of the above, or numerical values in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in a specific-purpose ASIC. In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0144] Since the update determination device, computer-readable storage medium, and computer program product provided in this embodiment can be applied to the update determination method provided by this embodiment, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of this application will not be repeated here.
[0145] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0146] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An update determination method, It is characterized in that The method comprises: Obtaining a webpage screenshot and historical update time of a target webpage; the target webpage is used to publish update information of target data, the webpage screenshot includes the target update time, the target update time is the time when the update information is published, and the historical update time is the time when the target data was last updated; Determining the target update time in the webpage screenshot; When the target update time is later than the historical update time, it is determined that the target data is updated.
2. The method according to claim 1, It is characterized in that The determining the target update time in the webpage screenshot includes: Recognize text information in the webpage screenshot based on optical character recognition (OCR); The target update time is determined according to the text information and the target regular expression; the target regular expression is used to determine the update time in the text information.
3. The method according to claim 2, It is characterized in that The step of determining the target update time according to the text information and the target regular expression includes: Inputting the text information into the target regular expression to obtain at least one update time; The latest update time among the at least one update time is determined as the target update time.
4. The method according to any one of claims 1 to 3, It is characterized in that Obtaining a screenshot of the target webpage includes: Obtaining a target list; the target list includes addresses of target web pages; Open the address of the target webpage to obtain the target webpage; The webpage screenshot is obtained based on the target webpage.
5. The method according to claim 4, It is characterized in that The target list also includes the historical update time. When the target update time is later than the historical update time, the method further includes: The historical update time in the target list is replaced with the target update time.
6. The method according to claim 4, It is characterized in that The target list also includes a communication identifier of a manager of the target data. In the case where the target update time is later than the historical update time, the method further includes: Generate an update indication message; the update indication message is used to indicate that the target data is updated; Sending the update indication message to the communication identifier.
7. An update determination device, It is characterized in that The device comprises: an acquisition module and a processing module; The acquisition module is used to acquire a webpage screenshot and a historical update time of a target webpage; the target webpage is used to publish update information of target data, the webpage screenshot includes the target update time, the target update time is the time when the update information is published, and the historical update time is the time when the target data was last updated; The processing module is used to determine the target update time in the webpage screenshot; The processing module is further configured to determine that the target data is updated when the target update time is later than the historical update time.
8. The device according to claim 7, It is characterized in that The processing module is used to determine the target update time in the webpage screenshot, including: Recognize text information in the webpage screenshot based on optical character recognition (OCR); The target update time is determined according to the text information and the target regular expression; the target regular expression is used to determine the update time in the text information.
9. An update determination device, It is characterized in that The update determination device comprises: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the device executes the method according to any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program or instructions stored thereon, It is characterized in that When the computer program or instructions are executed, the computer is caused to perform the method according to any one of claims 1 to 6.
