diff --git a/intake-hackernews/intake_hackernews/core.py b/intake-hackernews/intake_hackernews/core.py index 13bbe00..9d36244 100644 --- a/intake-hackernews/intake_hackernews/core.py +++ b/intake-hackernews/intake_hackernews/core.py @@ -57,8 +57,9 @@ def main(): if story_time := story.get("time"): item["time"] = int(story_time) + item["body"] = f'
' if story_text := story.get("text"): - item["body"] = story_text + item["body"] = story_text + item["body"] if story_url := story.get("url"): item["link"] = story_url @@ -66,4 +67,6 @@ def main(): if story_title := story.get("title"): item["title"] = story_title + item["ttl"] = 60 * 60 * 72 # 72 hours + print(json.dumps(item))