Sample code
Spark inspiration for your next web crawling project
What can you build with a web crawler?
Read the following examples to get an idea of the types of data you can collect on Crawlspace.
Copy/paste these examples into your crawler’s main.ts
file to try them out for yourself.
Don’t forget to adjust your crawler’s configuration settings.
Find prospective customers
In this example, we find companies on Vercel who use Google Tag Manager.
RAG your docs
You can crawl your own documentation websites to chat with your docs using retrieval-augmented generation (RAG). Scrape content on a scheduled interval and store embeddings of each page’s markdown.
Conduct market research
In this example, we extract pricing data from all SaaS marketing sites that we can find.
Monitor community growth
Track Discord server popularity as a leading indicator of virality.
Start a database of images
Build your own image search engine, using custom logic that you define.
Was this page helpful?