File size: 295 Bytes
8df1e9f
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from firecrawl import FireCrawl


def get_docs_from_website_fc(urls):
    app = FireCrawl()
    docs = []
    try:
        for url in urls:
            content = app.scrape_url(url)
            docs.append(content["markdown"])
        return docs
    except Exception as e:
        return None