CN114880595A - Search result style monitoring method and device - Google Patents

Search result style monitoring method and device Download PDF

Info

Publication number
CN114880595A
CN114880595A CN202210163845.7A CN202210163845A CN114880595A CN 114880595 A CN114880595 A CN 114880595A CN 202210163845 A CN202210163845 A CN 202210163845A CN 114880595 A CN114880595 A CN 114880595A
Authority
CN
China
Prior art keywords
image
result
search
search result
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210163845.7A
Other languages
Chinese (zh)
Inventor
谢继尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210163845.7A priority Critical patent/CN114880595A/en
Publication of CN114880595A publication Critical patent/CN114880595A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a search result style monitoring method and device, relates to the technical field of computers, and particularly relates to the field of intelligent search. The specific implementation scheme is as follows: and searching the first keyword through a search engine to obtain a first search result, wherein the first search result comprises a plurality of result cards. And acquiring a first image of the Nth result card in the first search result, wherein N is an integer greater than or equal to 1. And acquiring a second image of the Nth result card in the historical search result, wherein the historical search result is obtained by searching the first keyword through a search engine in a historical time period. And determining a test result for the search engine according to the first image and the second image, wherein the test result is used for indicating that the first search result and the historical search result are the same or different. The technical scheme disclosed by the invention can comprehensively and effectively realize the monitoring of the change of the search result card.

Description

搜索结果样式监控方法及装置Search result style monitoring method and device

技术领域technical field

本公开涉及计算机技术中的智能搜索领域,尤其涉及一种搜索结果样式监控方法及装置。The present disclosure relates to the field of intelligent search in computer technology, and in particular, to a search result style monitoring method and device.

背景技术Background technique

在搜索引擎中进行关键词的搜索之后,通常会得到多个搜索结果卡片,对搜索结果卡片进行监控具有重要的意义。After searching for keywords in a search engine, multiple search result cards are usually obtained, and monitoring the search result cards is of great significance.

目前,现有技术中在进行搜索结果卡片的监控的时候,通常是确定搜索结果卡片的标识,并确定搜索结果卡片的标识是否发生变化,进而可以确定搜索结果卡片是否发生更新等等。At present, when monitoring the search result card in the prior art, the identification of the search result card is usually determined, and whether the identification of the search result card changes, and then whether the search result card is updated and so on can be determined.

然而,仅仅监控搜索结果卡片的标识的变化,会导致针对搜索结果卡片的监控缺乏全面性。However, only monitoring the change of the identification of the search result card will lead to the lack of comprehensive monitoring of the search result card.

发明内容SUMMARY OF THE INVENTION

本公开提供了搜索结果样式监控方法及装置。The present disclosure provides a search result style monitoring method and apparatus.

根据本公开的第一方面,提供了一种搜索结果样式监控方法,包括:According to a first aspect of the present disclosure, there is provided a search result style monitoring method, comprising:

通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,所述第一搜索结果中包括多个结果卡片;The first keyword is searched by a search engine to obtain a first search result, where the first search result includes a plurality of result cards;

获取所述第一搜索结果中第N个结果卡片的第一图像,所述N为大于或等于1的整数;obtaining the first image of the Nth result card in the first search result, where N is an integer greater than or equal to 1;

获取历史搜索结果中第N个结果卡片的第二图像,所述历史搜索结果为在历史时段内通过所述搜索引擎对所述第一关键词进行搜索得到的;obtaining the second image of the Nth result card in the historical search results obtained by searching the first keyword through the search engine within a historical period;

根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果,所述测试结果用于指示所述第一搜索结果和所述历史搜索结果相同或不同。According to the first image and the second image, a test result for the search engine is determined, and the test result is used to indicate that the first search result and the historical search result are the same or different.

根据本公开的第二方面,提供了一种搜索结果样式监控装置,包括:According to a second aspect of the present disclosure, there is provided a search result style monitoring device, comprising:

处理模块,用于通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,所述第一搜索结果中包括多个结果卡片;a processing module, configured to search the first keyword through a search engine to obtain a first search result, where the first search result includes a plurality of result cards;

第一获取模块,用于获取所述第一搜索结果中第N个结果卡片的第一图像,所述N为大于或等于1的整数;a first acquisition module, configured to acquire the first image of the Nth result card in the first search result, where N is an integer greater than or equal to 1;

第二获取模块,用于获取历史搜索结果中第N个结果卡片的第二图像,所述历史搜索结果为在历史时段内通过所述搜索引擎对所述第一关键词进行搜索得到的;A second obtaining module, configured to obtain the second image of the Nth result card in the historical search results obtained by searching the first keyword through the search engine within a historical period;

确定模块,用于根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果,所述测试结果用于指示所述第一搜索结果和所述历史搜索结果相同或不同。A determination module, configured to determine a test result for the search engine according to the first image and the second image, where the test result is used to indicate that the first search result and the historical search result are the same or different .

根据本公开的第三方面,提供了一种电子设备,包括:According to a third aspect of the present disclosure, there is provided an electronic device, comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; 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 the first aspect.

根据本公开的第四方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行第一方面所述的方法。According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method of the first aspect.

根据本公开的第五方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序,所述计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得电子设备执行第一方面所述的方法。According to a fifth aspect of the present disclosure, there is provided a computer program product, the computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can Reading the storage medium reads the computer program, and executing the computer program by the at least one processor causes the electronic device to perform the method of the first aspect.

根据本公开的技术解决了针对搜索结果卡片的监控缺乏全面性的问题。The technology according to the present disclosure addresses the lack of comprehensiveness in monitoring of search result cards.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.

附图说明Description of drawings

附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present disclosure. in:

图1为本公开实施例提供的信息搜索的实现示意图;FIG. 1 is a schematic diagram of an implementation of information search provided by an embodiment of the present disclosure;

图2为本公开实施例提供的搜索结果卡片的标识变化示意图;FIG. 2 is a schematic diagram of an identification change of a search result card provided by an embodiment of the present disclosure;

图3为本公开实施例提供的搜索结果样式监控方法的流程图;3 is a flowchart of a search result style monitoring method provided by an embodiment of the present disclosure;

图4为本公开实施例提供的搜索结果样式监控方法的流程图二;FIG. 4 is a second flowchart of a method for monitoring a search result style provided by an embodiment of the present disclosure;

图5为本公开实施例提供的任务队列的实现示意图;5 is a schematic diagram of the implementation of a task queue provided by an embodiment of the present disclosure;

图6为本公开实施例提供的预设存储空间的实现示意图;FIG. 6 is a schematic diagram of implementing a preset storage space provided by an embodiment of the present disclosure;

图7为本公开实施例提供的搜索结果卡片的样式更新示意图;FIG. 7 is a schematic diagram of a style update of a search result card provided by an embodiment of the present disclosure;

图8为本公开实施例提供的搜索结果样式监控方法的流程示意图;8 is a schematic flowchart of a search result style monitoring method provided by an embodiment of the present disclosure;

图9为本公开实施例的搜索结果样式监控装置的结构示意图;9 is a schematic structural diagram of a search result style monitoring apparatus according to an embodiment of the present disclosure;

图10是用来实现本公开实施例的搜索结果样式监控方法的电子设备的框图。FIG. 10 is a block diagram of an electronic device used to implement the search result style monitoring method according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。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 facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

为了更好的理解本公开的技术方案,下面对本公开所涉及的相关技术进行进一步的详细介绍。In order to better understand the technical solutions of the present disclosure, the related technologies involved in the present disclosure will be further introduced in detail below.

随着互联网技术的不断发展,互联网中各种各样的站点为人们提供了丰富多彩的信息,因此目前通过搜索引擎在互联网中进行信息的搜索,已经成为了一种非常普遍的信息获取方式。With the continuous development of Internet technology, various sites on the Internet provide people with rich and colorful information. Therefore, searching for information on the Internet through search engines has become a very common way of obtaining information.

此处首先对目前基于搜索引擎进行信息搜索的实现方式进行介绍。在目前的信息搜索的实现过程中,通常是用户通过客户端输入搜索关键字,本公开中的客户端可以是终端设备上的应用程序客户端,或者还可以是网页中的web客户端,本公开对客户端的具体实现不做限制。之后搜索引擎根据搜索关键字与入库的网页内容进行匹配,从而向客户端或者web端返回相关性较高的多个搜索结果卡片,并且根据搜索结果卡片的相关性进行搜索结果的排序。First, the current implementation of information search based on search engines is introduced here. In the current implementation process of information search, a user usually inputs a search keyword through a client. The client in the present disclosure may be an application client on a terminal device, or may also be a web client in a webpage. The disclosure does not limit the specific implementation of the client. Afterwards, the search engine matches the stored web page content according to the search keyword, thereby returning multiple search result cards with high relevance to the client or the web side, and sorting the search results according to the relevance of the search result cards.

