Dhavaer
0
Q:

how to search something on google using python

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) 
0
pip install google
0
search(query, tld='com', lang='en', num=10, start=0, stop=None, pause=2.0)
0
pip install beautifulsoup4
0

New to Communities?

Join the community