mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 14:39:54 -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
|
import requests
|
||||||
from fake_useragent import UserAgent
|
from fake_useragent import UserAgent
|
||||||
|
|
||||||
import googlesearch
|
from googlesearch import search as gsearch
|
||||||
|
|
||||||
# TODO add a cache flush
|
# TODO add a cache flush
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ class Google():
|
|||||||
safe='off',
|
safe='off',
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return str(googlesearch.search(searchterm))
|
return str(gsearch(searchterm))
|
||||||
|
|
||||||
# check cache
|
# check cache
|
||||||
if searchtype not in list(self.cache.keys()):
|
if searchtype not in list(self.cache.keys()):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user