{"id":16954435,"url":"https://github.com/m9rco/mangocawler","last_synced_at":"2025-10-06T22:11:02.744Z","repository":{"id":99183409,"uuid":"89987663","full_name":"m9rco/MangoCawler","owner":"m9rco","description":"🐟 基于swoole 的爬虫方案🔥","archived":false,"fork":false,"pushed_at":"2017-05-04T07:22:09.000Z","size":307,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T21:51:42.659Z","etag":null,"topics":["php","php7","python","swoole"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/m9rco.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":"2017-05-02T03:27:30.000Z","updated_at":"2022-02-12T07:32:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9ed3300-8a5e-4e4e-813d-396dca195fdd","html_url":"https://github.com/m9rco/MangoCawler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m9rco/MangoCawler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m9rco%2FMangoCawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m9rco%2FMangoCawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m9rco%2FMangoCawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m9rco%2FMangoCawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m9rco","download_url":"https://codeload.github.com/m9rco/MangoCawler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m9rco%2FMangoCawler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278687175,"owners_count":26028439,"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-06T02:00:05.630Z","response_time":65,"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":["php","php7","python","swoole"],"created_at":"2024-10-13T22:09:42.946Z","updated_at":"2025-10-06T22:11:02.716Z","avatar_url":"https://github.com/m9rco.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":" MangoCawler - 基于Swoole实现的多进程爬虫方案\n===============\n\n\u003e 知行合一，学以致用\n\n## What I Do\n- 基于Swoole 多进程的爬虫方案\n\n![img](http://i4.buimg.com/567571/f37c0f0cf61d0ecc.jpg)\n\n## Requirement\n- [PHP 7 +](http://php.net/manual/zh/migration71.new-features.php)\n- [Swoole](https://www.zhihu.com/question/41832866)\n- [Composer 1.0](http://pkg.phpcomposer.com/)\n\n## SQL\n\n```\nCREATE TABLE `damai_list` (\n  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n  `url` varchar(200) DEFAULT '' COMMENT 'Url',\n  `province` varchar(20) DEFAULT '' COMMENT '省份',\n  `city` varchar(20) DEFAULT '' COMMENT '城市',\n  PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=5915 DEFAULT CHARSET=utf8;\n\n```\n\n## 更改配置文件\n```\n# \\drive\\CrawlerInit.php\n\ndefine('M_CRAWLER_URL', 'https://venue.damai.cn/search.aspx?cityID=0\u0026k=0\u0026keyword=\u0026pageIndex=\\d');\ndefine('M_DB_HOST', '127.0.0.1');\ndefine('M_DB_NAME', '');\ndefine('M_DB_USER', '');\ndefine('M_DB_PWD' , '');\n```\n\n## 使用方式\n\n```\ncomposer install\n\n// 首先开启服务端启用连接池\nphp \\drive\\worker\\Server.php\n\n// 开始爬吧\nphp index.php\n\n```\n\n## 纠错\n\n如果大家发现有什么不对的地方，可以发起一个[issue](https://github.com/PuShaoWei/Mango16/issues)或者[pull request](https://github.com/PuShaoWei/Mango16/pulls),我会及时纠正\n\n\u003e 补充:发起pull request的commit message请参考文章[Commit message 和 Change log 编写指南](http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm9rco%2Fmangocawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm9rco%2Fmangocawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm9rco%2Fmangocawler/lists"}