mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
test
This commit is contained in:
parent
6482487f9d
commit
5ebdad391b
@ -47,6 +47,7 @@ def fetch_result(query):
|
|||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
except requests.exceptions.HTTPError as e:
|
except requests.exceptions.HTTPError as e:
|
||||||
return "HTTP error: " + e.message
|
return "HTTP error: " + e.message
|
||||||
|
return "testing"
|
||||||
|
|
||||||
page = etree.HTML(r.content)
|
page = etree.HTML(r.content)
|
||||||
title = bleach.clean(etree.tostring(page.xpath('/html/body/article/h1[1]')[0]), tags=[], strip=True)
|
title = bleach.clean(etree.tostring(page.xpath('/html/body/article/h1[1]')[0]), tags=[], strip=True)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user