例如可以参照图1进行理解,图1为本公开实施例提供的信息搜索的实现示意图。For example, it can be understood with reference to FIG. 1 , which is a schematic diagram of an implementation of information search provided by an embodiment of the present disclosure.

参见图1,客户端可以接收用户输入的搜索关键字101,假设当前客户端接收到的搜索关键字为“鞋子会把病毒带回家吗”,并且客户端在接收到用户对搜索控件102的点击操作时,可以将搜索关键字发送给服务器。Referring to FIG. 1 , the client terminal can receive the search keyword 101 input by the user, assuming that the current search keyword received by the client terminal is "will shoes bring the virus home?" When the action is clicked, the search keyword can be sent to the server.

接着服务器可以根据搜索关键字与入库的网页内容进行匹配,从而得到与搜索关键字相关性较高的多个搜索结果,并且将搜索到的多个搜索结果的内容发送给客户端。Then, the server can match the stored web page content according to the search keyword, so as to obtain multiple search results that are highly relevant to the search keyword, and send the contents of the multiple search results to the client.

在一种可能的实现方式中,客户端例如可以按照搜索结果卡片的方式显示搜索结果,如图1所示,当前的客户端中例如显示有两个搜索结果卡片,其中,每一个搜索结果卡片对应一个搜索结果,该搜索结果可以为网页内容。In a possible implementation manner, the client may display search results in the form of search result cards, for example, as shown in FIG. 1 , for example, two search result cards are displayed in the current client, wherein each search result card Corresponding to a search result, the search result may be webpage content.

假设客户端接收到的用户对其中的搜索结果卡片103的点击操作,则可以在显示该搜索结果卡片103对应的详细网页内容,比如说可以显示“鞋子会把病毒带回家吗”的详细内容。Assuming that the client receives the user's click operation on the search result card 103, the detailed web page content corresponding to the search result card 103 can be displayed, for example, the detailed content of "Will the shoes bring the virus home?" .

在上述介绍的内容的基础上,可以理解的是,在搜索引擎中进行关键词的搜索之后,通常会得到多个搜索结果卡片,而针对搜索结果卡片进行监控具有重要的意义。比如说作为搜索引擎的研发方,可以分析其他的搜索引擎的搜索结果卡片是否发生更新,从而进行自身产品的优化。再比如说还可以分析自己的搜索引擎的搜索结果卡片的显示是否正确,等等。Based on the above-mentioned content, it can be understood that after a keyword search is performed in a search engine, multiple search result cards are usually obtained, and monitoring the search result cards is of great significance. For example, as a research and development party of a search engine, it can analyze whether the search result cards of other search engines are updated, so as to optimize its own products. For another example, you can also analyze whether the display of the search result card of your own search engine is correct, and so on.

目前,现有技术中在进行搜索结果卡片的监控的时候,通常是通过分析搜索结果的页面结构,从而确定指定位置的搜索结果卡片的标识,并且将当前抓取到的搜索结果卡片的标识和之前抓取的搜索结果卡片的标识进行比较。因为针对互联网中的搜索结果,每一个搜索结果都对应各自的唯一标识,那么通过确定搜索结果卡片的标识是否发生变化,进而可以确定搜索页面中的搜索结果卡片是否发生更新等等。At present, when monitoring the search result card in the prior art, the page structure of the search result is usually analyzed to determine the identifier of the search result card at the specified location, and the identifier of the currently captured search result card and the Compare the IDs of previously crawled search result cards. Because for search results on the Internet, each search result corresponds to its own unique identifier, then by determining whether the identifier of the search result card changes, it can be determined whether the search result card in the search page is updated, and so on.

此处例如可以结合图2以一个具体的示例,对上述介绍的内容进行理解,图2为本公开实施例提供的搜索结果卡片的标识变化示意图。Here, for example, the above-mentioned content can be understood by taking a specific example in conjunction with FIG. 2 , which is a schematic diagram of a change of an identification of a search result card provided by an embodiment of the present disclosure.

如图2所示,假设当前在搜索引擎中针对关键词“鞋子会把病毒带回家吗”进行搜索,在当前的搜索结果页面20中可以展示多个搜索结果卡片。假设抓取搜索结果页面20中第一个位置的搜索结果卡片203的标识为C。以及假设在历史时刻针对该关键字进行搜索可以得到历史的搜索结果页面10,在搜索结果页面10中的第一个位置的搜索结果卡片201的标识为A。基于图2可以确定,针对同一个关键词,该搜索引擎的两次搜索结果中,同一个位置的搜索结果卡片是不同的,那么就可以确定当前这个搜索引擎对于该关键词的搜索结果卡片进行了更新。As shown in FIG. 2 , assuming that a search engine is currently searching for the keyword “will shoes bring the virus home”, multiple search result cards may be displayed on the current search result page 20 . It is assumed that the identification of the search result card 203 in the first position in the fetched search result page 20 is C. And it is assumed that a historical search result page 10 can be obtained by searching for the keyword at a historical moment, and the identifier 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, for the same keyword, in the two search results of the search engine, the search result cards at the same location are different, then it can be determined that the current search engine performs the search result card on the keyword. updated.

可以理解的是,上述介绍的现有技术中针对搜索结果卡片的监控,仅仅是针对搜索结果卡片的标识的变化进行监控。从而会导致搜索结果卡片的监控缺乏全面性。It can be understood that, the monitoring of the search result card in the prior art described above is only monitoring the change of the identifier of the search result card. As a result, the monitoring of search result cards lacks comprehensiveness.

具体的,仅仅通过搜索结果卡片的标识的变化确定搜索结果卡片是否发生更新,实际上功能并不完善,比如说同一标识下,如果搜索结果卡片的样式发生了变化,也就是说在该位置还是这个标识的搜索结果卡片,但是搜索结果卡片的样式发生了变化,那么上述的监控是无法监控到搜索结果卡片的变化的。其中搜索结果卡片的样式变化比如说可以是字体的变化,颜色的变化,结构的变化,图片的变化等等,本实施例对此不做限制。Specifically, whether the search result card is updated is determined only by the change of the ID of the search result card. In fact, the function is not perfect. This identified search result card, but the style of the search result card has changed, so the above monitoring cannot monitor the change of the search result card. The style change of the search result card may be, for example, a font change, a color change, a structure change, a picture change, etc., which is not limited in this embodiment.

针对现有技术中的搜索结果卡片的监控缺乏全面性的问题,本公开提出了如下技术构思:通过获取搜索结果卡片的截图,从而对比搜索结果卡片的样式是否发生变化,以提升搜索结果卡片的监控的多样性和全面性。Aiming at the problem of lack of comprehensiveness in the monitoring of search result cards in the prior art, the present disclosure proposes the following technical idea: by obtaining a screenshot of the search result card, it is possible to compare whether the style of the search result card has changed, so as to improve the quality of the search result card. Diversity and comprehensiveness of monitoring.

在上述介绍内容的基础上,下面结合具体的实施例对本公开提供的搜索结果样式监控方法进行详细介绍。需要说明的是,本公开中各实施例的执行主体比如说可以是本地服务器、云端服务器等等设备,只要其可以获取搜索结果卡片的相关内容,并且具备数据处理的能力即可,在此基础上,执行主体的具体实现可以根据实际需求进行选择和设置。On the basis of the above-mentioned contents, the method for monitoring the search result style provided by the present disclosure will be described in detail below with reference to specific embodiments. It should be noted that the execution body of each embodiment in the present disclosure can be, for example, a local server, a cloud server, etc., as long as it can obtain the relevant content of the search result card and has the capability of data processing. Above, the specific implementation of the executive body can be selected and set according to actual needs.

下面首先结合图3进行介绍,图3为本公开实施例提供的搜索结果样式监控方法的流程图。The following will first introduce with reference to FIG. 3 , which is a flowchart of a method for monitoring a search result style provided by an embodiment of the present disclosure.

如图3所示,该方法包括:As shown in Figure 3, the method includes:

S301、通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,第一搜索结果中包括多个结果卡片。S301. Search the first keyword through a search engine to obtain a first search result, where the first search result includes multiple result cards.

在本实施例中,第一关键词比如说可以是预设的指定关键词。同时可以理解,搜索引擎是多种多样的,不同的搜索引擎针对同一个关键词所搜索得到的结果,必然存在一定的差距,那么当前的搜索引擎比如说也可以是指定的搜索引擎,在实际的应用过程中,通常也是需要分析特定的搜索引擎的搜索结果卡片是否发生变化。In this embodiment, the first keyword may be, for example, a preset designated keyword. At the same time, it can be understood that there are many kinds of search engines, and there must be a certain gap in the results obtained by different search engines for the same keyword. So the current search engine, for example, can also be a designated search engine. During the application process, it is usually necessary to analyze whether the search result card of a specific search engine has changed.

