(story_id: str)
| 11 | |
| 12 | |
| 13 | def get_hackernews_story(story_id: str) -> dict: |
| 14 | url = f"https://hacker-news.firebaseio.com/v0/item/{story_id}.json?print=pretty" |
| 15 | return httpx.get(url, timeout=10).json() |
| 16 | |
| 17 | |
| 18 | def hackernews_top_stories(max_stories: int = 10) -> list[dict]: |
no test coverage detected