Learn how to use Python, Crawl4AI and Playwright to create a headless browser web crawler with Trigger.dev.
PROXY_URL: The URL of your proxy server (e.g., http://proxy.example.com:8080)PROXY_USERNAME: Username for authenticated proxies (optional)PROXY_PASSWORD: Password for authenticated proxies (optional)trigger.config.ts file:
python.runScript method to run the crawl-url.py script with the given URL as an argument. You can see the original task in our examples repository here.
requirements.txt file. This is required in Python projects to install the dependencies.
python -m venv venvsource venv/bin/activate, on Windows: venv\Scripts\activatepip install -r requirements.txttrigger.config.ts file.dev command (it may ask you to authorize the CLI if you haven’t already).deploy command.