自定义搜索引擎_如何创建自己的自定义Google搜索引擎

自定义搜索引擎_如何创建自己的自定义Google搜索引擎自定义搜索引擎HaveyoueverwantedtocreateacustomGooglesearchenginethatsearchesonlyspecificwebsites?YoucaneasilydothiswithGoogle’sCustomSearchEnginetool.Youcanbookmarkyoursearche…

大家好,又见面了,我是你们的朋友全栈君。

自定义搜索引擎

自定义搜索引擎

image

Have you ever wanted to create a custom Google search engine that searches only specific websites? You can easily do this with Google’s Custom Search Engine tool. You can bookmark your search engine and even share it with other people.

您是否曾经想过创建仅搜索特定网站的自定义Google搜索引擎? 您可以使用Google的“自定义搜索引擎”工具轻松完成此操作。 您可以为搜索引擎添加书签,甚至可以与他人共享。

This trick works similarly to Google’s site: operator, but you won’t have to type the operator every time you search. It’s particularly useful if you want to search a large number of sites at once.

此技巧的用法类似于Google的站点:operator ,但是您不必在每次搜索时都键入运算符。 如果要一次搜索大量站点,此功能特别有用。

创建自定义搜索引擎 (Creating a Custom Search Engine)

To get started, head over to the Google Custom Search Engine page and click the Create a custom search engine button. You’ll need a Google account for this – the search engine will be saved with your Google account.

首先,请转到Google自定义搜索引擎页面,然后单击创建自定义搜索引擎按钮。 为此,您需要一个Google帐户-搜索引擎将与您的Google帐户一起保存。

image

Enter a name and description for your search engine – these can be anything you like.

输入搜索引擎的名称和描述-您可以随意输入。

image

The Sites to search field is the one that really matters. Here, you’ll specify a list of the websites you want to search. For example, if you wanted to search both howtogeek.com and microsoft.com, you’d enter:

要搜索网站”字段确实很重要。 在这里,您将指定要搜索的网站列表。 例如,如果您要搜索howtogeek.com和microsoft.com,请输入:

