For 90% of the time the search_results list is taking empty values in hence, i am facing out of range errors.
Here is an example of the code that only works 10% of the time:
`from googleapi import google
def googleSearch(searchterm):
num_page = 1
search_results = google.search(searchterm, num_page)
return search_results[0].description
x = input('search?')
print(googleSearch(x))`