因此本实施例中比如说可以通过指定的搜索引擎对预设的第一关键词进行搜索,从而得到第一搜索结果,在第一搜索结果中可以包括多个结果卡片,其中搜索结果卡片的具体实现在上述实施例中已经进行了介绍,此处不再赘述。Therefore, in this embodiment, for example, a preset first keyword may be searched through a designated search engine to obtain a first search result, and the first search result may include multiple result cards, wherein the specific search result card details The implementation has been introduced in the above-mentioned embodiments, and will not be repeated here.

S302、获取第一搜索结果中第N个结果卡片的第一图像,N为大于或等于1的整数。S302: Acquire the first image of the Nth result card in the first search result, where N is an integer greater than or equal to 1.

在第一搜索结果中可以包括多个结果卡片,在比较搜索结果卡片的样式是否发生变化的时候,通常是针对搜索结果中相同位置的搜索结果卡片进行比较,并且为了确定搜索结果卡片的样式是否发生变化,可以获取搜索结果卡片的图像。The first search result may include multiple result cards. When comparing whether the styles of the search result cards have changed, the comparison is usually performed on the search result cards in the same position in the search results, and in order to determine whether the style of the search result cards has changed Changed to get an image of the search results card.

因此在本实施例中,可以获取第一搜索结果中的第N个结果卡片的第一图像,以便于后续分析第N个结果卡片的样式是否发生变化。其中N 为大于或等于1的整数,N的具体实现可以根据实际需求进行选择和设置,也就是说本实施例中并不限制具体获取第一搜索结果中的第几个结果卡片的图像,其可以根据实际需求进行选择和设置。Therefore, in this embodiment, the first image of the Nth result card in the first search result can be acquired, so as to facilitate subsequent analysis of whether the style of the Nth result card has changed. Among them, N is an integer greater than or equal to 1, and the specific implementation of N can be selected and set according to actual needs. That is to say, this embodiment does not limit the specific acquisition of the image of the first result card in the first search result. It can be selected and set according to actual needs.

S303、获取历史搜索结果中第N个结果卡片的第二图像,历史搜索结果为在历史时段内通过搜索引擎对第一关键词进行搜索得到的。S303: Obtain the second image of the Nth result card in the historical search results, where the historical search results are obtained by searching for the first keyword through a search engine within a historical period.

以及本实施例中为了确定相应位置的搜索结果卡片的样式是否发生变化,则还需要获取在历史搜索结果中相应的搜索结果卡片的第二图像。And in this embodiment, in order to determine whether the style of the search result card at the corresponding position has changed, it is also necessary to acquire the second image of the corresponding search result card in the historical search results.

本实施例中的历史搜索结果为在历史时段内通过同一搜索引擎对相同的第一关键词进行搜索得到的,则可以理解在历史搜索结果中同样包括多个结果卡片。The historical search results in this embodiment are obtained by searching for the same first keyword through the same search engine within a historical period, and it can be understood that the historical search results also include multiple result cards.

此处有一个前提需要介绍,通过同一个搜索引擎对同一个关键字进行搜索,除非搜索结果发生变化,否则各个位置的搜索结果卡片总是相同的。比如说在某个搜索引擎中搜索第一关键字,得到的搜索结果中依次包括搜索结果卡片1、搜索结果卡片2、搜索结果卡片3和搜索结果卡片4。那么下一次还是在该搜索引擎中搜索第一关键词,得到的搜索结果仍然依次是搜索结果卡片1、搜索结果卡片2、搜索结果卡片3、搜索结果卡片4。There is a premise that needs to be introduced here. If you search for the same keyword through the same search engine, unless the search results change, the search result cards for each location are always the same. For example, if a search engine is searched for the first keyword, the obtained search results include a search result card 1, a search result card 2, a search result card 3, and a search result card 4 in sequence. Then, the first keyword is still searched in the search engine next time, and the obtained search results are still search result card 1, search result card 2, search result card 3, and search result card 4 in order.

基于此前提,那么就可以在第一搜索结果中的第N个结果卡片和历史搜索结果中的第N个结果卡片是相对应的结果卡片,为了确定第N个结果卡片是否发生变化,那么就可以获取历史搜索结果中的第N个结果卡片的第二图像。Based on this premise, then the Nth result card in the first search result and the Nth result card in the historical search results can be the corresponding result cards. In order to determine whether the Nth result card has changed, then The second image of the Nth result card in the historical search results can be obtained.

S304、根据第一图像和第二图像,确定对搜索引擎的测试结果,测试结果用于指示第一搜索结果和历史搜索结果相同或不同。S304. Determine a test result for the search engine according to the first image and the second image, where the test result is used to indicate that the first search result and the historical search result are the same or different.

可以理解的是,第一图像和第二图像是在不同的时刻,针对同一关键词的搜索结果中的第N个结果卡片所获取的图像,那么根据第一图像和第二图像进行比较,就可以确定针对搜索引擎的测试结果,本实施例中的测试结果用于指示第一搜索结果和历史搜索结果相同或者不同。It can be understood that the first image and the second image are images obtained from the Nth result card in the search results for the same keyword at different times. A test result for the search engine may be determined, 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.

其中,若第一搜索结果和历史搜索结果相同,则表示该搜索引擎的搜索结果卡片并未发生变化,此处的未变化,同时包括了标识未发生变化,以及样式未发生变化。以及,若第一搜索结果和历史搜索结果不同,则表示该搜索引擎的搜索结果卡片发生了变化,其变化有可能是标识发生了变化,也就是说第N个位置的结果卡片的内容直接发生了变化,或者还有可能是搜索结果卡片的样式发生了变化,也就是说第N个位置的结果卡片还是那个结果卡片,但是表现样式发生了更新。从而可以全面的实现对搜索结果卡片的监控。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 also includes that the logo has not changed and the style has not changed. And, if the first search result is different from the historical search result, 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 to say, the content of the result card at the Nth position has directly occurred. changes, or it is also possible that the style of the search result card has changed, that is to say, the result card in the Nth position is still the same result card, but the presentation style has been updated. Thereby, the monitoring of the search result card can be fully realized.

本公开提供的搜索结果样式监控方法,包括:通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,第一搜索结果中包括多个结果卡片。获取第一搜索结果中第N个结果卡片的第一图像,N为大于或等于1的整数。获取历史搜索结果中第N个结果卡片的第二图像,历史搜索结果为在历史时段内通过搜索引擎对第一关键词进行搜索得到的。根据第一图像和第二图像,确定对搜索引擎的测试结果,测试结果用于指示第一搜索结果和历史搜索结果相同或不同。通过获取当前时刻指定位置的搜索结果卡片的第一图像,以及获取历史时刻指定位置的搜索结果卡片的第二图像,并对第一图像和图像图像进行比较,从而确定当前的搜索引擎在不同时刻针对同一关键词的搜索结果是否相同,以确定搜索结果卡片是否发生更新,进而可以全面有效的实现对搜索结果卡片的变化的监控。The method for monitoring a search result style provided by the present disclosure includes: searching for a first keyword through a search engine to obtain a first search result, where the first search result includes a plurality of result cards. Obtain the first image of the Nth result card in the first search result, where N is an integer greater than or equal to 1. Obtain the second image of the Nth result card in the historical search results, where the historical search results are obtained by searching for the first keyword through a search engine within a historical period. According to the first image and the second image, a test result for the search engine is determined, and the test result is used to indicate that the first search result and the historical search result are the same or different. By obtaining the first image of the search result card at the specified position at the current moment, and obtaining the second image of the search result card at the specified position at the historical moment, and comparing the first image and the image image, it is determined that the current search engine is at different times Whether the search results for the same keyword are the same, it is determined whether the search result card is updated, so that the change of the search result card can be monitored comprehensively and effectively.

在上述实施例的基础上,下面结合图4至图7对本公开提供的搜索结果样式监控方法的实现进行进一步的详细介绍,图4为本公开实施例提供的搜索结果样式监控方法的流程图二,图5为本公开实施例提供的任务队列的实现示意图,图6为本公开实施例提供的预设存储空间的实现示意图,图7为本公开实施例提供的搜索结果卡片的样式更新示意图。On the basis of the above embodiments, the implementation of the method for monitoring search result style provided by the present disclosure will be further described in detail below with reference to FIG. 4 to FIG. 7 . FIG. 5 is a schematic diagram of the implementation of the task queue provided by the embodiment of the present disclosure, FIG. 6 is a schematic diagram of the implementation of the preset storage space provided by the embodiment of the present disclosure, and FIG. 7 is a schematic diagram of the style update of the search result card provided by the embodiment of the present disclosure.

如图4所示,该方法包括:As shown in Figure 4, the method includes:

S401、从任务队列中获取第一任务,其中,第一任务中包括第一关键词和搜索引擎的标识。S401. Acquire a first task from a task queue, where the first task includes a first keyword and an identifier of a search engine.

