{"id":41080322,"url":"https://github.com/casoon/site-scraper","last_synced_at":"2026-01-22T13:37:57.512Z","repository":{"id":324857565,"uuid":"1084094376","full_name":"casoon/site-scraper","owner":"casoon","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-02T08:54:12.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-05T02:31:09.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/casoon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-27T08:02:53.000Z","updated_at":"2025-12-02T08:54:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/casoon/site-scraper","commit_stats":null,"previous_names":["casoon/site-scraper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/casoon/site-scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casoon%2Fsite-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casoon%2Fsite-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casoon%2Fsite-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casoon%2Fsite-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casoon","download_url":"https://codeload.github.com/casoon/site-scraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casoon%2Fsite-scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T13:37:57.238Z","updated_at":"2026-01-22T13:37:57.493Z","avatar_url":"https://github.com/casoon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Site Scraper\n\n[![CI](https://github.com/casoon/site-scraper/actions/workflows/ci.yml/badge.svg)](https://github.com/casoon/site-scraper/actions/workflows/ci.yml)\n\nA small Node.js CLI tool that creates static copies of websites. It crawls from a starting URL, saves HTML files along with stylesheets and scripts locally, and replaces images with placeholders based on configuration.\n\n## Prerequisites\n\n- Node.js \u003e= 24 (for native `fetch` support)\n- pnpm as package manager (npm or yarn work as well, but the commands below are for pnpm)\n\n## Installation\n\n```sh\npnpm install\n```\n\n## Usage\n\n```sh\npnpm run dev \u003cURL\u003e [--maxDepth 2] [--concurrency 8] [--placeholder external|local] [--sitemap] [--allowExternalAssets]\n```\n\nExample:\n\n```sh\npnpm run dev https://www.example.com --maxDepth 2 --placeholder local\n```\n\n### Output\n\n- All results are automatically saved to `./output/\u003cdomain\u003e`.\n- If the folder already exists, it will be deleted and recreated before the run.\n- HTML files are stored in a folder structure matching the URL paths.\n- Assets (CSS/JS/Fonts) are downloaded and internal references are rewritten.\n- Images can be replaced with external placeholders (`external`) or locally generated PNGs (`local`, optionally requires `sharp`).\n\n### Options\n\n- `--maxDepth`: Maximum crawl depth relative to the start page (default: `2`).\n- `--concurrency`: Number of parallel downloads (default: `8`).\n- `--sitemap`: When set (default: `true`), entries from `/sitemap.xml` or `/sitemap_index.xml` are also used as starting points.\n- `--allowExternalAssets`: When `false`, external CSS/JS/assets are not downloaded (default: `true`).\n\n## Build\n\nTo create a compiled output in `dist/`:\n\n```sh\npnpm run build\n```\n\n## Linting \u0026 Formatting\n\nThis project uses [Biome](https://biomejs.dev/) for linting and formatting:\n\n```sh\npnpm run check      # Check lint + format\npnpm run check:fix  # Auto-fix issues\npnpm run lint       # Lint only\npnpm run format     # Format only\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasoon%2Fsite-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasoon%2Fsite-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasoon%2Fsite-scraper/lists"}