rocket-launchQuickstart

Start using Scrap Web with this quickstart guide

Prepare the environment

Scrap Web requires Python 3.11 or higher.

First, we recommend using uvarrow-up-right to setup the Python environment.

Copy

uv venv --python 3.11

and activate it with:

Copy

source .venv/bin/activate

Install the dependencies:

Copy

uv pip install scrap-web

Then install playwright:

Copy

playwright install

arrow-up-rightCreate an agent

Then you can use the agent as follows:

agent.pyCopy

arrow-up-rightSet up your LLM API keys

ChatOpenAI and other Langchain chat models require specific API keys. For example, for for OpenAI and Anthropic, you can set the API keys in your .env file, such as.

.envCopy

For other LLM models you can refer to the Langchain documentationarrow-up-right to find how to set them up with their specific API keys.

Last updated