在本实施例中,通过搜索引擎进行关键词的搜索的实现,可以通过创建任务的方式来完成。比如说如果需要测试某个搜索引擎针对特定关键词的搜索结果卡片是否发生变化,则可以创建针对该搜索引擎以及该关键字的任务,并且可以将创建的任务存储在任务队列中,以便于顺序执行各个任务。In this embodiment, the implementation of searching for keywords through a search engine can be accomplished by creating a task. For example, if you need to test whether the search result card of a search engine for a specific keyword has changed, you can create a task for the search engine and the keyword, and you can store the created task in the task queue to facilitate the order. Perform individual tasks.

则在一种可能的实现方式中,可以从任务队列中获取第一任务,参照图5,在任务队列中可以包括多个待执行的任务,比如说图5的示例中,在任务队列中包括任务1、任务2、任务3以及任务4。其中的每个任务都可以包括关键词、搜索引擎的标识以及卡片标识,用于指示在指定的搜索引擎中搜索指定的关键词,并且获取卡片标识对应的搜索结果卡片的图像。In a possible implementation manner, the first task may be obtained from the task queue. Referring to FIG. 5 , the task queue may include multiple tasks to be executed. For example, in the example of FIG. 5 , the task queue includes Task 1, Task 2, Task 3, and Task 4. Each of the tasks may include a keyword, a search engine identifier, and a card identifier, which are used to instruct to search for the specified keyword in the designated search engine, and obtain an image of the search result card corresponding to the card identifier.

比如说图5中的任务1可以是本实施例中的第一任务,则参照图5,第一任务中包括第一关键词A,以及搜索引擎的标识1,以及在第一任务中还可以包括卡片标识N,那么执行第一任务时,就可以通过搜索引擎1 对第一关键词A进行搜索,并且获取搜索结果中的第N个搜索结果卡片的图像。For example, task 1 in FIG. 5 may be the first task in this embodiment. Referring to FIG. 5 , the first task includes the first keyword A, and the identifier 1 of the search engine, and the first task may also If the card identifier N is included, then when the first task is performed, the first keyword A can be searched through the search engine 1, and the image of the Nth search result card in the search result can be obtained.

S402、执行第一任务,以通过搜索引擎对第一关键词进行搜索,得到第一搜索结果。S402. Perform the first task to search for the first keyword through a search engine to obtain a first search result.

基于上述介绍可以确定的是,本实施例中的第一任务可以指示在特定的搜索引擎中搜索特定的关键词,因此本实施例中可以通过执行第一任务,以通过搜索引擎对第一关键词进行搜索,从而得到第一搜索结果。Based on the above description, it can be determined that the first task in this embodiment may instruct to search for a specific keyword 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. Search by word to get the first search result.

S403、从第一任务中获取卡片标识N。S403. Obtain the card identifier N from the first task.

本实施例中在获取到第一搜索结果之后,还要从第一搜索结果中的多个搜索结果卡片中获取特定位置的搜索结果卡片,为了确定具体是获取哪个位置的搜索结果卡片,本实施例中可以从第一任务中获取卡片标识N。In this embodiment, after the first search result is obtained, the search result card of a specific location is also obtained from the plurality of search result cards in the first search result. In the example, the card identifier N can be obtained from the first task.

可以理解的是,在第一任务中所包括的第一关键词、搜索引擎的标识以及卡片标识N,均可以根据实际需求进行选择和设置,本实施例对此不做限制。It can be understood that, the first keyword, the identifier of the search engine, and the card identifier N included in the first task can be selected and set according to actual requirements, which are not limited in this embodiment.

S404、根据卡片标识N,在第一搜索结果中获取第N个结果卡片。S404, according to the card identifier N, obtain the Nth result card in the first search result.

在获取到卡片标识N之后,就可以根据卡片标识N,在第一搜索结果中的多个搜索结果卡片中,获取第N个结果卡片。After the card identifier N is acquired, the Nth result card can be acquired from the multiple search result cards in the first search result according to the card identifier N.

S405、对第N个结果卡片进行图像截取,得到第一图像。S405. Perform image interception on the Nth result card to obtain a first image.

在获取到第N个结果卡片之后,可以对第N个结果卡片进行图像截图,也可以理解为普遍意义上的截图操作,总之是获取第N个结果卡片所表现出来的图像,从而可以得到第N个结果卡片的第一图像。After obtaining the Nth result card, you can take an image screenshot of the Nth result card, which can also be understood as a screenshot operation in a general sense. In short, the image displayed by the Nth result card is obtained, so that the The first image of the N result cards.

S406、获取历史搜索结果中第N个结果卡片的第二图像,历史搜索结果为在历史时段内通过搜索引擎对第一关键词进行搜索得到的。S406: Obtain the second image of the Nth result card in the historical search results, where the historical search results are obtained by searching for the first keyword through a search engine within a historical period.

基于上述介绍可以确定的是,为了确定结果卡片的图像是否发生变化,除了获取第一搜索结果中的第N个结果卡片的第一图像之外,还需要获取历史搜索结果中的第N个结果卡片的第二图像。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, it is also necessary to obtain the Nth result in the historical search results. Second image of the card.

此处需要说明的是,本实施例中针对每一个任务,在每执行完一次任务之后,实际上就得到了该任务对应的搜索结果卡片的图像,那么为了便于后续进行比较,可以将当前获取的该任务对应的搜索结果卡片的图像存储在预设存储空间中。It should be noted here that, for each task in this embodiment, after each task is executed, the image of the search result card corresponding to the task is actually obtained. Then, in order to facilitate subsequent comparison, the currently obtained image can be obtained. The image of the search result card corresponding to the task is stored in the preset storage space.

在一种可能的实现方式中,在预设存储空间中,存储有各个任务所对应的待对比的图像,更为具体的,针对任一个任务,其对应的待对比的图像,实际上就是上一次执行该任务的时候所得到的搜索结果卡片的图像,以便于后续进行比较。In a possible implementation manner, in the preset storage space, the images to be compared corresponding to each task are stored. More specifically, for any task, the corresponding image to be compared is actually the above image. An image of the search result card obtained when the task is performed once, for subsequent comparison.

例如可以结合图6进行理解,如图6所示,在预设存储空间中比如说可以存储有各个任务的待对比的图像,针对任务1存储有待对比的图像1,针对任务2存储有待对比的图像2,针对任务3存储有待对比的图像3,针对任务4未存储待对比的图像。For example, it can be understood in conjunction with FIG. 6. As shown in FIG. 6, for example, the images to be compared for each task can be stored in the preset storage space, the image 1 to be compared is stored for task 1, and the image to be compared is stored for task 2. For image 2, the image 3 to be compared is stored for task 3, and the image to be compared is not stored for task 4.

则在获取历史搜索结果中的第N个结果卡片的第二图像的时候,因为当前的第一图像是执行第一任务得到的,那么例如可以判断在预设存储空间中是否存储有第一任务对应的待对比的图像。Then when acquiring the second image of the Nth result card in the historical search results, because the current first image is obtained by executing the first task, for example, it can be determined whether the first task is stored in the preset storage space. the corresponding images to be compared.

若在预设存储空间中存储有第一任务对应的待对比的图像,则可以将预设存储空间中的待对比的图像确定为第二图像。比如说如果图6中的任务1是第一任务,则可以确定第二图像为图6中的图像1。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 may be determined as the second image. For example, if task 1 in FIG. 6 is the first task, it can be determined that the second image is image 1 in FIG. 6 .

或者,若在预设存储空间中未存储第一任务对应的待对比的图像,则可以确定第二图像为空。比如说如果图6中的任务4是第一任务,则可以确定第二图像为空。Alternatively, if the image to be compared corresponding to the first task is not stored in the preset storage space, it may be determined that the second image is empty. For example, if task 4 in FIG. 6 is the first task, it can be determined that the second image is empty.

需要说明的是,在预设存储空间中未存储第一任务对应的待对比的图像的时候,则表示当前获取第一图像是第一次执行第一任务所得到的图像,因此在预设存储空间中才没有存储第一任务对应的待对比的图像,并且可以确定第二图像为空。比如说图6中的任务4未存储有待对比的图像,是因为任务4之前并没有执行过。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 currently acquired first image is the image obtained by executing the first task for the first time, so the preset storage The image to be compared corresponding to the first task is not stored in the space, and it can be determined that the second image is empty. For example, task 4 in Figure 6 does not store the image to be compared because task 4 has not been executed before.

本实施例中获取第二图像,是为了将第一图像和第二图像进行比较,以确定该搜索引擎针对相应关键词的搜索结果卡片是否发生了变化,然而当第二图像为空的时候,第一图像没有比较的对象,并且因为第一图像是首次执行第一任务得到的卡片,则例如可以直接确定测试结果为第一搜索结果和历史搜索结果相同,也就是说搜索结果卡片未发生变化。In this 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 object to compare, and because the first image is a card obtained by executing the first task for the first time, for example, it can be directly determined that the test result is the same as the first search result and the historical search result, that is, the search result card has not changed. .

