2023-06-03 22:29:03 +00:00
|
|
|
# YouTube
|
|
|
|
|
|
|
|
>[YouTube](https://www.youtube.com/) is an online video sharing and social media platform created by Google.
|
|
|
|
> We download the `YouTube` transcripts and video information.
|
|
|
|
|
|
|
|
## Installation and Setup
|
|
|
|
|
|
|
|
```bash
|
|
|
|
pip install youtube-transcript-api
|
|
|
|
pip install pytube
|
|
|
|
```
|
2023-06-16 18:52:56 +00:00
|
|
|
See a [usage example](/docs/modules/data_connection/document_loaders/integrations/youtube_transcript.html).
|
2023-06-03 22:29:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Document Loader
|
|
|
|
|
2023-06-16 18:52:56 +00:00
|
|
|
See a [usage example](/docs/modules/data_connection/document_loaders/integrations/youtube_transcript.html).
|
2023-06-03 22:29:03 +00:00
|
|
|
|
|
|
|
```python
|
|
|
|
from langchain.document_loaders import YoutubeLoader
|
|
|
|
from langchain.document_loaders import GoogleApiYoutubeLoader
|
|
|
|
```
|