Scaper_search / search.py
gaur3009's picture
Create search.py
e1f9ee6 verified
raw
history blame
178 Bytes
from googlesearch import search
def search_google(query, num_results=5):
"""Search Google and return list of URLs."""
return list(search(query, num_results=num_results))