We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0e5755 commit 162f83dCopy full SHA for 162f83d
pt_cli/connect.py
@@ -10,7 +10,6 @@
10
11
import requests
12
import bs4
13
-import lxml
14
15
logger = logging.getLogger(__name__)
16
@@ -128,7 +127,7 @@ def maybe_json(self, data):
128
127
return loads
129
except json.decoder.JSONDecodeError:
130
if isinstance(data, str):
131
- soup = bs4.BeautifulSoup(data, features="lxml")
+ soup = bs4.BeautifulSoup(data, features="html5lib")
132
if soup.get_text().startswith("----------"):
133
sys.stdout.write(soup.get_text())
134
elif soup.get_text().startswith("Welcome"):
pyproject.toml
@@ -21,7 +21,7 @@ dependencies = [
21
"pyyaml>=6.0",
22
"requests>=2.28",
23
"beautifulsoup4>=4.12",
24
- "lxml",
+ "html5lib",
25
"shtab",
26
]
27
0 commit comments