mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 10:39:53 +00:00
Cleanup page decode
Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
This commit is contained in:
parent
76b4675d1b
commit
09b145cb85
1 changed files with 2 additions and 9 deletions
|
@ -233,15 +233,8 @@ def process_url(url):
|
|||
file=sys.stderr,
|
||||
)
|
||||
return []
|
||||
data = rxscript.sub(
|
||||
"",
|
||||
rxcomment.sub(
|
||||
"",
|
||||
rxblank.sub(
|
||||
" ", "".join(map(lambda x: x.decode("utf-8"), resp.readlines()))
|
||||
),
|
||||
),
|
||||
)
|
||||
data = rxscript.sub("", rxcomment.sub("", rxblank.sub(" ", resp.read().decode())))
|
||||
|
||||
dom = html.fromstring(data)
|
||||
|
||||
return dom.xpath('//table[contains(@class, "simpleTable")]')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue