Using CURL with Google

前端 未结 5 1408
温柔的废话
温柔的废话 2021-01-07 07:04

I want to CURL to Google to see how many results it returns for a certain search.

I\'ve tried this:

  $url = \"http://www.google.com/search?q=\".$str         


        
5条回答
  •  盖世英雄少女心
    2021-01-07 07:45

    Use the Google Ajax API.

    http://code.google.com/apis/ajaxsearch/

    See this thread for how to get the number of results. While it refers to c# libraries, it might give you some pointers.

提交回复
热议问题