try to use readability.js

workspace
Brendan Howell 3 years ago
parent 9efd790f38
commit 8ca3f8025e

@ -198,6 +198,7 @@ class Publications(Bureau):
# re-render with readability
#doc = readability.Document(resp.text,
# url=url)
# TODO: might be cool to try to use the "byline" and "title" fields of the doc
doc = readabilipy.simple_json_from_html_string(resp.text, use_readability=True)
timestamp = datetime.now().strftime("Sourced %d %B, %Y at %H:%M")

Loading…
Cancel
Save