{"id":22374528,"url":"https://github.com/kevcui/putility","last_synced_at":"2026-04-29T08:01:59.759Z","repository":{"id":132198027,"uuid":"258450628","full_name":"KevCui/putility","owner":"KevCui","description":":wrench: Puppeteer script-kit","archived":false,"fork":false,"pushed_at":"2021-02-16T20:03:48.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T17:40:11.127Z","etag":null,"topics":["puppeteer","scripting","scriptkit"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/KevCui.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}},"created_at":"2020-04-24T08:19:57.000Z","updated_at":"2025-01-05T22:45:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"39cd6fef-9f00-4d81-a3d4-82d7d7ce7c89","html_url":"https://github.com/KevCui/putility","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KevCui/putility","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fputility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fputility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fputility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fputility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KevCui","download_url":"https://codeload.github.com/KevCui/putility/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KevCui%2Fputility/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["puppeteer","scripting","scriptkit"],"created_at":"2024-12-04T21:17:23.786Z","updated_at":"2026-04-29T08:01:59.754Z","avatar_url":"https://github.com/KevCui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"putility\n=========\n\nputility.js is a [puppeteer](https://github.com/puppeteer/puppeteer/) script toolkit. It contains some small and useful functions for daily usage.\n\n## Dependency\n\n- [puppeteer-core](https://github.com/puppeteer/puppeteer/): core library of puppeteer, headless Chrome\n- [commander](https://github.com/tj/commander.js): argument options parser\n\n## Installation\n\n```bash\nnpm i puppeteer-core commander\n```\n\n## How to use\n\n```\nUsage: ./putility.js \u003curl\u003e [-u \u003cuser_agent\u003e] [-w \u003cmillisecond\u003e] [-p \u003cpath\u003e] [-c \u003ccmd1,cmd2...\u003e] [-s]\n\nOptions:\n  -u, --agent \u003cuser_agent\u003e  optional, browser user agent\n  -w, --wait \u003cmillisecond\u003e  optional, wait for n milliseconds\n  -p, --path \u003cbinary_path\u003e  optional, path to chrome/chromium binary\n                            default \"/usr/bin/chromium\"\n  -c, --cmd \u003ccmd1,cmd2...\u003e  optional, one or multiple commands:\n                            [\"html\", \"screenshot\", \"cookie\", \"header\"]\n                            default \"html\"\n  -s, --show                optional, show browser\n                            default not show\n  -h, --help                display help for command\n```\n\n## Function\n\n- Take screenshot: `-c screenshot`, take screenshot of whole page\n\n- Fetch HTML: `-c html`, dump \u003chtml\u003e tag as output text\n\n- Fetch cookie: `-c cookie`, dump site cookie as output json\n\n- Fetch response header: `-c header`, dump response header as output json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevcui%2Fputility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevcui%2Fputility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevcui%2Fputility/lists"}