Closed derpyherp closed 4 years ago
Good idea! Updating to the latest version of googlesearch
fixes things.
I think we can clean things up a bit:
googlesearch
related files (__init__.py
, google/*
)google
to requirements.txt
ffn_bot/cache.py
to from googlesearch import search
Could you please update the PR with these changes?
Awesome!
File "./ffn_bot/cache.py", line 7, in <module>
from google import search
ModuleNotFoundError: No module named 'google'
The only change needed now is to fix the import:
--- a/ffn_bot/cache.py
+++ b/ffn_bot/cache.py
@@ -3,8 +3,7 @@ import time
from collections import OrderedDict
from requests import get
-
-from google import search
+from googlesearch import search
Right now bot works with story IDs but not if titles are used (e.g. linkffn(Some Text Here)). It's because google search is broken.
Update to latest version of googlesearch (https://github.com/MarioVilas/googlesearch) and titles work again (tested).