S407、将第一图像和第二图像进行图像对比,得到对比结果。S407. Perform image comparison between the first image and the second image to obtain a comparison result.

在获取到第二图像之后,就可以将第一图像和第二图像进行图像对比,在图像对比之后得到对比结果,其中对比结果可以指示第一图像和第二图像相同,也可以指示第一图像和第二图像不同。After the second image is acquired, the first image and the second image can be compared, and a comparison result can be obtained after the image comparison, wherein the comparison result can indicate that the first image and the second image are the same, or the first image can be different from the second image.

S408、若对比结果为第一图像和第二图像相同,则确定测试结果指示第一搜索结果和历史搜索结果相同。S408. 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.

在一种可能的实现方式中,若对比结果为第一图像和第二图像相同,则可以确定第一任务中,在搜索引擎中搜索第一关键词之后,得到的搜索结果中的第N个搜索结果卡片是保持不变的,则可以确定测试结果指示第一搜索结果和历史搜索结果相同。In a possible implementation manner, if the comparison result is that the first image and the second image are the same, it may be determined that in the first task, after searching for the first keyword in the search engine, the Nth search result is obtained. If the search result card remains unchanged, it can be determined that the test result indicates that the first search result and the historical search result are the same.

S409、若对比结果为第一图像和第二图像不同,则确定测试结果指示第一搜索结果和历史搜索结果不同。S409. 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.

在另一种可能的实现方式中,若对比结果为第一图像和第二图像不同,则可以确定第一任务中,在搜索引擎中搜索第一关键词之后,得到的搜索结果中第N个搜索结果卡片是发生了变化的,其有可能是搜索结果卡片本身就发生了变化,比如说由一个搜索结果卡片变为了另一个搜索结果卡片。In another possible implementation manner, if the comparison result is that the first image and the second image are different, it can be determined that in the first task, after searching for the first keyword in the search engine, the Nth search result is obtained. The search result card has changed. It is possible that the search result card itself has changed, for example, from one search result card to another search result card.

也有可能是搜索结果卡片本身并未发生变化,只是同一个搜索结果卡片的样式发生了变化。针对搜索结果卡片的样式变化比如说可以结合图7 进行理解,如图7所示,假设当前在搜索引擎中针对关键词“鞋子会把病毒带回家吗”进行搜索,在当前的搜索结果页面40中可以展示多个搜索结果卡片。假设搜索结果页面40中第一个位置的搜索结果卡片701的标识为A,并且搜索结果卡片701的样式表现为样式2。以及假设在历史时刻针对该关键字进行搜索可以得到历史的搜索结果页面30,在搜索结果页面30中的第一个位置的搜索结果卡片701的标识为A,并且搜索结果卡片701的样式表现为样式1。It is also possible that the search result card itself has not changed, but the style of the same search result card has changed. For example, the style change of the search result card can be understood in conjunction with Figure 7. As shown in Figure 7, assuming that the keyword "will shoes bring the virus home" is currently being searched in the search engine, on the current search result page Multiple search result cards can be displayed in 40. Assume that the identification of the search result card 701 in the first position in the search result page 40 is A, and the style of the search result card 701 is style 2. And assuming that the historical search result page 30 can be obtained by searching for the keyword at the historical moment, the search result card 701 in the first position in the search result page 30 is marked as A, and the style of the search result card 701 is expressed as Style 1.

那么基于图7可以确定,针对同一个关键词,该搜索引擎的两次搜索结果中,同一个位置的搜索结果卡片是同一个,都是标识为A的搜索结果卡片701,但是该搜索结果卡片701两次所表现出来的样式是不同的,那么就可以确定当前这个搜索引擎对于该关键词的搜索结果卡片的样式进行了更新。Then it can be determined based on Fig. 7 that for the same keyword, in the two search results of the search engine, the search result card at the same location is the same, and both are the search result card 701 identified as A, but the search result card If the styles displayed twice in 701 are different, it can be determined that the current search engine has updated the style of the search result card for the keyword.

在确定对比结果为第一图像和第二图像不同时,就可以确定测试结果指示第一搜索结果和历史搜索结果不同。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.

在一种可能的实现方式中,在确定测试结果为第一搜索结果和历史搜索结果不同的时候,例如可以向目标设备发送通知信息,其中通知信息用于指示第一搜索结果和历史搜索结果不同,以使得相关的人员确定该搜索引擎的搜索结果卡片的变化,并进行相应的后续处理。In a possible implementation manner, when it is determined that the test result is different from the first search result and the historical search result, for example, notification information may be 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 , so that the relevant personnel can determine the change of the search result card of the search engine and perform corresponding subsequent processing.

S410、将预设存储空间中,第一任务对应的待对比的图像更新为第一图像。S410. Update the image to be compared corresponding to the first task in the preset storage space to the first image.

在确定测试结果之后,因为每次在进行图像比较的时候,是比较当前执行任务得到的图像和上次执行任务得到的图像,那么为了便于进行下一次针对第一任务的图像比较,可以将预设存储空间中的第一任务所对应的待对比的图像,更新为本次执行第一任务所得到的第一图像。After the test result is determined, because each time the image is compared, the image obtained by the current task is compared with the image obtained by the last task, so in order to facilitate the next image comparison for the first task, the pre- It is assumed that the image to be compared corresponding to the first task in the storage space is updated to the first image obtained by executing the first task this time.

本公开实施例提供的搜索结果样式监控方法,通过配置并执行任务的方式,以通过指定的搜索引擎对指定的关键词进行搜索,并且获取指定位置的搜索结果卡片,从而可以对任务进行多次执行,以便快速有效的确定特定的搜索引擎的搜索结果卡片是否发生变化,有效保证了相同的任务可以多次执行,并且便于后续进行比较。同时,本实施例中会在每次任务执行完成之后,将任务执行得到的图像存储在预设存储空间中,以便于下一次需要比较的时候,直接从预设存储空间中获取待比较的图像即可,从而可以快速有效的实现对历史时刻的第二图像的获取,以提升搜索引擎监控的速度和效率。并且本实施例中通过对第N个搜索结果卡片的第一图像和第二图像进行比较,以确定当前搜索引擎的搜索结果卡片是否发生了变化,从而可以从搜索结果卡片的内容、标识各个方面,全面的监控搜索结果卡片的更新,有效提升了针对搜索结果卡片监控的全面性。The search result style monitoring method provided by the embodiment of the present disclosure, by configuring and executing a task, searches for a specified keyword through a specified search engine, and obtains a search result card at a specified location, so that the task can be performed multiple times Executed to quickly and effectively determine whether the search result card of a specific search engine has changed, effectively ensuring that the same task can be executed multiple times, and facilitating subsequent comparison. At the same time, in this embodiment, after each task execution is completed, the image obtained by the task execution is stored in the preset storage space, so that the image to be compared can be directly obtained from the preset storage space when the comparison is required next time. That is, so that the acquisition of the second image at the historical moment can be quickly and effectively achieved, so as to improve the speed and efficiency of search engine monitoring. And in this embodiment, by comparing the first image and the second image of the Nth search result card, it is determined whether the search result card of the current search engine has changed, so that the content of the search result card, the identification of various aspects can be determined. , comprehensively monitor the update of the search result card, effectively improving the comprehensiveness of the monitoring of the search result card.

在上述实施例介绍的内容的基础上,下面再结合图8对本公开提供的搜索结果样式监控方法的实现流程进行一个系统性的介绍,图8为本公开实施例提供的搜索结果样式监控方法的流程示意图。On the basis of the contents introduced in the above-mentioned embodiments, the implementation process of the search result style monitoring method provided by the present disclosure will be systematically introduced below with reference to FIG. 8 . FIG. Schematic diagram of the process.

如图8所示,在流程开始之后,例如可以由相关的操作人员提交任务,其中任务的提交比如说可以通过任务文件的方式实现。在任务文件中比如说可以包括各个待执行任务的相关信息。As shown in FIG. 8 , after the process starts, for example, a task can be submitted by a relevant operator, and the submission of the task can be realized, for example, by means of a task file. For example, the task file may include relevant information about each task to be executed.

在系统接收到上传的任务文件之后,可以读取提交的任务文件,从而创建任务队列,在任务队列中包括任务文件中的多个待执行的任务,之后对任务队列中的各个任务以此执行。After the system receives the uploaded task file, it can read the submitted task file, thereby creating a task queue, including multiple tasks to be executed in the task file in the task queue, and then executing each task in the task queue accordingly. .

