From 8d946fb60ba0ce641cc870ab35ba4115b34fe70e Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Sep 2018 14:36:33 +0100 Subject: Add !suggest, to get suggested searches from google --- src/Utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Utils.py b/src/Utils.py index cd0e0cfa..e78c08fc 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -285,3 +285,6 @@ def hook(event, **kwargs): {"event": event, "kwargs": kwargs}) return func return _hook_func + +def strip_html(s): + return bs4.BeautifulSoup(s, "lxml").get_text() -- cgit v1.3.1-10-gc9f91