Using CURL with Google

前端 未结 5 1395
温柔的废话
温柔的废话 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:32

    Before scrapping data please read https://support.google.com/websearch/answer/86640?rd=1

    Against google terms

    Automated traffic includes:

    Sending searches from a robot, computer program, automated service, or search scraper Using software that sends searches to Google to see how a website or webpage ranks on Google

提交回复
热议问题