{"id":21638448,"url":"https://github.com/tingge/web-spiders","last_synced_at":"2026-04-10T02:01:55.970Z","repository":{"id":78474591,"uuid":"62854183","full_name":"TingGe/web-spiders","owner":"TingGe","description":"网络蜘蛛🕷️","archived":false,"fork":false,"pushed_at":"2016-07-08T05:23:15.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T02:43:57.704Z","etag":null,"topics":[],"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/TingGe.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-07-08T02:57:06.000Z","updated_at":"2016-07-08T05:23:15.000Z","dependencies_parsed_at":"2023-03-13T20:13:28.211Z","dependency_job_id":null,"html_url":"https://github.com/TingGe/web-spiders","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TingGe%2Fweb-spiders","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TingGe%2Fweb-spiders/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TingGe%2Fweb-spiders/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TingGe%2Fweb-spiders/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TingGe","download_url":"https://codeload.github.com/TingGe/web-spiders/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244333022,"owners_count":20436123,"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-11-25T04:09:41.687Z","updated_at":"2025-12-31T00:12:49.938Z","avatar_url":"https://github.com/TingGe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-spiders\n网络蜘蛛🕷️\n\n[TOC]\n\n## 基于 NodeJS 的几种方案\n\n大致思路是“抓取、解析、入库”，可选 “黑白名单、并发、定时任务”。\n\n1. superagent/cheerio/express\n2. superagent/cheerio/koa2/koa-router/eventproxy\n3. request/cheerio/async/[node-schedule](https://github.com/node-schedule/node-schedule)\n4. phantomjs/cheerio\n\n\n### 案例\n\n- express-spider\n- koa2-spider\n\n### 运行\n\n1. 前提是需安装 nodejs\n\n2. 在 express-spider 或 koa2-spider 目录执行\n\n   ```shell\n   npm start\n   ```\n\n3. 然后浏览器访问 `http://127.0.0.1:3000` 或 `curl -get http://127.0.0.1` 即可\n\n\n##  参考\n\n- [[NodeJS爬虫](https://segmentfault.com/a/1190000004077827)](https://segmentfault.com/a/1190000004077827)\n- [[用nodejs写爬虫同步百度FEX Weekly中的文章](https://segmentfault.com/a/1190000002423761)](https://segmentfault.com/a/1190000002423761)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftingge%2Fweb-spiders","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftingge%2Fweb-spiders","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftingge%2Fweb-spiders/lists"}