This commit is contained in:
deathbybandaid 2019-06-14 10:25:45 -04:00
parent 7a0a9bed2c
commit 720bae35cf

View File

@ -5,7 +5,7 @@ from __future__ import unicode_literals, absolute_import, division, print_functi
import requests
from fake_useragent import UserAgent
import googlesearch
from googlesearch import search as gsearch
# TODO add a cache flush
@ -27,7 +27,7 @@ class Google():
safe='off',
"""
return str(googlesearch.search(searchterm))
return str(gsearch(searchterm))
# check cache
if searchtype not in list(self.cache.keys()):