try:
from googlesearch import search
except ImportError:
print("No module named 'google' found")
# to search
query = "A computer science portal"
for j in search(query, tld="co.in", num=10, stop=10, pause=2):
print(j)
from google import search
import requests
for url in search(ip, stop=10):
r = requests.get(url)
title = everything_between(r.text, '<title>', '</title>')