# Define the data structure we want to extract
class CompanyData(BaseModel):
    name: str = Field(description="Company name")
    funding_total: str = Field(description="Total funding amount")
    employee_count: str = Field(description="Number of employees")
    industry: str = Field(description="Primary industry or sector")
    founded_year: str = Field(
        description="Year the company was founded"
    )  # Initialize Firecrawl

```

Next, we define a Pydantic data model specifying the fields we want to extract from a website. Firecrawl will follow this schema to the letter - detecting the relevant HTML/CSS selectors containing this information and returning them in a simple JSON object. Here, the `Field` descriptions written in plain English are important as they guide the underlying Firecrawl AI to capture the required fields.

```python
app = FirecrawlApp()