{"id":21401390,"url":"https://github.com/kuizuo/screenshot","last_synced_at":"2026-04-30T07:41:54.496Z","repository":{"id":113437098,"uuid":"603622783","full_name":"kuizuo/screenshot","owner":"kuizuo","description":"使用 Deno 截取任意 URL 网页的首页截图","archived":false,"fork":false,"pushed_at":"2023-02-19T04:20:02.000Z","size":372,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T01:40:32.137Z","etag":null,"topics":["deno","screenshot"],"latest_commit_sha":null,"homepage":"https://deno.kuizuo.cn/screenshot/main.ts","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kuizuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-02-19T04:19:57.000Z","updated_at":"2025-03-29T21:25:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"be41cd90-73a5-4c54-82bf-4fb197fe931e","html_url":"https://github.com/kuizuo/screenshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kuizuo/screenshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fscreenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fscreenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fscreenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fscreenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuizuo","download_url":"https://codeload.github.com/kuizuo/screenshot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuizuo%2Fscreenshot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32458237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["deno","screenshot"],"created_at":"2024-11-22T15:27:35.624Z","updated_at":"2026-04-30T07:41:54.479Z","avatar_url":"https://github.com/kuizuo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno_screenshot\n\n使用 Deno 截取任意 URL 网页的首页截图\n\n## 前言\n\n每当完成一个项目后，想要截取项目的首页图时，通常需要打开浏览器，输入项目地址，按下 \u003ckbd\u003ePrintScreen\u003c/kbd\u003e 按钮进行截屏。往往还需要后期编辑工具调整适合的图像尺寸并压缩图像大小。\n\n这个过程可能非常繁琐，费时费力。因此，本仓库诞生了。\n\n灵感来源： [screenshot](https://github.com/denoland/fresh/blob/main/www/utils/screenshot.ts)\n\n## 用法\n\n确保您已经安装了 [Deno](https://deno.land/) 运行时环境。\n\n```shell\ndeno run -A https://deno.kuizuo.cn/screenshot/main.ts \u003curl\u003e \u003cname\u003e\n```\n\n示例\n\n```shell\ndeno run -A https://deno.kuizuo.cn/screenshot/main.ts https://kuizuo.cn blog\n```\n\n此时会在当前目录下生成一个 `screenshots/blog.png` 文件，里面存放是是 https://kuizuo.cn 的截图。\n\n### 清除 deno 缓存\n\n```shell\ndeno cache --reload https://deno.kuizuo.cn/screenshot/main.ts\n```\n\n## 演示\n\n![preview](./img/preview.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuizuo%2Fscreenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuizuo%2Fscreenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuizuo%2Fscreenshot/lists"}