2015-04-24 43 views
2

我想在許多主題上查詢Google搜索(總計約800個查詢),例如「cars」,以使用Python獲取本地主機上的前100個結果。我該怎麼做?使用本地主機上的Google API搜索整個網絡

Google Custom Search Engine似乎只有在網站上使用它(我們必須提供網站的地址和本地主機被拒絕)時纔有效。

舊的Google Web Search API已棄用。它的結果數量有限(我不能得到100個結果,因爲我願意)。

This small independent Google Search tool也可以適用於一個或兩個請求,但我想我會被禁止,如果我嘗試〜800個請求

+0

我的解釋是,Google不希望您使用他們的服務作爲數據挖掘的無收入來源。否則,您可以簡單地設置一個能夠利用Google搜索結果的競爭搜索引擎,但會將自己的廣告放在搜索結果中。您必須選擇違反服務條款或以其他方式獲取您的信息。我推薦後者。如果這是合法的嚴肅研究,您可以聯繫Google。儘管這是一個很長的過程。 – Trott

回答

1

沒有描述如何做到這一點谷歌的支持頁面。

https://support.google.com/customsearch/answer/2631040?hl=en

它說:

On the Custom Search home page, click the search engine you want. 
Click Setup, and then click the Basics tab. 
Select Search the entire web but emphasize included sites. 
In the Sites to search section, delete the site you entered during the initial setup process. 

它似乎是爲我工作。我想谷歌已經啓用了這個功能,現在他們在每天前100次之後收取查詢費用。

相關問題