Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get request to Google Search

I'm trying to get HTML with search results from Google. With sending GET request for example to:

https://www.google.ru/?q=1111

But if in browser all is ok, when I'm trying to use it with curl or to get source with "View source" in Google, there is only some Javascript code, no search result. Is that some type of protection? What can I do?

like image 358
Maximus Avatar asked Mar 26 '17 20:03

Maximus


People also ask

Is a Google search a GET request?

Using the Google search protocol is as simple as requesting a page from a web server. The Google search request is a standard HTTP GET or POST command, which returns results in either XML or HTML format, as specified in the search request.

How do you make a GET request?

The GET request consists of the request-line and HTTP headers section. The GET request-line begins with an HTTP method token, followed by the request URI and the protocol version, ending with CRLF. Space characters separate the elements.

Does Google search have an API?

The Search Console API provides programmatic access to the most popular reports and actions in your Search Console account. Query your search analytics, list your verified sites, manage your sitemaps for your site, and more. Official Google Search updates and SEO best practices.

What is Google request?

A government request for user information is when a government agency asks Google to disclose information about someone who uses Google services. Most requests are issued in the context of criminal investigations, but government agencies may also request information in the context of civil or administrative cases.


1 Answers

You now have to use the Google Search API to make your GET requests.

All other methods have been blocked.

like image 184
Brian Smith Avatar answered Oct 14 '22 00:10

Brian Smith