|
|
@ -198,6 +198,7 @@ class Publications(Bureau):
|
|
|
|
# re-render with readability
|
|
|
|
# re-render with readability
|
|
|
|
#doc = readability.Document(resp.text,
|
|
|
|
#doc = readability.Document(resp.text,
|
|
|
|
# url=url)
|
|
|
|
# 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)
|
|
|
|
doc = readabilipy.simple_json_from_html_string(resp.text, use_readability=True)
|
|
|
|
|
|
|
|
|
|
|
|
timestamp = datetime.now().strftime("Sourced %d %B, %Y at %H:%M")
|
|
|
|
timestamp = datetime.now().strftime("Sourced %d %B, %Y at %H:%M")
|
|
|
|