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