diff --git a/requirements.txt b/requirements.txt index 3130f048..54933449 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,12 +3,12 @@ prometheus-client requests six PyYAML -Flask==1.1.2 -Werkzeug==2.0.3 +Flask==2.3.3 +Werkzeug==3.0.1 gevent cffi -beautifulsoup4==4.9.3 +beautifulsoup4==4.12.3 lxml -itsdangerous==1.1.0 -jinja2==3.0.3 +itsdangerous==2.1.2 +jinja2==3.1.3 simplejson diff --git a/tools/helper.py b/tools/helper.py index 9a74df57..4c20eb50 100644 --- a/tools/helper.py +++ b/tools/helper.py @@ -15,8 +15,11 @@ def yaml_read(path): def remove_html_tags(text): - from bs4 import BeautifulSoup + from bs4 import BeautifulSoup, MarkupResemblesLocatorWarning + import warnings import re + warnings.filterwarnings('ignore', category=MarkupResemblesLocatorWarning) + soup = BeautifulSoup(text, features="lxml") text = soup.text text = re.sub(r"\s+", " ", text)