[Docs] add docs for youtube channel (#1072)

Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
Deven Patel
2023-12-28 21:08:48 +05:30
committed by GitHub
parent 7a026ea282
commit 12e6eaf802
6 changed files with 26 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ Embedchain comes with built-in support for various data sources. We handle the c
<Card title="📰 PDF file" href="/components/data-sources/pdf-file"></Card>
<Card title="📊 CSV file" href="/components/data-sources/csv"></Card>
<Card title="📃 JSON file" href="/components/data-sources/json"></Card>
<Card title="📽️ Youtube Channel" href="/components/data-sources/youtube-channel"></Card>
<Card title="📺 Youtube" href="/components/data-sources/youtube-video"></Card>
<Card title="📝 Text" href="/components/data-sources/text"></Card>
<Card title="📚 Documentation website" href="/components/data-sources/docs-site"></Card>

View File

@@ -0,0 +1,20 @@
---
title: '📽️ Youtube Channel'
---
To add all the videos from a youtube channel to your app, use the data_type as `youtube_channel`.
<Note>
Make sure you have all the required packages installed before using this data type. You can install them by running the following command in your terminal.
```bash
pip install -u "embedchain[youtube]"
```
</Note>
```python
from embedchain import Pipeline as App
app = App()
app.add("@channel_name", data_type="youtube_channel")
```

View File

@@ -2,8 +2,7 @@
title: '📺 Youtube'
---
To add any youtube video to your app, use the data_type (first argument to `.add()` method) as `youtube_video`. Eg:
To add any youtube video to your app, use the data_type as `youtube_video`. Eg:
```python
from embedchain import Pipeline as App