Spaces:
Sleeping
Sleeping
from googlesearch import search | |
class GoogleSearchService: | |
def __init__(self): | |
pass | |
def google_search(self, query, num_results=5): | |
search_results = search(query, num_results=num_results) | |
return search_results |