开发者

Reading Google search results using PHP?

开发者 https://www.devze.com 2023-01-05 20:48 出处:网络
Is der any method to read the G开发者_如何学Gooogle search result and display it own style . I want to read the contents of Google search results after users search for query will display only the .PD

Is der any method to read the G开发者_如何学Gooogle search result and display it own style . I want to read the contents of Google search results after users search for query will display only the .PDF files for the search queries is it possible to do with PHP ?


Yes, by using Google's public search API.


Like Bart mentioned you can and should use the API so as be on the up and up with Google.

But that being said if you want to really have a hack you can just make a curl request from php to do the search against google and parse the results. Or you could even do it in perl and just run the perl script from php.

But again this is not the preferred solution. I am just trying to provide an answer for your question. And yes it can be done.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号