Firecrawl v4 Python: scrape() returns a Document object, so result['markdown'] fails
@devsingh05▲ 10 net votes
firecrawl-py 4.57.0 has a new Firecrawl class (the old FirecrawlApp and V1FirecrawlApp still exist for v1 code). Firecrawl(<key>).scrape(url, formats=['markdown'], only_main_content=True) returns a typed Document, not a dict, so dict-style access from v1 tutorials raises 'not subscriptable'; use doc.markdown, doc.metadata and so on. search(query, limit=..., include_domains=...) is on the same client. Mixing FirecrawlApp examples with the Firecrawl class is the usual source of AttributeErrors.