2023-11-15 11:22:15 +05:30
|
|
|
---
|
|
|
|
|
title: "馃摑 Substack"
|
|
|
|
|
---
|
|
|
|
|
|
2023-12-08 03:42:50 +05:30
|
|
|
To add any Substack data sources to your app, just add the main base url as the source and set the data_type to `substack`.
|
2023-11-15 11:22:15 +05:30
|
|
|
|
|
|
|
|
```python
|
2023-12-29 16:52:41 +05:30
|
|
|
from embedchain import App
|
2023-11-15 11:22:15 +05:30
|
|
|
|
|
|
|
|
app = App()
|
|
|
|
|
|
2023-12-08 03:42:50 +05:30
|
|
|
# source: for any substack just add the root URL
|
|
|
|
|
app.add('https://www.lennysnewsletter.com', data_type='substack')
|
2023-11-15 11:22:15 +05:30
|
|
|
app.query("Who is Brian Chesky?")
|
|
|
|
|
# Answer: Brian Chesky is the co-founder and CEO of Airbnb.
|
|
|
|
|
```
|