howtogeek.com/*

howtogeek.com/*

microsoft.com/*

microsoft.com/*

The * character is the wildcard, which can match anything, so the /* characters tell your search engine to search everything on both of these websites.

*字符是通配符,可以匹配任何内容,因此/ *字符告诉您的搜索引擎搜索这两个网站上的所有内容。

There are more advanced things you can do with this box – we’ll get back to that in a bit.

您可以使用此框执行更高级的操作-我们稍后再讨论。

image

After clicking Next, you can specify a style for your search results and test the search engine you created.

单击“下一步”后,您可以为搜索结果指定样式并测试您创建的搜索引擎。

image

Once you’re happy with your search engine, click the Next button at the bottom of the page and you’ll end up at a page that gives you an embed code for your search engine.

对搜索引擎感到满意之后,请单击页面底部的“下一步”按钮,您将最终到达一个为您的搜索引擎提供嵌入代码的页面。

You’re probably not a web developer, so you’ll want to ignore this page. Click the Google Custom Search logo at the top of the page instead.

您可能不是网络开发人员,所以您将忽略此页面。 而是点击页面顶部的Google自定义搜索徽标。

image

To get to your search engine’s page, click its name in the list of search engines you’ve created.

要进入搜索引擎页面,请在您创建的搜索引擎列表中单击其名称。

image

You can bookmark this page for easy access your search engine. You can also share your search engine with anyone by sending them the full URL that appears in your address bar.

您可以在此页面上添加书签,以方便访问搜索引擎。 您还可以通过向他们发送地址栏中显示的完整URL,与任何人共享搜索引擎。

image

URL技巧 (URL Tricks)

You don’t have to specify an entire website while creating your custom search engine.

创建自定义搜索引擎时,您不必指定整个网站。

For example, the custom search engine above searches all areas of microsoft.com. If we do an example search, we might see that there’s useful information coming from windows.microsoft.com and support.microsoft.com, but the results from answers.microsoft.com (Microsoft’s support forum) are not very helpful.

例如,上面的自定义搜索引擎搜索microsoft.com的所有区域。 如果我们进行示例搜索,我们可能会发现有一些有用的信息来自windows.microsoft.comsupport.microsoft.com ,但是answers.microsoft.com (Microsoft的支持论坛)的结果不是很有帮助。

image

To exclude answers.microsoft.com and include the other subdomains, we could use the following URL list while creating a search engine:

为了排除Answers.microsoft.com并包括其他子域,我们可以在创建搜索引擎时使用以下URL列表:

howtogeek.com/* windows.microsoft.com/* support.microsoft.com/*

howtogeek.com/* windows.microsoft.com/* support.microsoft.com/*

Note that there’s no way to exclude a specific subdomain – we can only include the ones we want to search. This list will search only the two subdomains on microsoft.com.

请注意,无法排除特定的子域-我们只能包含要搜索的子域。 此列表将仅搜索microsoft.com上的两个子域。

image

There are several other types of URLs you can define in this list:

您可以在此列表中定义其他几种URL:

  • Single Page: You can define only one specific page by entering its URL, such as example.com/page.html. This will include only a single web page in the search engine.

    单页 :您只能通过输入URL来定义一个特定页面,例如example.com/page.html 。 这将仅在搜索引擎中包含一个网页。

  • Part of a Website: You can use the * character in other ways. For example, the URL support.microsoft.com/kb/* will search only Microsoft Knowledge Base articles. Using the URL example.com/*word* will search all pages on example.com that have word in their URLs.

    网站的一部分 :您可以通过其他方式使用*字符。 例如,URL support.microsoft.com/kb/*将仅搜索Microsoft知识库文章。 使用URL example.com/*word*将搜索example.com上URL中包含单词的所有页面。

You can continue fine-tuning the search engine until you’re happy with the results by clicking the back to step 1 link, modifying the URLs, and then performing another test search.

您可以继续微调搜索引擎,直到对结果满意为止,方法是单击返回到步骤1的链接,修改URL,然后执行另一个测试搜索。

image

Once you’re done, you can even add your custom search engine to your browser’s search bar.

完成后,您甚至可以将自定义搜索引擎添加到浏览器的搜索栏中

翻译自: https://www.howtogeek.com/124703/how-to-create-your-own-custom-google-search-engine/

自定义搜索引擎

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/158579.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 多重共线性VIF

    多重共线性VIF多重共线性是指自变量之间存在线性相关关系,即一个自变量可以是其他一个或几个自变量的线性组合。方差膨胀系数(varianceinflationfactor,VIF)是衡量多元线性回归模型中复(多重)共线性严重程度的一种度量。它表示回归系数估计量的方差与假设自变量间不线性相关时方差相比的比值。多重共线性是指自变量之间存在线性相关关系,即一个自变量可以是其他一个或几个自变量的线性组合。检验方法主要有:容忍度(Tolerance)和方差膨胀系数(Varianceinflationfactor,

    2022年4月29日
    116
  • 从零開始学习OpenCL开发(一)架构

    从零開始学习OpenCL开发(一)架构

    2021年12月16日
    47
  • 企业 keepalived 高可用项目实战

    企业 keepalived 高可用项目实战Listitem企业keepalived高可用项目实战1、KeepalivedVRRP介绍keepalived是什么keepalived是集群管理中保证集群高可用的一个服务软件,用来防止单点故障。keepalived工作原理keepalived是以VRRP协议为实现基础的,VRRP全称VirtualRouterRedundancyProtocol,即虚拟路由冗余协议。虚拟路由冗余协议,可以认为是实现高可用的协议,即将N台提供相同功能的路由器组成一个..

    2022年7月13日
    14
  • Edge breaker记录

    Edge breaker记录和代码相关性非常强的是这篇文章,几乎就是伪代码了:http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.58.7918&rep=rep1&type=pdf一、Compression阶段命令参数为umbrellla_times4.offB第一个参数就是输入网格,目前支持OFF和OVTable两种文件格式,这里…

    2022年6月1日
    34
  • 数据结构–链表的排序详解

    数据结构–链表的排序详解1、前言前面两篇博客,我已经把线性表的两种基本的表示形式,做了一个基本的介绍和一些对比。但是,我突然发现在链表这里我缺少一个很重要的内容,那就是对我们的链表进行排序,其实,在连接两个链表的时候,就要求我们的那两个链表是有序的。2、链表排序—最简单、直接的方式(直接采用冒泡或者选择排序,而且不是交换结点,只交换数据域)//线性表的排序,采用冒泡排序,直接遍历链表voidListsort(Nod

    2022年10月11日
    2
  • linux socket udp编程_linux网络编程基础

    linux socket udp编程_linux网络编程基础概述UDP是UserDatagramProtocol的简称,中文名是用户数据报协议,是一个简单的面向数据报的运输层协议,在网络中用于处理数据包,是一种无连接的协议。UDP不提供可靠性的传输,它只是把应用程序传给IP层的数据报发送出去,但是并不能保证它们能到达目的地。由于UDP在传输数据报前不用在客户和服务器之间建立一个连接,且没有超时重发等机制,故而传输速度很快。UDP有如…

    2022年9月8日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号