比如说首先执行当前的第一任务,根据第一任务的任务信息获取第一图像,其中,第一任务的任务信息就可以包括上述实施例中介绍的第一关键词、搜索引擎的标识,卡片标识N,那么根据第一任务的任务信息获取第一图像,实际上就是上述实施例介绍的通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,并且获取第一搜索结果中第N个结果卡片的第一图像。执行第一任务以获取第一图像的更为详细的实现方式可以参照上述实施例的介绍,此处不再赘述。For example, the current first task is executed first, and the first image is obtained according to the task information of the first task, wherein the task information of the first task may include the first keyword introduced in the above embodiment, the search engine identifier, the card If N is identified, then obtaining the first image according to the task information of the first task is actually the search for the first keyword through the search engine described in the above embodiment, to obtain the first search result, and to obtain the Nth in the first search result. The first image of a result card. For a more detailed implementation manner of executing the first task to obtain the first image, reference may be made to the introduction of the foregoing embodiments, and details are not described herein again.

在执行完第一任务之后,还例如可以首先判断当前的第一任务是否为首次执行,若当前的第一任务为首次执行,则可以确定的是,在预设存储空间中未存储第一任务对应的待对比的图像,参照图8,比如说可以将当前的第一图像存储为第一任务对应的待对比的图像。以及在一种可能的实现方式中,还可以同时确定对搜索引擎的测试结果为,搜索引擎并未对搜索结果卡片进行更新。After the first task is executed, for example, it can be determined whether the current first task is executed for the first time. If the current first task is executed for the first time, it can be determined that the first task is not stored in the preset storage space. For the corresponding image to be compared, referring to FIG. 8 , for example, the current first image may be stored as the image to be compared corresponding to the first task. And in a possible implementation manner, it can also be determined that the test result of the search engine is that the search engine has not updated the search result card.

或者,若确定当前的第一任务不是首次执行,也就是说第一任务之前已经执行过了,那么可以确定在预设存储空间中就存储有第一任务的待对比的图像,因此可以在预设存储空间中获取第一任务的待对比的图像,从而得到第二图像。Or, if it is determined that the current first task is not executed for the first time, that is to say, the first task has been executed before, then it can be determined that the image to be compared of the first task is stored in the preset storage space, so the image to be compared can be stored in the preset storage space. It is assumed that the image to be compared of the first task is acquired in the storage space, thereby obtaining the second image.

在获取到第一图像和第二图像之后,就可以对比第一图像和第二图像,从而得到对比结果,其中,对比结果可以指示第一图像和第二图像是否相同。After the first image and the second image are acquired, the first image and the second image can be compared to obtain a comparison result, wherein the comparison result can indicate whether the first image and the second image are the same.

在得到第一图像和第二图像的对比结果之后,就可以确定第一任务已经执行完成,之后根据第一图像和第二图像的对比结果,确定是否需要发送通知。After the comparison result between the first image and the second image is obtained, it can be determined that the first task has been executed, and then it is determined whether a notification needs to be sent according to the comparison result between the first image and the second image.

具体的,若对比结果指示第一图像和第二图像相同,则可以确定搜索引擎并未对搜索结果卡片进行更新或者修改,那么就无需发送相关的通知,则可以确定第一任务对应的流程结束。或者,若对比结果指示第一图像和第二图像不相同,那么就可以确定搜索引擎对搜索结果卡片进行了更新或者修改,那么就需要向目标设备发送通知信息,以快速有效的提示当前所监控到的搜索引擎对搜索结果卡片的更新。Specifically, if the comparison result indicates that the first image and the second image are the same, it can be determined that the search engine has not updated or modified the search result card, then there is no need to send a relevant notification, and it can be determined that the process corresponding to the first task ends . Or, if the comparison result indicates that the first image and the second image are different, then it can be determined that the search engine has updated or modified the search result card, and then it is necessary to send notification information to the target device to quickly and effectively prompt the currently monitored Updates to the search result card from the search engine.

以及可以理解的是,上述介绍的是针对任务队列中的某一个任务的实现过程,任务队列中的各个任务都是需要进行处理的,因此可以在确定任务队列中还存在剩余任务的时候,执行任务队列中的下一个任务,其实现方式与上述介绍的类似,直至任务队列中的各个任务均执行完成。And it can be understood that the above description is for the implementation process of a certain task in the task queue. Each task in the task queue needs to be processed, so it can be executed when it is determined that there are remaining tasks in the task queue. The implementation of the next task in the task queue is similar to that described above, until all tasks in the task queue are executed.

因此本公开实施例提供的搜索结果样式监控方法,可以通过图像对比更为全面的监控到搜索结果卡片的更新,进而实现了对于现有搜索结果卡片的监控中,从单纯的标识监控,到更丰富的样式监控。从而解决同一标识下,卡片样式升级后无法监控到相关卡的优化动作,避免影响产品的研发以及后续的召回、对应卡片的升级等问题。Therefore, the search result style monitoring method provided by the embodiment of the present disclosure can monitor the update of the search result card more comprehensively through image comparison, thereby realizing the monitoring of the existing search result card, from simple identification monitoring to more comprehensive monitoring. Rich style monitoring. Therefore, under the same logo, the optimization actions of related cards cannot be monitored after the card style is upgraded, so as to avoid problems such as affecting product development, subsequent recalls, and corresponding card upgrades.

同时可以理解,搜索结果卡片的样式变化的监控可以有效的分析其余搜索引擎的优化信息,从而可以帮助用户快速掌握行业及动态。从而可以根据用户需求,对用户所要分析的目标进行样本收集,或进行功能迭代完善当前分析服务后再帮助用户完成需求。进而可以帮助用户收集所需要的数据,推动业务增长并优化业务的用户体验。At the same time, it can be understood that the monitoring of the style changes of the search result cards can effectively analyze the optimization information of other search engines, thereby helping users to quickly grasp the industry and trends. In this way, according to user needs, samples can be collected for the target to be analyzed by users, or functions can be iteratively improved to improve the current analysis service and then help users complete their needs. In turn, it can help users collect the data they need to drive business growth and optimize the user experience of the business.

此外,上述的实现过程中,在任意一个任务对应的测试结果出来之后,若确定需要进行通知,都会直接调用通知服务向目标设备发送通知信息,以保证任务的时效性以及通知的及时性。In addition, in the above implementation process, after the test result corresponding to any task comes out, if it is determined that notification is required, the notification service will be directly called to send notification information to the target device to ensure the timeliness of the task and the timeliness of the notification.

图9为本公开实施例的搜索结果样式监控装置的结构示意图。如图9 所示,本实施例的搜索结果样式监控装置900可以包括:处理模块901、第一获取模块902、第二获取模块903、确定模块904。FIG. 9 is a schematic structural diagram of a search result style monitoring apparatus according to an embodiment of the present disclosure. As shown in FIG. 9 , the search result style monitoring apparatus 900 in this embodiment may include: a processing module 901 , a first obtaining module 902 , a second obtaining module 903 , and a determining module 904 .

处理模块901,用于通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,所述第一搜索结果中包括多个结果卡片;A processing module 901, configured to search the first keyword through a search engine to obtain a first search result, where the first search result includes a plurality of result cards;

第一获取模块902,用于获取所述第一搜索结果中第N个结果卡片的第一图像,所述N为大于或等于1的整数;A first obtaining module 902, configured to obtain the first image of the Nth result card in the first search result, where N is an integer greater than or equal to 1;

第二获取模块903,用于获取历史搜索结果中第N个结果卡片的第二图像,所述历史搜索结果为在历史时段内通过所述搜索引擎对所述第一关键词进行搜索得到的;The second obtaining module 903 is configured to obtain the second image of the Nth result card in the historical search results obtained by searching the first keyword through the search engine within a historical period;

确定模块904,用于根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果,所述测试结果用于指示所述第一搜索结果和所述历史搜索结果相同或不同。A determination module 904, configured to determine a test result for the search engine according to the first image and the second image, where the test result is used to indicate that the first search result and the historical search result are the same or different.

一种可能的实现方式中,所述处理模块901具体用于:In a possible implementation manner, the processing module 901 is specifically used for:

从任务队列中获取第一任务,其中,所述第一任务中包括所述第一关键词和所述搜索引擎的标识;Obtain the first task from the task queue, wherein the first task includes the first keyword and the identifier of the search engine;

执行所述第一任务,以通过所述搜索引擎对所述第一关键词进行搜索,得到所述第一搜索结果。The first task is performed to search the first keyword through the search engine to obtain the first search result.

一种可能的实现方式中,所述第一任务中还包括卡片标识N;In a possible implementation manner, the first task further includes a card identifier N;

所述第一获取模块902具体用于:The first obtaining module 902 is specifically used for:

从所述第一任务中获取所述卡片标识N;Obtain the card identifier N from the first task;

根据所述卡片标识N,在所述第一搜索结果中获取第N个结果卡片;According to the card identifier N, obtain the Nth result card in the first search result;

