try:
    from google import search
except ImportError: 
    print("No module named 'google' found")
 
# to search
query = "Geeksforgeeks"
 
for j in search(query, tld="co.in", num=10, stop=1, pause=2):
    print(j)
try:
    from google import search
except ImportError: 
    print("No module named 'google' found")
 
# to search
query = "Geeksforgeeks"
 
for j in search(query, tld="co.in", num=10, stop=1, pause=2):
    print(j)
# to search