mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test
This commit is contained in:
parent
7a0a9bed2c
commit
720bae35cf
@ -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()):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user