Readme
Works on like 75% of the websites online. Perfect to get all the URLs and then scrape data.
Crawl a website and get all the URLs
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>Find your API token in your account settings.
Run myaiteam2/website-crawler using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "myaiteam2/website-crawler:a00e9d2d0eee241d772fe2c885f225d87571cddb00c43a889c98cec683d31f30",
"input": {
"max_pages": 50
}
}' \
https://api.replicate.com/v1/predictionsTo learn more, take a look at Replicate’s HTTP API reference docs.
No output yet! Press "Submit" to start a prediction.
This model costs approximately $0.0048 to run on Replicate, or 208 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on CPU hardware. Predictions typically complete within 48 seconds. The predict time for this model varies significantly based on the inputs.
Works on like 75% of the websites online. Perfect to get all the URLs and then scrape data.