对所述第N个结果卡片进行图像截取,得到所述第一图像。Perform image interception on the Nth result card to obtain the first image.

一种可能的实现方式中,所述处理模块901还用于:In a possible implementation manner, the processing module 901 is further configured to:

在根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果之后,将预设存储空间中,第一任务对应的待对比的图像更新为所述第一图像。After the test result for the search engine is determined according to the first image and the second image, the image to be compared corresponding to the first task in the preset storage space is updated to the first image.

一种可能的实现方式中,所述第二获取模块902具体用于:In a possible implementation manner, the second obtaining module 902 is specifically configured to:

若预设存储空间中存储有所述第一任务对应的待对比的图像,则将所述待对比的图像确定为所述第二图像;或者,If the image to be compared corresponding to the first task is stored in the preset storage space, the image to be compared is determined as the second image; or,

若预设存储空间中未存储所述第一任务对应的待对比的图像,则确定所述第二图像为空。If the image to be compared corresponding to the first task is not stored in the preset storage space, it is determined that the second image is empty.

一种可能的实现方式中,所述确定模块904具体用于:In a possible implementation manner, the determining module 904 is specifically configured to:

将所述第一图像和所述第二图像进行图像对比,得到对比结果;performing image comparison on 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, it is determined that the test result indicates that the first search result and the historical search result are different.

一种可能的实现方式中,所述处理模块901,还用于:In a possible implementation manner, the processing module 901 is further configured to:

在确定所述测试结果指示所述第一搜索结果和所述历史搜索结果不同之后,向目标设备发送通知信息,其中,所述通知信息用于指示所述第一搜索结果和所述历史搜索结果不同。After it is determined that the test result indicates that the first search result and the historical search result are different, notification information is sent to the target device, wherein the notification information is used to indicate the first search result and the historical search result different.

本公开提供一种搜索结果样式监控方法及装置,应用于计算机技术中的智能搜索领域,以达到提升针对搜索结果卡片的监控的全面性的目的。The present disclosure provides a search result style monitoring method and device, which are applied to the field of intelligent search in computer technology to achieve the purpose of improving the comprehensiveness of monitoring for search result cards.

需要说明的是,本实施例中的人头模型并不是针对某一特定用户的人头模型,并不能反映出某一特定用户的个人信息。需要说明的是,本实施例中的二维人脸图像来自于公开数据集。It should be noted that the human head model in this embodiment is not a human head model for 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.

本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In the technical solutions of the present disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved are all in compliance with relevant laws and regulations, and do not violate public order and good customs.

根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

根据本公开的实施例,本公开还提供了一种计算机程序产品,计算机程序产品包括:计算机程序,计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取计算机程序,至少一个处理器执行计算机程序使得电子设备执行上述任一实施例提供的方案。According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, the computer program product includes: a computer program, the computer program is stored in a readable storage medium, and at least one processor of the electronic device can read from the readable storage medium A computer program is taken, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the foregoing embodiments.

图10示出了可以用来实施本公开的实施例的示例电子设备1000的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。10 shows a schematic block diagram of an example electronic device 1000 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.

如图10所示,设备1000包括计算单元1001,其可以根据存储在只读存储器(ROM)1002中的计算机程序或者从存储单元1008加载到随机访问存储器(RAM)1003中的计算机程序,来执行各种适当的动作和处理。在RAM 1003中,还可存储设备1000操作所需的各种程序和数据。计算单元1001、ROM 1002以及RAM 1003通过总线1004彼此相连。输入/输出(I/O)接口1005也连接至总线1004。As shown in FIG. 10 , the device 1000 includes a computing unit 1001 that can be executed according to 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 appropriate actions and handling. In the RAM 1003, various programs and data necessary for the operation of the device 1000 can also be stored. 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 .

设备1000中的多个部件连接至I/O接口1005,包括:输入单元1006,例如键盘、鼠标等;输出单元1007,例如各种类型的显示器、扬声器等;存储单元1008,例如磁盘、光盘等;以及通信单元1009,例如网卡、调制解调器、无线通信收发机等。通信单元1009允许设备1000通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the device 1000 are connected to the I/O interface 1005, including: an input unit 1006, such as a keyboard, mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a magnetic disk, an optical disk, etc. ; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 1009 allows the device 1000 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

计算单元1001可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元1001的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元1001执行上文所描述的各个方法和处理,例如搜索结果样式监控方法。例如,在一些实施例中,搜索结果样式监控方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元1008。在一些实施例中,计算机程序的部分或者全部可以经由ROM 1002和/或通信单元1009而被载入和/或安装到设备1000 上。当计算机程序加载到RAM 1003并由计算单元1001执行时,可以执行上文描述的搜索结果样式监控方法的一个或多个步骤。备选地,在其他实施例中,计算单元1001可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行搜索结果样式监控方法。Computing unit 1001 may be various general-purpose and/or special-purpose processing components with processing and computing capabilities. Some examples of computing units 1001 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 executes the 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 may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1008 . In some embodiments, part or all of the computer program may be loaded and/or installed on the device 1000 via the ROM 1002 and/or the communication unit 1009 . When the computer program is loaded into RAM 1003 and executed by computing unit 1001, one or more steps of the search result style monitoring method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform the search result style monitoring method by any other suitable means (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/ 或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), complex programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入) 来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including audio input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务("Virtual Private Server",或简称"VPS")中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). , there are the defects of difficult management and weak business expansion. The server can also be a server of a distributed system, or a server combined with a blockchain.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present disclosure can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, there is no limitation herein.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present disclosure should be included within the protection scope of the present disclosure.

Claims (17)

