Search result style monitoring method and apparatus
By comparing the images of search results cards, the problem of incomplete monitoring caused by only monitoring changes in the identifier in existing technologies is solved, and comprehensive monitoring of search results cards is achieved, detecting changes in card content and style.
Patent Information
- Application Number
- CN202210163845.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-02-22
AI Technical Summary
Existing technologies only monitor changes in the identifiers of search result cards, resulting in a lack of comprehensive monitoring of search result cards and an inability to detect changes in card styles.
By acquiring and comparing images of search result cards, it can be determined whether the style of the search result cards has changed, thus enabling comprehensive monitoring of the search result cards.
It enables comprehensive monitoring of search result cards, detecting changes in card content and style, thus enhancing the diversity and comprehensiveness of monitoring.
Smart Images

Figure CN114880595B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of intelligent search in computer technology, and particularly relates to a search result style monitoring method and device. BACKGROUND
[0002] After searching for a keyword in a search engine, a plurality of search result cards are usually obtained, and monitoring the search result cards is of great significance.
[0003] At present, in the prior art, when monitoring the search result cards, the identification of the search result cards is determined, and whether the identification of the search result cards changes is determined, and then whether the search result cards are updated and the like can be determined.
[0004] However, merely monitoring the change of the identification of the search result cards will result in a lack of comprehensiveness of the monitoring of the search result cards. SUMMARY
[0005] The present disclosure provides a search result style monitoring method and device.
[0006] According to a first aspect of the present disclosure, a search result style monitoring method is provided, comprising:
[0007] searching for a first keyword by a search engine to obtain a first search result, the first search result comprising a plurality of result cards;
[0008] obtaining a first image of an Nth result card in the first search result, the N being an integer greater than or equal to 1;
[0009] obtaining a second image of the Nth result card in a historical search result, the historical search result being obtained by searching for the first keyword by the search engine in a historical period;
[0010] determining a test result of the search engine according to the first image and the second image, the test result being used to indicate whether the first search result and the historical search result are the same or different.
[0011] According to a second aspect of the present disclosure, a search result style monitoring device is provided, comprising:
[0012] a processing module configured to search for a first keyword by a search engine to obtain a first search result, the first search result comprising a plurality of result cards;
[0013] a first obtaining module configured to obtain a first image of an Nth result card in the first search result, the N being an integer greater than or equal to 1;
[0014] a second acquisition module, configured to acquire a second image of an Nth result card in a historical search result, the historical search result being obtained by searching the first keyword by using the search engine in a historical period;
[0015] a determination module, configured to determine a test result of the search engine according to the first image and the second image, the test result being used to indicate whether the first search result and the historical search result are the same or different.
[0016] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0017] at least one processor; and
[0018] a memory connected with the at least one processor in communication; wherein,
[0019] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the first aspect.
[0020] According to a fourth aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to perform the method of the first aspect.
[0021] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising: a computer program stored in a readable storage medium, the computer program being readable by at least one processor of an electronic device, and the at least one processor executes the computer program to enable the electronic device to perform the method of the first aspect.
[0022] The technical solution of the present disclosure solves the problem of lack of comprehensiveness in monitoring of search result cards.
[0023] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0024] The accompanying drawings are used to better understand the present scheme, and do not limit the present disclosure. Among them:
[0025] Figure 1 An implementation schematic diagram of information search provided by the embodiments of the present disclosure;
[0026] Figure 2 An identification change schematic diagram of search result cards provided by the embodiments of the present disclosure;
[0027] Figure 3 A flowchart of a search result style monitoring method provided by an embodiment of the present disclosure is shown in FIG. 6;
[0028] Figure 4 A flowchart of a search result style monitoring method provided by an embodiment of the present disclosure is shown in FIG. 6; Figure 2
[0029] Figure 5 An implementation schematic diagram of a task queue provided by an embodiment of the present disclosure is shown in FIG. 7;
[0030] Figure 6 An implementation schematic diagram of a preset storage space provided by an embodiment of the present disclosure is shown in FIG. 8;
[0031] Figure 7 A style updating schematic diagram of a search result card provided by an embodiment of the present disclosure is shown in FIG. 9;
[0032] Figure 8 A flowchart of a search result style monitoring method provided by an embodiment of the present disclosure is shown in FIG. 6;
[0033] Figure 9 A structure schematic diagram of a search result style monitoring apparatus of an embodiment of the present disclosure is shown in FIG. 10;
[0034] Figure 10 A block diagram of an electronic device for implementing a search result style monitoring method of an embodiment of the present disclosure is shown in FIG. 11. DETAILED DESCRIPTION
[0035] Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to help in understanding, and should be considered as merely exemplary. Thus, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Also, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0036] In order to better understand the technical solutions of the present disclosure, the related technologies involved in the present disclosure are further described in detail below.
[0037] With the continuous development of Internet technology, various sites on the Internet provide people with rich and colorful information, so currently searching for information on the Internet through a search engine has become a very common way of obtaining information.
[0038] Firstly, the implementation of information search based on the search engine is introduced. In the implementation of the information search, the user inputs the search keyword through the client. The client can be an application client on a terminal device or a web client in a webpage. The specific implementation of the client is not limited in the disclosure. Then the search engine matches the search keyword with the webpage content in the database, and returns a plurality of search result cards with high relevance to the client or the web, and sorts the search results according to the relevance of the search result cards.
[0039] For example, it can be understood by referring to Figure 1 Figure 1 The implementation schematic diagram of the information search provided by the embodiment of the disclosure is provided.
[0040] Referring to Figure 1 , the client can receive the search keyword 101 input by the user. It is assumed that the search keyword received by the current client is "shoes will bring viruses home?", and the client can send the search keyword to the server when receiving the click operation of the user on the search control 102.
[0041] Then the server can match the search keyword with the webpage content in the database, so as to obtain a plurality of search results with high relevance to the search keyword, and send the content of the search results to the client.
[0042] In a possible implementation, the client can display the search results in the form of search result cards, as shown in Figure 1 The current client displays two search result cards, for example. Each search result card corresponds to a search result, which can be webpage content.
[0043] It is assumed that the client receives the click operation of the user on the search result card 103. The detailed webpage content corresponding to the search result card 103 can be displayed, such as the detailed content of "shoes will bring viruses home?".
[0044] Based on the above introduction, it can be understood that after the keyword search in the search engine, a plurality of search result cards are usually obtained, and monitoring the search result cards is of great significance. For example, the research and development party of the search engine can analyze whether the search result cards of other search engines are updated, so as to optimize the product itself. For another example, it can also be analyzed whether the display of the search result cards of the search engine is correct, and the like.
[0045] At present, in the prior art, when monitoring the search result card, the page structure of the search result is usually analyzed to determine the identification of the search result card at a specified position, and the identification of the current captured search result card is compared with the identification of the previously captured search result card. Because each search result in the Internet corresponds to a unique identification, whether the identification of the search result card changes can be determined, and then whether the search result card in the search page is updated and the like can be determined.
[0046] For example, the above-mentioned content can be understood in combination with Figure 2 To understand the above-mentioned content with a specific example, Figure 2 An identification change diagram of a search result card is provided for the embodiments of the present disclosure.
[0047] As Figure 2 shown, it is assumed that a search is currently performed in a search engine for the keyword "Shoes Will Bring Viruses Home?". A plurality of search result cards can be displayed in the current search result page 20. It is assumed that the identification of the search result card 203 at the first position in the search result page 20 is C. And it is assumed that a historical search result page 10 is obtained by searching for the keyword at a historical time, and the identification of the search result card 201 at the first position in the search result page 10 is A. Based on Figure 2 It can be determined that the search result card at the same position in the search results of the search engine for the same keyword is different, and then it can be determined that the search result card for the keyword in the search engine is updated.
[0048] It can be understood that the monitoring of the search result card in the prior art described above is only for the change of the identification of the search result card. Therefore, the monitoring of the search result card lacks comprehensiveness.
[0049] Specifically, whether the search result card is updated is determined only by the change of the identification of the search result card, which is actually not perfect. For example, if the style of the search result card changes under the same identification, that is, the search result card at the position is still the search result card with the same identification, but the style of the search result card changes, the above-mentioned monitoring cannot monitor the change of the search result card. The style change of the search result card may be, for example, font change, color change, structure change, picture change, and the like, which are not limited by the embodiments.
[0050] In view of the lack of comprehensiveness of the monitoring of the search result card in the prior art, the present disclosure proposes the following technical concept: by obtaining a screenshot of the search result card, whether the style of the search result card changes is compared, so as to improve the diversity and comprehensiveness of the monitoring of the search result card.
[0051] On the basis of the foregoing introduction, the search result style monitoring method provided by the present disclosure will be described in detail below in combination with specific embodiments. It should be noted that the execution subject of each embodiment in the present disclosure, such as a local server, a cloud server, and the like, can be a device as long as it can obtain related content of the search result card and has the ability of data processing. On this basis, the specific implementation of the execution subject can be selected and set according to actual needs.
[0052] First, the search result style monitoring method provided by the present disclosure will be described below in combination with Figure 3 Figure 3 the flowchart of the search result style monitoring method provided by the present disclosure.
[0053] As shown in Figure 3 , the method comprises the following steps.
[0054] S301, a first keyword is searched by a search engine to obtain a first search result, and the first search result comprises a plurality of result cards.
[0055] In the present embodiment, the first keyword may, for example, be a preset specified keyword. It can also be understood that the search engine is various, and the results obtained by different search engines for the same keyword will inevitably have some differences. Therefore, the current search engine may, for example, also be a specified search engine, and in actual application, it is usually necessary to analyze whether the search result card of a specific search engine changes.
[0056] Therefore, in the present embodiment, the preset first keyword may, for example, be searched by a specified search engine to obtain a first search result, and the first search result may comprise a plurality of result cards. The specific implementation of the search result card has been described in the foregoing embodiments, and will not be described here again.
[0057] S302, a first image of an Nth result card in the first search result is obtained, and N is an integer greater than or equal to 1.
[0058] The first search result may comprise a plurality of result cards. When comparing whether the style of the search result card changes, the search result cards at the same position in the search result are usually compared, and in order to determine whether the style of the search result card changes, the image of the search result card can be obtained.
[0059] Therefore, in this embodiment, the first image of the Nth result card in the first search result can be acquired, so as to analyze whether the style of the Nth result card changes subsequently. N is an integer greater than or equal to 1, and a specific implementation of N can be selected and set according to actual requirements, that is, the embodiment does not limit the specific image of which result card in the first search result to be acquired, which can be selected and set according to actual requirements.
[0060] S303, acquire a second image of the Nth result card in the historical search result, the historical search result being obtained by searching the first keyword through the search engine in a historical period.
[0061] In order to determine whether the style of the search result card at the corresponding position changes, the second image of the corresponding search result card in the historical search result also needs to be acquired in this embodiment.
[0062] The historical search result in this embodiment is obtained by searching the same first keyword through the same search engine in a historical period, and it can be understood that the historical search result also includes a plurality of result cards.
[0063] There is a premise to be introduced here, that is, the search result card at each position is always the same unless the search result changes, by searching the same keyword through the same search engine. For example, the search result obtained by searching the first keyword in a search engine includes search result card 1, search result card 2, search result card 3 and search result card 4 in turn. Then the next time the first keyword is searched in the search engine, the search result is still search result card 1, search result card 2, search result card 3 and search result card 4 in turn.
[0064] Based on the premise, the Nth result card in the first search result and the Nth result card in the historical search result are corresponding result cards, in order to determine whether the Nth result card changes, the second image of the Nth result card in the historical search result can be acquired.
[0065] S304, determine a test result of the search engine according to the first image and the second image, the test result being used to indicate that the first search result and the historical search result are the same or different.
[0066] It can be understood that the first image and the second image are images of the Nth result card in the search result of the same keyword acquired at different times, and then the test result of the search engine can be determined according to the comparison of the first image and the second image, and the test result in this embodiment is used to indicate that the first search result and the historical search result are the same or different.
[0067] Wherein, if the first search result and the historical search result are the same, it means that the search result card of the search engine has not changed, and the unchanged here includes the identification unchanged, and the style unchanged. And if the first search result and the historical search result are different, it means that the search result card of the search engine has changed, and the change may be that the identification has changed, that is, the content of the result card in the Nth position has changed directly, or it is also possible that the style of the search result card has changed, that is, the result card in the Nth position is still the result card, but the display style has been updated. Thus, the monitoring of the search result card can be comprehensively realized.
[0068] The search result style monitoring method provided by the present disclosure comprises: searching for a first keyword by a search engine to obtain a first search result, the first search result comprising a plurality of result cards. A first image of an Nth result card in the first search result is obtained, N being an integer greater than or equal to 1. A second image of the Nth result card in a historical search result is obtained, the historical search result being obtained by searching for the first keyword by the search engine within a historical period. According to the first image and the second image, a test result of the search engine is determined, the test result being used to indicate whether the first search result and the historical search result are the same or different. By obtaining a first image of a search result card in a specified position at a current time, and obtaining a second image of a search result card in a specified position at a historical time, and comparing the first image and the second image, it is determined whether the search results of the current search engine for the same keyword at different times are the same, so as to determine whether the search result card is updated, and thus the change of the search result card can be monitored comprehensively and effectively.
[0069] On the basis of the above-mentioned embodiments, the implementation of the search result style monitoring method provided by the present disclosure will be further described in detail, Figures 4 to 7 The implementation of the search result style monitoring method provided by the present disclosure will be further described in detail, Figure 4 The flow of the search result style monitoring method provided by the present disclosure Figure 2 , Figure 5 The implementation schematic diagram of the task queue provided by the present disclosure, Figure 6 The implementation schematic diagram of the preset storage space provided by the present disclosure, Figure 7 The style update schematic diagram of the search result card provided by the present disclosure.
[0070] As Figure 4 shown, the method comprises:
[0071] S401, obtaining a first task from a task queue, wherein the first task comprises a first keyword and an identification of a search engine.
[0072] In this embodiment, keyword searching via a search engine can be accomplished by creating tasks. For example, if it is necessary to test whether the search results card for a specific keyword changes, a task can be created targeting that search engine and that keyword. These tasks can then be stored in a task queue for sequential execution.
[0073] In one possible implementation, the first task can be retrieved from the task queue, as shown below. Figure 5 The task queue can include multiple tasks to be executed, for example Figure 5 In the example, the task queue includes Task 1, Task 2, Task 3, and Task 4. Each task can include keywords, a search engine identifier, and a card identifier, indicating that the specified keywords should be searched in the specified search engine, and that the image of the search result card corresponding to the card identifier should be retrieved.
[0074] For example Figure 5 Task 1 in this embodiment can be the first task, then refer to Figure 5 The first task includes the first keyword A and the identifier 1 of the search engine. The first task may also include the card identifier N. When the first task is executed, the first keyword A can be searched through the search engine 1, and the image of the Nth search result card can be obtained.
[0075] S402. Perform the first task: search for the first keyword using a search engine to obtain the first search result.
[0076] Based on the above description, it can be determined that the first task in this embodiment can instruct the search for specific keywords in a specific search engine. Therefore, in this embodiment, the first task can be executed to search for the first keyword through the search engine, thereby obtaining the first search result.
[0077] S403. Obtain card identifier N from the first task.
[0078] In this embodiment, after obtaining the first search result, it is also necessary to obtain the search result card of a specific position from the multiple search result cards in the first search result. In order to determine which specific position of the search result card to obtain, in this embodiment, the card identifier N can be obtained from the first task.
[0079] It is understood that the first keyword, the search engine identifier, and the card identifier N included in the first task can all be selected and set according to actual needs, and this embodiment does not impose any restrictions on this.
[0080] S404. According to the card identifier N, the Nth result card in the first search result is obtained.
[0081] After the card identifier N is obtained, the Nth result card in the plurality of search result cards in the first search result can be obtained according to the card identifier N.
[0082] S405. The Nth result card is image-captured to obtain a first image.
[0083] After the Nth result card is obtained, the Nth result card can be image-captured, which can also be understood as a general screenshot operation. In any case, the image displayed by the Nth result card is obtained, so that the first image of the Nth result card can be obtained.
[0084] S406. A second image of the Nth result card in the historical search result is obtained, the historical search result being obtained by searching the first keyword through the search engine within a historical period.
[0085] Based on the above description, it can be determined that, in order to determine whether the image of the result card has changed, in addition to obtaining the first image of the Nth result card in the first search result, the second image of the Nth result card in the historical search result also needs to be obtained.
[0086] It should be noted that in the present embodiment, for each task, after each task is executed once, the image of the search result card corresponding to the task is actually obtained. In order to facilitate subsequent comparison, the image of the search result card corresponding to the task obtained at present can be stored in a preset storage space.
[0087] In a possible implementation, in the preset storage space, there are images to be compared corresponding to various tasks. More specifically, for any task, the image to be compared corresponding to the task is actually the image of the search result card obtained when the task was last executed, so as to facilitate subsequent comparison.
[0088] For example, it can be understood in combination with Figure 6 As shown in Figure 6 For example, the images to be compared corresponding to various tasks can be stored in the preset storage space. For task 1, image 1 to be compared is stored. For task 2, image 2 to be compared is stored. For task 3, image 3 to be compared is stored. For task 4, no image to be compared is stored.
[0089] When the second image of the Nth result card in the historical search result is obtained, because the current first image is obtained by executing the first task, it can be determined whether the image to be compared corresponding to the first task is stored in the preset storage space.
[0090] If the image to be compared corresponding to the first task is stored in the preset storage space, the image to be compared in the preset storage space can be determined as the second image. For example, if task 1 in Figure 6 is the first task, the second image can be determined as image 1 in Figure 6 .
[0091] Alternatively, if the image to be compared corresponding to the first task is not stored in the preset storage space, the second image can be determined as empty. For example, if task 4 in Figure 6 is the first task, the second image can be determined as empty.
[0092] It should be noted that when the image to be compared corresponding to the first task is not stored in the preset storage space, it means that the first image obtained at present is the image obtained by executing the first task for the first time, so the image to be compared corresponding to the first task is not stored in the preset storage space, and the second image can be determined as empty. For example, task 4 in Figure 6 does not store the image to be compared, because task 4 has not been executed before.
[0093] In the embodiment, the second image is obtained to compare the first image and the second image to determine whether the search result card of the search engine for the corresponding keyword has changed, however, when the second image is empty, the first image has no comparison object, and because the first image is the card obtained by executing the first task for the first time, it can be directly determined that the test result is that the first search result and the historical search result are the same, that is, the search result card has not changed.
[0094] S407, image comparison is performed on the first image and the second image to obtain a comparison result.
[0095] After the second image is obtained, the first image and the second image can be compared, and a comparison result is obtained after the image comparison. The comparison result can indicate that the first image and the second image are the same, or the first image and the second image are different.
[0096] S408, if the comparison result is that the first image and the second image are the same, it is determined that the test result indicates that the first search result and the historical search result are the same.
[0097] In a possible implementation, if the comparison result is that the first image and the second image are the same, it can be determined that the Nth search result card in the search result obtained after the search engine searches the first keyword in the first task is unchanged, and it can be determined that the test result indicates that the first search result and the historical search result are the same.
[0098] S409, if the comparison result is that the first image and the second image are different, it is determined that the test result indicates that the first search result and the historical search result are different.
[0099] In another possible implementation, if the comparison result is that the first image and the second image are different, it can be determined that, in the first task, the Nth search result card in the search result obtained after searching the first keyword in the search engine has changed, which may be that the search result card itself has changed, for example, from one search result card to another search result card.
[0100] It is also possible that the search result card itself does not change, but the style of the same search result card changes. For example, the style change of the search result card can be understood in combination with Figure 7 As shown in Figure 7 , it is assumed that the current search in the search engine is for the keyword "Shoes Will Bring Viruses Home?" In the current search result page 40, a plurality of search result cards can be displayed. It is assumed that the search result card 701 in the first position of the search result page 40 is identified as A, and the style of the search result card 701 is style 2. And it is assumed that the historical search result page 30 is obtained by searching the keyword at the historical time, and the search result card 701 in the first position of the search result page 30 is identified as A, and the style of the search result card 701 is style 1.
[0101] Then based on Figure 7 It can be determined that, for the same keyword, the search result card in the same position in the two search results of the search engine is the same, which is the search result card 701 identified as A, but the styles of the search result card 701 in the two times are different, so it can be determined that the search engine updates the style of the search result card for the keyword.
[0102] When it is determined that the comparison result is that the first image and the second image are different, it can be determined that the test result indicates that the first search result and the historical search result are different.
[0103] In a possible implementation, when it is determined that the test result is that the first search result and the historical search result are different, for example, notification information can be sent to the target device, wherein the notification information is used to indicate that the first search result and the historical search result are different, so that relevant personnel determine the change of the search result card of the search engine and perform corresponding subsequent processing.
[0104] S410, update the image to be compared corresponding to the first task in the preset storage space as the first image.
[0105] After determining the test result, because each time when the image comparison is performed, the image obtained by the current execution of the task is compared with the image obtained by the last execution of the task, the image to be compared corresponding to the first task in the preset storage space can be updated to the first image obtained by the current execution of the first task, so as to facilitate the image comparison for the first task next time.
[0106] The search result style monitoring method provided by the embodiments of the present disclosure can search for a specified keyword through a specified search engine and obtain a search result card in a specified position by configuring and executing a task, so that the task can be executed multiple times to quickly and effectively determine whether the search result card of the specified search engine changes, effectively ensuring that the same task can be executed multiple times and facilitating subsequent comparison. Meanwhile, in the embodiments, the image obtained by the execution of the task is stored in a preset storage space after each execution of the task, so that the image to be compared can be directly obtained from the preset storage space when comparison is needed next time, thereby quickly and effectively achieving the acquisition of the second image at a historical moment to improve the speed and efficiency of search engine monitoring. In the embodiments, the first image and the second image of the Nth search result card are compared to determine whether the search result card of the current search engine changes, so that the update of the search result card can be comprehensively monitored from the content and identification of the search result card, and the comprehensiveness of the monitoring of the search result card is effectively improved.
[0107] On the basis of the above-mentioned embodiments, the following will be combined Figure 8 The implementation process of the search result style monitoring method provided by the present disclosure will be introduced systematically, Figure 8 The flowchart of the search result style monitoring method provided by the embodiments of the present disclosure.
[0108] As Figure 8 shown, after the beginning of the flow, a task can be submitted by a relevant operator, for example, the submission of the task can be realized by a task file. The task file can include the relevant information of each to-be-executed task, for example.
[0109] After the system receives the uploaded task file, the submitted task file can be read to create a task queue, and the task queue includes multiple to-be-executed tasks in the task file. Then, each task in the task queue is executed.
[0110] For example, first, the current first task is executed, and a first image is acquired according to the task information of the first task. The task information of the first task can include the first keyword, the identifier of the search engine, and the card identifier N introduced in the above embodiments. In this case, acquiring the first image according to the task information of the first task actually means searching the first keyword through the search engine to obtain a first search result and acquiring the first image of the Nth result card in the first search result. For a more detailed implementation of executing the first task to acquire the first image, refer to the description in the above embodiments, which will not be repeated here.
[0111] After the first task is executed, it is further determined whether the current first task is executed for the first time. If the current first task is executed for the first time, it is determined that the image to be compared corresponding to the first task is not stored in the preset storage space. Refer to the description in the above embodiments. Figure 8 For example, the current first image can be stored as the image to be compared corresponding to the first task. In a possible implementation, it is further determined that the test result of the search engine is that the search engine does not update the search result card.
[0112] Alternatively, if it is determined that the current first task is not executed for the first time, that is, the first task has been executed before, it is determined that the image to be compared corresponding to the first task is stored in the preset storage space. Therefore, the image to be compared corresponding to the first task can be acquired from the preset storage space to obtain a second image.
[0113] After the first image and the second image are acquired, the first image and the second image are compared to obtain a comparison result. The comparison result can indicate whether the first image and the second image are the same.
[0114] After the comparison result of the first image and the second image is obtained, it is determined that the first task has been executed. Then, whether a notification needs to be sent is determined according to the comparison result of the first image and the second image.
[0115] Specifically, if the comparison result indicates that the first image and the second image are the same, it is determined that the search engine does not update or modify the search result card. In this case, no notification needs to be sent, and the process corresponding to the first task ends. Alternatively, if the comparison result indicates that the first image and the second image are different, it is determined that the search engine updates or modifies the search result card. In this case, a notification message needs to be sent to the target device to quickly and effectively prompt the update of the search result card by the search engine.
[0116] It can be understood that the above description is for the implementation process of a task in the task queue, and each task in the task queue needs to be processed, so the next task in the task queue can be executed when it is determined that there is a remaining task in the task queue, and the implementation manner is similar to the above description, until each task in the task queue is executed.
[0117] Therefore, the search result style monitoring method provided by the embodiments of the present disclosure can more comprehensively monitor the update of the search result card through image comparison, and further realize the monitoring of the existing search result card from simple identification monitoring to more rich style monitoring. Thus, the problem that the optimization action of the related card cannot be monitored after the card style is upgraded under the same identification is solved, and the problems of affecting the research and development of the product and subsequent recall, upgrading of the corresponding card, etc. are avoided.
[0118] Meanwhile, it can be understood that the monitoring of the style change of the search result card can effectively analyze the optimization information of the remaining search engines, so as to help the user quickly master the industry and dynamics. Thus, the target analyzed by the user can be sampled or iterated to improve the current analysis service according to the user demand, and then the user demand is completed. Further, the user can collect the required data, promote business growth, and optimize the user experience of the business.
[0119] In addition, in the above implementation process, after the test result corresponding to any task is obtained, if it is determined that notification is needed, the notification service is directly called to send notification information to the target device, so as to ensure the timeliness of the task and the timeliness of the notification.
[0120] Figure 9 The structure diagram of the search result style monitoring device of the embodiments of the present disclosure is shown in FIG. 9. As shown in FIG. 9, the search result style monitoring device 900 of the present embodiment can include a processing module 901, a first acquisition module 902, a second acquisition module 903, and a determination module 904. Figure 9
[0121] The processing module 901 is configured to search for a first keyword through a search engine to obtain a first search result, wherein the first search result includes a plurality of result cards.
[0122] The first acquisition module 902 is configured to acquire a first image of an Nth result card in the first search result, wherein N is an integer greater than or equal to 1.
[0123] The second acquisition module 903 is configured to acquire a second image of the Nth result card in a historical search result, wherein the historical search result is obtained by searching for the first keyword through the search engine in a historical period.
[0124] The determining module 904 is configured to determine a test result of the search engine according to the first image and the second image, where the test result is used to indicate whether the first search result and the historical search result are the same or different.
[0125] In a possible implementation, the processing module 901 is specifically configured to:
[0126] obtain a first task from a task queue, where the first task includes the first keyword and an identifier of the search engine;
[0127] execute the first task to search the first keyword through the search engine to obtain the first search result.
[0128] In a possible implementation, the first task further includes a card identifier N.
[0129] The first obtaining module 902 is specifically configured to:
[0130] obtain the card identifier N from the first task;
[0131] obtain an Nth result card from the first search result according to the card identifier N;
[0132] perform image interception on the Nth result card to obtain the first image.
[0133] In a possible implementation, the processing module 901 is further configured to:
[0134] update, in a preset storage space, a to-be-compared image corresponding to the first task to the first image after determining the test result of the search engine according to the first image and the second image.
[0135] In a possible implementation, the second obtaining module 902 is specifically configured to:
[0136] if the preset storage space stores the to-be-compared image corresponding to the first task, determine the to-be-compared image as the second image; or
[0137] if the preset storage space does not store the to-be-compared image corresponding to the first task, determine the second image to be empty.
[0138] In a possible implementation, the determining module 904 is specifically configured to:
[0139] perform image comparison on the first image and the second image to obtain a comparison result;
[0140] If the comparison result is that the first image and the second image are the same, it is determined that the test result indicates that the first search result and the historical search result are the same.
[0141] If the comparison result is that the first image and the second image are different, it is determined that the test result indicates that the first search result and the historical search result are different.
[0142] In a possible implementation, the processing module 901 is further configured to:
[0143] After it is determined that the test result indicates that the first search result and the historical search result are different, the notification information is sent to the target device, where the notification information is used to indicate that the first search result and the historical search result are different.
[0144] The present disclosure provides a search result style monitoring method and device, which is applied to the field of intelligent search in computer technology, so as to improve the comprehensiveness of monitoring of search result cards.
[0145] …
[0146] It should be noted that the head model in this embodiment is not a head model of a specific user, and cannot reflect the personal information of a specific user. It should be noted that the two-dimensional face image in this embodiment comes from a public data set.
[0147] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information comply with relevant laws and regulations and do not violate public order and good customs.
[0148] According to the embodiments of the present disclosure, the present disclosure further provides an electronic device, a readable storage medium, and a computer program product.
[0149] According to the embodiments of the present disclosure, the present disclosure further provides a computer program product, which includes a computer program stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to make the electronic device execute the scheme provided in any of the above embodiments.
[0150] Figure 10A schematic block diagram of an example electronic device 1000 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present disclosure described and / or claimed in this document.
[0151] As shown in Figure 10 The device 1000 includes a computing unit 1001 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. Various programs and data required for the operation of the device 1000 can also be stored in the RAM 1003. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0152] Various components in the device 1000 are connected to the I / O interface 1005, including an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; the storage unit 1008, such as magnetic disks, optical disks, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices through computer networks, such as the Internet, and / or various telecommunication networks.
[0153] The computing unit 1001 can be various general purpose and / or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs various methods and processes described above, such as the search result style monitoring method. For example, in some embodiments, the search result style monitoring method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 1008. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded onto the RAM 1003 and executed by the computing unit 1001, one or more steps of the search result style monitoring method described above can be performed. Alternatively, in other embodiments, the computing unit 1001 can be configured to perform the search result style monitoring method by any other suitable means, such as by means of firmware.
[0154] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0155] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a means for implementing the functions / acts specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0156] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0157] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0158] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0159] The computer system can include clients and servers. This relationship can be. remote, where each server is stored on a remote computer from a client. The clients and the servers can be connected through a communication network. The relationship can be a client-server relationship over a network. Servers can be cloud servers, also known as cloud computing servers or cloud hosts, which are a host product in the cloud computing service system. The servers can be servers of a distributed system, or servers combined with a blockchain.
[0160] It should be understood that the various forms of flow shown above can be reordered, steps added or removed. For example, the steps described in the present disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions of the present disclosure can be achieved, which are not limited herein.
[0161] The above detailed description does not constitute a limitation on the protection scope of the present disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A search result style monitoring method, comprising: searching a first keyword by a search engine to obtain a first search result, the first search result comprising a plurality of result cards; obtaining a first image of an Nth result card in the first search result, N being an integer greater than or equal to 1; obtaining a second image of the Nth result card in a historical search result, the historical search result being obtained by searching the first keyword by the search engine in a historical period; comparing the first image and the second image to determine a test result of the search engine, the comparison content of the image comparison comprising an identification and a style of the Nth result card, the test result being used to indicate that the first search result and the historical search result are the same or different, the style of the result card comprising a font, a color, a structure or a picture; wherein the searching the first keyword by the search engine to obtain the first search result comprises: obtaining a first task from a task queue, wherein the first task comprises the first keyword, an identification of the search engine and a card identification N; executing the first task to search the first keyword by the search engine to obtain the first search result; the obtaining the first image of the Nth result card in the first search result comprises: obtaining the card identification N from the first task; obtaining the Nth result card in the first search result according to the card identification N; performing image capture on the Nth result card to obtain the first image.
2. The method of claim 1, after determining the test result of the search engine according to the first image and the second image, the method further comprises: updating a to-be-compared image corresponding to the first task in a preset storage space to the first image.
3. The method of claim 2, wherein, The obtaining the second image of the Nth result card in the historical search result comprises: if the to-be-compared image corresponding to the first task is stored in the preset storage space, determining the to-be-compared image as the second image; or if the to-be-compared image corresponding to the first task is not stored in the preset storage space, determining the second image as empty.
4. The method according to any one of claims 1 to 3, wherein, The comparing the first image and the second image to determine the test result of the search engine comprises: comparing the first image and the second image to obtain a comparison result; if the comparison result is that the first image and the second image are the same, determining that the test result indicates that the first search result and the historical search result are the same; if the comparison result is that the first image and the second image are different, determining that the test result indicates that the first search result and the historical search result are different.
5. The method of claim 4, after determining that the test result indicates that the first search result and the historical search result are different, the method further comprises: sending notification information to a target device, wherein the notification information is used to indicate that the first search result and the historical search result are different.
6. An apparatus for search result style monitoring, comprising: a processing module configured to search for a first keyword by a search engine to obtain a first search result, the first search result comprising a plurality of result cards; a first obtaining module configured to obtain a first image of an Nth result card in the first search result, N being an integer greater than or equal to 1; a second obtaining module configured to obtain a second image of the Nth result card in a historical search result, the historical search result being obtained by searching for the first keyword by the search engine in a historical period; a determining module configured to compare the first image and the second image to determine a test result for the search engine, the comparison content of the image comparison comprising an identification and a style of the Nth result card, the test result being used to indicate whether the first search result and the historical search result are the same or different, the style of the result card comprising a font, a color, a structure or a picture; wherein the processing module is specifically configured to: obtain a first task from a task queue, wherein the first task comprises the first keyword, an identification of the search engine and a card identification N; execute the first task to search for the first keyword by the search engine to obtain the first search result; the first obtaining module is specifically configured to: obtain the card identification N from the first task; obtain the Nth result card in the first search result according to the card identification N; perform image cropping on the Nth result card to obtain the first image.
7. The apparatus of claim 6, wherein the processing module is further configured to: update a preset storage space with a first task corresponding to an image to be compared to the first image after determining the test result for the search engine according to the first image and the second image.
8. The apparatus of claim 7, wherein, the second obtaining module is specifically configured to: if the preset storage space stores the first task corresponding to the image to be compared, determine the image to be compared as the second image; or if the preset storage space does not store the first task corresponding to the image to be compared, determine the second image as empty.
9. The apparatus of any of claims 6-8, wherein, the determining module is specifically configured to: compare the first image and the second image to obtain a comparison result; if the comparison result is that the first image and the second image are the same, determine that the test result indicates that the first search result and the historical search result are the same; if the comparison result is that the first image and the second image are different, determine that the test result indicates that the first search result and the historical search result are different.
10. The apparatus of claim 9, wherein the processing module is further configured to: after determining that the test result indicates that the first search result and the historical search result are different, sending notification information to a target device, wherein the notification information is used to indicate that the first search result and the historical search result are different.
11. An electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions, wherein, The computer instructions are for causing the computer to perform the method of any one of claims 1-5.
13. A computer program product comprising computer program which, when executed by a processor, implements the steps of the method of any one of claims 1-5.