Simple examples demonstrating core Reader functionality.
Before running examples, start Ulixee Cloud in a separate terminal:
npx @ulixee/cloud startFor production server usage with shared Core, see examples/production/express-server.
Scrape a single URL and display the results.
npx tsx basic-scrape.tsScrape multiple URLs concurrently.
npx tsx batch-scrape.tsCrawl a website to discover and scrape pages.
# Crawl example.com
npx tsx crawl-website.ts
# Crawl a specific URL
npx tsx crawl-website.ts https://docs.example.comOutput content in all supported formats (markdown, html).
npx tsx all-formats.tsScrape using a proxy server.
# Set proxy URL
export PROXY_URL="http://user:pass@proxy.example.com:8080"
npx tsx with-proxy.ts-
Install dependencies in the examples folder:
cd examples npm install -
Run any example:
npx tsx <example-name>.ts