Programmatically get Google search results

后端 未结 5 2091
刺人心
刺人心 2020-12-16 04:12

How can I get Google search results from inside a program? I need to get an array of search results for a specified string.

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-16 04:41

    So... nine years later, you can no longer do that. You do get JSON, but it's quite short and just says "The Google Web Search API is no longer available. Please migrate to the Google Custom Search API (https://developers.google.com/custom-search/)"

    Google Custom Search can search the entire web using the 'Thing' schema.org topic. https://support.google.com/customsearch/answer/4513886?visit_id=636769478248533420-865620074&rd=1

提交回复
热议问题