python - Google search results limits -


i tried search in google search engine word "sunday".

the total number of results 1.390.000.000. can see first 420 results, until 42 page of results.

is there way take results of google search?

you can use google module control number of results query.

install using pip:

pip install google 

usage:

from google import search  n = 10  # number of results query = 'sunday' results = google.search(query, stop=n)  # returns generator  result in results:     print(result) 

before using method, keep in mind pause parameter:

pause (float) - lapse wait between http requests. lapse long make search slow, lapse short may cause google block ip. mileage may vary!

docs


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -