google search by google api in r or python
<p>I want to search some thing (ex:"python language") in google by python or R and it will give me the list of links for that google search
like:</p>

<pre><code>https://en.wikipedia.org/wiki/Python_(programming_language)
https://www.python.org/
https://www.python.org/about/gettingstarted/
</code></pre>

<p>Is there any api for that 
I went through this question 
<a href="http://stackoverflow.com/questions/32889136/how-to-get-google-search-results">How to get google search results</a></p>

<p>but problem is sometime it is working and most of the time it is not working and giving only empty list() as an output.
thanks.</p>

<p>I have used this <a href="https://github.com/rohithpr/py-web-search" rel="nofollow">python web search api</a> to perform google search in python. Fairly straightforward to use and easy to install.</p>

python web-scraping google-api google-api-python-client