{"id":16293772,"url":"https://github.com/zhaoqize/node-cnblogs-spider","last_synced_at":"2025-10-11T12:09:12.527Z","repository":{"id":79007754,"uuid":"74868493","full_name":"zhaoqize/node-cnblogs-spider","owner":"zhaoqize","description":"Node实现的虫子--爬取博客园文章","archived":false,"fork":false,"pushed_at":"2018-02-19T08:52:56.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T11:14:00.566Z","etag":null,"topics":["nodejs","spider-cnblogs"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/zhaoqize.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":"2016-11-27T05:08:25.000Z","updated_at":"2020-02-11T15:00:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"9772d1ea-c61a-4821-a25e-012ac1243c11","html_url":"https://github.com/zhaoqize/node-cnblogs-spider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhaoqize/node-cnblogs-spider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Fnode-cnblogs-spider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Fnode-cnblogs-spider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Fnode-cnblogs-spider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Fnode-cnblogs-spider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaoqize","download_url":"https://codeload.github.com/zhaoqize/node-cnblogs-spider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoqize%2Fnode-cnblogs-spider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007135,"owners_count":26084246,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["nodejs","spider-cnblogs"],"created_at":"2024-10-10T20:12:18.897Z","updated_at":"2025-10-11T12:09:12.513Z","avatar_url":"https://github.com/zhaoqize.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/zhaoqize/node-cnblogs-spider.svg?branch=master)](https://travis-ci.org/zhaoqize/node-cnblogs-spider)\n[![GitHub license](https://img.shields.io/github/license/zhaoqize/weex-cnode.svg)](https://github.com/zhaoqize/weex-cnode/blob/master/LICENSE)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)]()\n[![Travis](https://img.shields.io/badge/oschina-%E6%94%B6%E5%BD%95-orange.svg)](https://www.oschina.net/search?scope=project\u0026q=node-cnblogs-spider)\n\n[![NPM](https://nodei.co/npm/node-cnblogs-spider.png?downloads=true)](https://nodei.co/npm/node-cnblogs-spider/)\n\n## spider_cnblogs\nspider_cnblogs 是专门爬取博客园的文章并自动将文章转成 `.md` 存储至本地的爬虫。\n\n## 安装\n```js\nnpm install node-cnblogs-spider --save\n```\n\n## 使用\n```js\nvar ncs = require('node-cnblogs-spider')\nncs([\n    http://xxxx, \n    http://xxxx \n])\n```\n\n## 示例\n![image](http://images.cnblogs.com/cnblogs_com/zqzjs/885846/o_2016-11-27_171319.png)\n\n## 依赖\n[to-markdown]() 将`html`转`md`\n\n[cheerio]() 类似于`Sizzle`的`nodejs`的实现\n\n[bluebird]() 是对`es6`种`Promise`方法的封装与`ose`展库\n\n\n## 文档\n- [[译] NodeJS 错误处理最佳实践](https://segmentfault.com/a/1190000002741935)\n- [Nodejs异步异常处理domain](http://blog.fens.me/nodejs-core-domain/)\n- 使用Promise尽量脱离回调地狱，使得代码可读性更高\n- html转md格式的包还是有缺陷的,不然完美展现出`.md`\n- 生成本地文件使用的是stream实现，效率更高。但是要注意文件的命名规范。\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaoqize%2Fnode-cnblogs-spider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaoqize%2Fnode-cnblogs-spider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaoqize%2Fnode-cnblogs-spider/lists"}