Scrape, Analyze, and Visualize Airbnb Data with Firecrawl and E2B
Here is how to run this example yourself
Note: this example is using v0 version of the Firecrawl API. You can install the 0.0.20 version for the Python SDK or the 0.0.36 for the Node SDK.
This example demonstrates how to scrape Airbnb data and analyze it using Firecrawl and the Code Interpreter SDK from E2B.
We won’t write any of the analysis code and instead we will have Anthropic’s AI write it for us. We will use E2B’s Code Interpreter SDK to safely run the code and get the results.
Prerequisites
- Node.js installed on your machine
- An E2B API key
- A Firecrawl API key
- A Anthropic API key
Setup & run
1. Clone the repository
Here is the GitHub repository for this example.
git clone https://github.com/e2b-dev/e2b-cookbook.git
cd e2b-cookbook/examples/scrape-and-analyze-airbnb-data-with-firecrawl
2. Install dependencies
npm install
3. Set up .env
- Copy
.env.template
to.env
- Get E2B API key
- Get Firecrawl API key
- Get Anthropic API key
4. Run the example
npm run start