hackernews
hackernews
¶
Hacker News connector — top stories from the HN Firebase API.
No authentication required. All API calls are in module-level functions for easy mocking in tests.
Classes¶
HackerNewsConnector
¶
Bases: BaseConnector
Fetch the current top stories from Hacker News.
Source code in src/diapason/connectors/hackernews.py
Methods:¶
sync
¶
sync(
*,
since: Optional[datetime] = None,
cursor: Optional[str] = None,
) -> Iterator[Document]
Yield Documents for the top 5 Hacker News stories.