# HtmlLinkExtractor

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graph_vectorstores/extractors/html_link_extractor/HtmlLinkExtractor)

## Signature

```python
HtmlLinkExtractor(
    self,
    *,
    kind: str = 'hyperlink',
    drop_fragments: bool = True,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `kind` | `str` | No | The kind of edge to extract. Defaults to ``hyperlink``. (default: `'hyperlink'`) |
| `drop_fragments` | `bool` | No | Whether fragments in URLs and links should be dropped. Defaults to ``True``. (default: `True`) |

## Extends

- `LinkExtractor[HtmlInput]`

## Constructors

```python
__init__(
    self,
    *,
    kind: str = 'hyperlink',
    drop_fragments: bool = True,
)
```

| Name | Type |
|------|------|
| `kind` | `str` |
| `drop_fragments` | `bool` |


## Properties

- `drop_fragments`

## Methods

- [`as_document_extractor()`](https://reference.langchain.com/python/langchain-community/graph_vectorstores/extractors/html_link_extractor/HtmlLinkExtractor/as_document_extractor)
- [`extract_one()`](https://reference.langchain.com/python/langchain-community/graph_vectorstores/extractors/html_link_extractor/HtmlLinkExtractor/extract_one)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/graph_vectorstores/extractors/html_link_extractor.py#L65)