From 7c19ce4ea2c9ae542d743cbdd19e4c0fcf4e3daa Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Wed, 29 Mar 2023 11:42:14 +0200 Subject: improve structure --- hnnews.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hnnews.py') diff --git a/hnnews.py b/hnnews.py index d186b84..68e333a 100644 --- a/hnnews.py +++ b/hnnews.py @@ -22,7 +22,7 @@ def get_topnews(limit): if story["type"] != "story": continue if "url" not in story.keys(): - print("using alt url") + # print("using alt url") story["url"] = f'https://news.ycombinator.com/item?id={story_id}' result.append(story) except Exception as e: @@ -37,7 +37,7 @@ def get_one_item(id): if story["type"] != "story": return None if "url" not in story.keys(): - print("using alt url") + # print("using alt url") story["url"] = f'https://news.ycombinator.com/item?id={story_id}' return story except Exception as e: -- cgit v1.2.3-70-g09d2