laptop-codeLocal Setup

Set up Scrap Web development environment locally

Prerequisites

Scrap Web requires Python 3.11 or higher. We recommend using uvarrow-up-right for Python environment management.

arrow-up-rightClone the Repository

First, clone the Scrap Web repository:

Copy

git clone https://github.com/scrap-web/scrap-web
cd scrap-web

arrow-up-rightEnvironment Setup

  1. Create a virtual environment:

Copy

uv venv --python 3.11
  1. Install dependencies:

Copy

# Install all dependencies including dev packages
uv pip install . ."[dev]"

arrow-up-rightConfiguration

Set up your environment variables:

Copy

Or manually create a .env file with your API keys:

.env

Copy

circle-info

You can use any LLM model supported by LangChain. See LangChain Modelsarrow-up-right for available options and their specific API key requirements.

After setup, you can:

  • Run tests with pytest

  • Build the package with hatch build

  • Try the examples in the examples/ directory

arrow-up-rightGetting Help

If you run into any issues:

circle-info

We welcome contributions! See our Contribution Guidearrow-up-right for guidelines on how to help improve Scrap Web.

Last updated