I am trying to get the first non-ad result on a simple query on Google.
res = requests.get('https://www.google.com?q=' + query)
Assign any value to query and you will get an error. I have tried to add some headers, but nothing changes.
I have tried to add all other parameters that google typically associates to a query and again nothing changes.
No problems if you do the search with selenium.
The error code is 429, but this seems to be just a standard response for this query. It has nothing to do with my IP and I am not spamming Google, and this does not disappear after a while.
Do you know why this happens, and is there some header I can add, or any other solution to just see the results, as if you were searching that keyword on google?