mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-31 17:44:52 +01:00
utcnow in scraper
This commit is contained in:
parent
425bcfe1b3
commit
c05076670f
@ -22,7 +22,7 @@ for post_content in soup.find_all("div", {"class" : regex_batch}):
|
||||
article_url = json.dumps("https://www.producthunt.com" + content.p.a["href"])
|
||||
article_title = json.dumps(content.h3.text)
|
||||
article_contents = json.dumps(content.p.text)
|
||||
article_time = json.dumps(datetime.now().isoformat())
|
||||
article_time = json.dumps(datetime.utcnow().isoformat())
|
||||
items.append("{{\"title\": {title}, \"content_html\": {html}, \"url\": {url}, \"date_published\": {date}}}".format(
|
||||
title=article_title,
|
||||
html=article_contents,
|
||||
|
Loading…
x
Reference in New Issue
Block a user