File size: 243 Bytes
193bf75
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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