# HNLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/hn/HNLoader)

Load `Hacker News` data.

It loads data from either main page results or the comments page.

## Signature

```python
HNLoader(
    self,
    web_path: Union[str, Sequence[str]] = '',
    header_template: Optional[dict] = None,
    verify_ssl: bool = True,
    proxies: Optional[dict] = None,
    continue_on_failure: bool = False,
    autoset_encoding: bool = True,
    encoding: Optional[str] = None,
    web_paths: Sequence[str] = (),
    requests_per_second: int = 2,
    default_parser: str = 'html.parser',
    requests_kwargs: Optional[Dict[str, Any]] = None,
    raise_for_status: bool = False,
    bs_get_text_kwargs: Optional[Dict[str, Any]] = None,
    bs_kwargs: Optional[Dict[str, Any]] = None,
    session: Any = None,
    *,
    show_progress: bool = True,
    trust_env: bool = False,
)
```

## Extends

- `WebBaseLoader`

## Methods

- [`load()`](https://reference.langchain.com/python/langchain-community/document_loaders/hn/HNLoader/load)
- [`load_comments()`](https://reference.langchain.com/python/langchain-community/document_loaders/hn/HNLoader/load_comments)
- [`load_results()`](https://reference.langchain.com/python/langchain-community/document_loaders/hn/HNLoader/load_results)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/document_loaders/hn.py#L8)