1.一种搜索结果样式监控方法,包括:1. A search result style monitoring method, comprising: 通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,所述第一搜索结果中包括多个结果卡片;The first keyword is searched by a search engine to obtain a first search result, where the first search result includes a plurality of result cards; 获取所述第一搜索结果中第N个结果卡片的第一图像,所述N为大于或等于1的整数;obtaining the first image of the Nth result card in the first search result, where N is an integer greater than or equal to 1; 获取历史搜索结果中第N个结果卡片的第二图像,所述历史搜索结果为在历史时段内通过所述搜索引擎对所述第一关键词进行搜索得到的;obtaining the second image of the Nth result card in the historical search results obtained by searching the first keyword through the search engine within a historical period; 根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果,所述测试结果用于指示所述第一搜索结果和所述历史搜索结果相同或不同。According to the first image and the second image, a test result for the search engine is determined, and the test result is used to indicate that the first search result and the historical search result are the same or different. 2.根据权利要求1所述的方法,其中,所述通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,包括:2. The method according to claim 1, wherein the searching for the first keyword through a search engine to obtain the first search result comprises: 从任务队列中获取第一任务,其中,所述第一任务中包括所述第一关键词和所述搜索引擎的标识;Obtain the first task from the task queue, wherein the first task includes the first keyword and the identifier of the search engine; 执行所述第一任务,以通过所述搜索引擎对所述第一关键词进行搜索,得到所述第一搜索结果。The first task is performed to search the first keyword through the search engine to obtain the first search result. 3.根据权利要求2所述的方法,其中,所述第一任务中还包括卡片标识N;3. The method according to claim 2, wherein the first task further comprises a card identification N; 所述获取所述第一搜索结果中第N个结果卡片的第一图像,包括:The acquiring the first image of the Nth result card in the first search result includes: 从所述第一任务中获取所述卡片标识N;Obtain the card identifier N from the first task; 根据所述卡片标识N,在所述第一搜索结果中获取第N个结果卡片;According to the card identifier N, obtain the Nth result card in the first search result; 对所述第N个结果卡片进行图像截取,得到所述第一图像。Perform image interception on the Nth result card to obtain the first image. 4.根据权利要求2或3所述的方法,在根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果之后,所述方法还包括:4. The method according to claim 2 or 3, after determining the test result for the search engine according to the first image and the second image, the method further comprises: 将预设存储空间中,第一任务对应的待对比的图像更新为所述第一图像。The image to be compared corresponding to the first task in the preset storage space is updated to the first image. 5.根据权利要求4所述的方法,其中,所述获取历史搜索结果中第N个结果卡片的第二图像,包括:5. The method according to claim 4, wherein the obtaining the second image of the Nth result card in the historical search results comprises: 若预设存储空间中存储有所述第一任务对应的待对比的图像,则将所述待对比的图像确定为所述第二图像;或者,If the image to be compared corresponding to the first task is stored in the preset storage space, the image to be compared is determined as the second image; or, 若预设存储空间中未存储所述第一任务对应的待对比的图像,则确定所述第二图像为空。If the image to be compared corresponding to the first task is not stored in the preset storage space, it is determined that the second image is empty. 6.根据权利要求1-5任一项所述的方法,其中,所述根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果,包括:6. The method according to any one of claims 1-5, wherein the determining a test result for the search engine according to the first image and the second image comprises: 将所述第一图像和所述第二图像进行图像对比,得到对比结果;performing image comparison on 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, it is determined that the test result indicates that the first search result and the historical search result are different. 7.根据权利要求6所述的方法,在确定所述测试结果指示所述第一搜索结果和所述历史搜索结果不同之后,所述方法还包括:7. The method of claim 6, after determining that the test result indicates that the first search result and the historical search result are different, the method further comprising: 向目标设备发送通知信息,其中,所述通知信息用于指示所述第一搜索结果和所述历史搜索结果不同。Send notification information to the target device, wherein the notification information is used to indicate that the first search result and the historical search result are different. 8.一种搜索结果样式监控装置,包括:8. A search result style monitoring device, comprising: 处理模块,用于通过搜索引擎对第一关键词进行搜索,得到第一搜索结果,所述第一搜索结果中包括多个结果卡片;a processing module, configured to search the first keyword through a search engine to obtain a first search result, where the first search result includes a plurality of result cards; 第一获取模块,用于获取所述第一搜索结果中第N个结果卡片的第一图像,所述N为大于或等于1的整数;a first acquisition module, configured to acquire the first image of the Nth result card in the first search result, where N is an integer greater than or equal to 1; 第二获取模块,用于获取历史搜索结果中第N个结果卡片的第二图像,所述历史搜索结果为在历史时段内通过所述搜索引擎对所述第一关键词进行搜索得到的;A second obtaining module, configured to obtain the second image of the Nth result card in the historical search results obtained by searching the first keyword through the search engine within a historical period; 确定模块,用于根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果,所述测试结果用于指示所述第一搜索结果和所述历史搜索结果相同或不同。A determination module, configured to determine a test result for the search engine according to the first image and the second image, where the test result is used to indicate that the first search result and the historical search result are the same or different . 9.根据权利要求8所述的装置,其中,所述处理模块具体用于:9. The apparatus according to claim 8, wherein the processing module is specifically configured to: 从任务队列中获取第一任务,其中,所述第一任务中包括所述第一关键词和所述搜索引擎的标识;Obtain the first task from the task queue, wherein the first task includes the first keyword and the identifier of the search engine; 执行所述第一任务,以通过所述搜索引擎对所述第一关键词进行搜索,得到所述第一搜索结果。The first task is performed to search the first keyword through the search engine to obtain the first search result. 10.根据权利要求9所述的装置,其中,所述第一任务中还包括卡片标识N;10. The device according to claim 9, wherein the first task further comprises a card identification N; 所述第一获取模块具体用于:The first acquisition module is specifically used for: 从所述第一任务中获取所述卡片标识N;Obtain the card identifier N from the first task; 根据所述卡片标识N,在所述第一搜索结果中获取第N个结果卡片;According to the card identifier N, obtain the Nth result card in the first search result; 对所述第N个结果卡片进行图像截取,得到所述第一图像。Perform image interception on the Nth result card to obtain the first image. 11.根据权利要求9或10所述的装置,所述处理模块还用于:11. The apparatus according to claim 9 or 10, the processing module is further used for: 在根据所述第一图像和所述第二图像,确定对所述搜索引擎的测试结果之后,将预设存储空间中,第一任务对应的待对比的图像更新为所述第一图像。After the test result for the search engine is determined according to the first image and the second image, the image to be compared corresponding to the first task in the preset storage space is updated to the first image. 12.根据权利要求11所述的装置,其中,所述第二获取模块具体用于:12. The apparatus according to claim 11, wherein the second obtaining module is specifically used for: 若预设存储空间中存储有所述第一任务对应的待对比的图像,则将所述待对比的图像确定为所述第二图像;或者,If the image to be compared corresponding to the first task is stored in the preset storage space, the image to be compared is determined as the second image; or, 若预设存储空间中未存储所述第一任务对应的待对比的图像,则确定所述第二图像为空。If the image to be compared corresponding to the first task is not stored in the preset storage space, it is determined that the second image is empty. 13.根据权利要求8-12任一项所述的装置,其中,所述确定模块具体用于:13. The apparatus according to any one of claims 8-12, wherein the determining module is specifically configured to: 将所述第一图像和所述第二图像进行图像对比,得到对比结果;performing image comparison between 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, it is determined that the test result indicates that the first search result and the historical search result are different. 14.根据权利要求13所述的装置,所述处理模块,还用于:14. The apparatus of claim 13, the processing module, further configured to: 在确定所述测试结果指示所述第一搜索结果和所述历史搜索结果不同之后,向目标设备发送通知信息,其中,所述通知信息用于指示所述第一搜索结果和所述历史搜索结果不同。After it is determined that the test result indicates that the first search result and the historical search result are different, notification information is sent to the target device, wherein the notification information is used to indicate the first search result and the historical search result different. 15.一种电子设备,包括:15. An electronic device comprising: 至少一个处理器;以及at least one processor; and 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7中任一项所述的方法。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 execution of any of claims 1-7 Methods. 16.一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据权利要求1-7中任一项所述的方法。16. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of any of claims 1-7. 17.一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现权利要求1-7中任一项所述方法的步骤。17. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any of claims 1-7.
CN202210163845.7A 2022-02-22 2022-02-22 Search result style monitoring method and device Pending CN114880595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210163845.7A CN114880595A (en) 2022-02-22 2022-02-22 Search result style monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210163845.7A CN114880595A (en) 2022-02-22 2022-02-22 Search result style monitoring method and device

Publications (1)

Publication Number Publication Date
CN114880595A true CN114880595A (en) 2022-08-09

Family

ID=82667162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210163845.7A Pending CN114880595A (en) 2022-02-22 2022-02-22 Search result style monitoring method and device

Country Status (1)

Country Link
CN (1) CN114880595A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150357A (en) * 2013-02-25 2013-06-12 北京奇虎科技有限公司 Browser, system and method capable of realizing compare search
CN103455550A (en) * 2013-07-26 2013-12-18 百度在线网络技术(北京)有限公司 Method and device for acquiring image search results with contrast effect
CN108460154A (en) * 2018-03-27 2018-08-28 腾讯科技(深圳)有限公司 Searching method, device, computer equipment and storage medium
CN111611470A (en) * 2019-02-22 2020-09-01 北京搜狗科技发展有限公司 A data processing method, device and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150357A (en) * 2013-02-25 2013-06-12 北京奇虎科技有限公司 Browser, system and method capable of realizing compare search
CN103455550A (en) * 2013-07-26 2013-12-18 百度在线网络技术(北京)有限公司 Method and device for acquiring image search results with contrast effect
CN108460154A (en) * 2018-03-27 2018-08-28 腾讯科技(深圳)有限公司 Searching method, device, computer equipment and storage medium
CN111611470A (en) * 2019-02-22 2020-09-01 北京搜狗科技发展有限公司 A data processing method, device and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈松: "同一关键词搜索,结果竟然如此差别", pages 3, Retrieved from the Internet <URL:https://mp.weixin.qq.com/s?__biz=Mzg3NTU2MjU2Mw==&mid=2247565433&idx=3&sn=e09e02e525686f850d25d7bd7f6f0fcd&source=41#wechat_redirect> *

Similar Documents

Publication Publication Date Title
CN113377809A (en) Data processing method and apparatus, computing device, and medium
WO2023142406A1 (en) Ranking method and apparatus, ranking model training method and apparatus, and electronic device and medium
CN115242731A (en) Message processing method, device, equipment and storage medium
WO2023231350A1 (en) Task processing method implemented by using integer programming solver, device, and medium
CN118278361B (en) Document generation method, device, electronic equipment and medium
CN114821581A (en) Image recognition method and method for training an image recognition model
EP4583039A1 (en) Image processing method and apparatus, device, and medium
CN114880595A (en) Search result style monitoring method and device
CN112860681B (en) Data cleaning method and device, computer equipment and medium
CN116304101A (en) Data processing method, device, electronic equipment and medium
CN115203544A (en) Recommendation method and device, electronic device and medium
CN114329159A (en) Search method, search device, electronic equipment and medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN114416040A (en) A page construction method, apparatus, device and storage medium
EP4152174A1 (en) Data processing method and apparatus, and computing device and medium
CN114547340A (en) Hot-spot event mining method and device, device and medium
CN116881485B (en) Method and device for generating image retrieval index, electronic equipment and medium
CN115809364B (en) Object recommendation method and model training method
EP4155983A2 (en) Data processing method, apparatus, storage medium, and computer program product
CN114428908A (en) Information searching method, device, equipment, storage medium and product
CN117472926A (en) Database updating method and device, equipment and medium
CN119807396A (en) Data processing method, device, equipment and medium
CN117093595A (en) Data query method, device, equipment and medium
CN114780819A (en) Object recommendation method and device
CN119299446A (en) Data transmission method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination