{"id":15655508,"url":"https://github.com/magicdawn/node-huaban","last_synced_at":"2025-05-05T04:03:46.966Z","repository":{"id":28097306,"uuid":"31595425","full_name":"magicdawn/node-huaban","owner":"magicdawn","description":"花瓣(http://huaban.com) 画板下载器","archived":false,"fork":false,"pushed_at":"2018-04-07T16:22:00.000Z","size":44,"stargazers_count":24,"open_issues_count":1,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-05T04:03:08.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/magicdawn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-03T11:39:49.000Z","updated_at":"2024-04-01T08:17:41.000Z","dependencies_parsed_at":"2022-09-02T19:00:40.809Z","dependency_job_id":null,"html_url":"https://github.com/magicdawn/node-huaban","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-huaban","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-huaban/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-huaban/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicdawn%2Fnode-huaban/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicdawn","download_url":"https://codeload.github.com/magicdawn/node-huaban/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252436291,"owners_count":21747470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-03T12:59:32.985Z","updated_at":"2025-05-05T04:03:46.947Z","avatar_url":"https://github.com/magicdawn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-huaban\n花瓣(http://huaban.com) 画板下载器\n\n[![npm version](https://img.shields.io/npm/v/node-huaban.svg?style=flat-square)](#)\n[![node version](https://img.shields.io/node/v/node-huaban.svg?style=flat-square)](#)\n[![license](https://img.shields.io/npm/l/node-huaban.svg?style=flat-square)](#)\n\n\n## 安装\n\n```\n$ npm i node-huaban -g\n```\n\n## 使用\n\n```\n$ huaban\n  huaban board downloader v0.0.1\n\n    Usage:\n      huaban [options] \u003cboard_url\u003e\n\n    Options:\n      -h,--help         输出此帮助信息\n      -c,--concurrency  同时最大下载数量,默认10\n      -t, --timeout     超时, 单位分, 默认1分钟 = 60 * 1000毫秒\n      --max-times       重试次数, 默认5\n\n    Example:\n      huaban http://huaban.com/boards/17324249/ -c 10\n```\n\n## API\n\n```js\nconst HuabanBoard = require('node-huaban');\n```\n\n### constructor\n\n```js\nconst board = new HuabanBoard(url) // url 是画板地址\n```\n\n### init\n\n```js\nboard.init() // return a Promise, when all pins \u0026 title are ready\n\n// normally, use with async/await\nawait board.init()\n```\n\n运行 `init` 之后, board会包含以下字段:\n- board.title board的名称\n- board.pins 图片, 包含地址src \u0026 文件类型 ext\n\n### downloadBoard\n下载所有图片\n\n```js\nawait board.downloadBoard(concurrency, timeout, maxTimes)\n```\n\n## Changelog\n\n[CHANGELOG.md](CHANGELOG.md)\n\n## License\n\nthe MIT License http://magicdawn.mit-license.org","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fnode-huaban","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicdawn%2Fnode-huaban","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicdawn%2Fnode-huaban/lists"}