日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

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

發布時間:2023/12/19 综合教程 25 生活家
生活随笔 收集整理的這篇文章主要介紹了 自定义搜索引擎_如何创建自己的自定义Google搜索引擎 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

自定義搜索引擎

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帳戶一起保存。

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

輸入搜索引擎的名稱和描述-您可以隨意輸入。

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.

您可以使用此框執行更高級的操作-我們稍后再討論。

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

單擊“下一步”后,您可以為搜索結果指定樣式并測試您創建的搜索引擎。

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自定義搜索徽標。

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

要進入搜索引擎頁面,請在您創建的搜索引擎列表中單擊其名稱。

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,與任何人共享搜索引擎。

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的支持論壇)的結果不是很有幫助。

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上的兩個子域。

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,然后執行另一個測試搜索。

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/

自定義搜索引擎

總結

以上是生活随笔為你收集整理的自定义搜索引擎_如何创建自己的自定义Google搜索引擎的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。