Skip to content

Commit

Permalink
updating dependencies (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
viennaa authored Feb 21, 2024
1 parent 3a679ff commit 6f67afa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion tools/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f67afa

Please sign in to comment.