diff options
| author | Tianhao Wang <shrik3@riseup.net> | 2023-03-29 11:42:14 +0200 |
|---|---|---|
| committer | Tianhao Wang <shrik3@riseup.net> | 2023-03-29 11:42:14 +0200 |
| commit | 7c19ce4ea2c9ae542d743cbdd19e4c0fcf4e3daa (patch) | |
| tree | a3b1b7296a6dca48b24d1c14a200a99dabd440d4 /hnnews.py | |
| parent | 5331214b8654d9b8e2441f9ca568a19b6afa7347 (diff) | |
improve structure
Diffstat (limited to 'hnnews.py')
| -rw-r--r-- | hnnews.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |
