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