# SRTLoader

> **Class** in `langchain_community`

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

Load `.srt` (subtitle) files.

## Signature

```python
SRTLoader(
    self,
    file_path: Union[str, Path],
)
```

## Extends

- `BaseLoader`

## Constructors

```python
__init__(
    self,
    file_path: Union[str, Path],
)
```

| Name | Type |
|------|------|
| `file_path` | `Union[str, Path]` |


## Properties

- `file_path`

## Methods

- [`load()`](https://reference.langchain.com/python/langchain-community/document_loaders/srt/SRTLoader/load)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_loaders/srt.py#L9)