Google search using Python

+2 votes
Can I perform a google search using python? Is there any specific module or a workaround for this?
Oct 3, 2019 in Python by Hannah
• 18,570 points

2 answers to this question.

+1 vote

Python provides a module called "google" with which you can access google. You can use something like this:

from googlesearch import search 
except ImportError: 
print("No module named 'google' found") 
# to search 
query = "Edureka"
for j in search(query, tld=".com", num=5, stop=1, pause=2.0): 
answered Oct 3, 2019 by Tagya
+1 vote
import webbrowser

search=input('Search: ')''+search)
answered Dec 25, 2019 by Makhmudov
Thank you so much. I have upvoted your answer.

Related Questions In Python

0 votes
1 answer

Search help using Python Console

The pydoc -k flag searches the documentation. pydoc ...READ MORE

answered Nov 8, 2018 in Python by SDeb
• 13,300 points
0 votes
1 answer
+2 votes
2 answers

How to make a laplacian pyramid using OpenCV python?

down voteacceptTheeThe problem is that you're iterating ...READ MORE

answered Apr 3, 2018 in Python by charlie_brown
• 7,780 points
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,424 views
0 votes
0 answers
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
+4 votes
6 answers

Substring search in Python

Use the "in" operator in python" if "substring" ...READ MORE

answered Apr 13, 2018 in Python by Nietzsche's daemon
• 4,260 points