{"id":13841451,"url":"https://github.com/amikey/zhihuWebSpider","last_synced_at":"2025-07-11T12:32:10.212Z","repository":{"id":152023388,"uuid":"60993375","full_name":"amikey/zhihuWebSpider","owner":"amikey","description":"https://github.com/QiuMing/zhihuWebSpider.git","archived":false,"fork":false,"pushed_at":"2016-06-12T23:00:51.000Z","size":158,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-05T17:27:50.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/amikey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-06-12T23:00:26.000Z","updated_at":"2017-10-17T13:58:05.000Z","dependencies_parsed_at":"2023-09-13T15:17:52.607Z","dependency_job_id":null,"html_url":"https://github.com/amikey/zhihuWebSpider","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/amikey%2FzhihuWebSpider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amikey%2FzhihuWebSpider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amikey%2FzhihuWebSpider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amikey%2FzhihuWebSpider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amikey","download_url":"https://codeload.github.com/amikey/zhihuWebSpider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225720403,"owners_count":17513597,"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-08-04T17:01:11.323Z","updated_at":"2024-11-21T11:30:56.839Z","avatar_url":"https://github.com/amikey.png","language":"Java","funding_links":[],"categories":["Java","Java (504)"],"sub_categories":[],"readme":"# java webspider\n## 查看效果 http://lxming.pub/zhihu\n## 技术选型\n|名称|版本|\n|----|----|\n|webmagic|0.5.2|\n|spring boot|1.2.7.RELEASE|\n|spring mvc|4.2.0.RC2|\n|mybats|3.2.8|\n|通用maper|3.3.0|\n|百度echart|2.0|\n|layer|2.1|\n|bootstrap|3.0.3|\n## 启动方法\n* 爬虫都放在spider 包下,启动main方法就好\n    * 需要使用Redis做队列,充当做调度器的功能 ，也可以修改Scheduler为FileCacheQueueScheduler,如\n    ```\n    (new FileCacheQueueScheduler(\"/usr/zhihu/cache\"))\n    ```\n    * 使用mysql ,配置文件在db.properties\n    * 爬取用户详细信息需要带上cookie,获取cookie 可以通过浏览器，也可以用我的[SimulateLogin](https://github.com/QiuMing/SimulateLogin)，获取之后修改spider site对象 中cookie的值\n* 启动web 则直接运行app 即可\n* 如果是在linux 下，则在配置好数据库的情况下，运行spider.sh 和app.sh 俩脚本就行\n\n## 截图\n![](https://github.com/QiuMing/zhihuWebSpider/blob/master/screenshot/1.png)\n![](https://github.com/QiuMing/zhihuWebSpider/blob/master/screenshot/2.png)\n![](https://github.com/QiuMing/zhihuWebSpider/blob/master/screenshot/3.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famikey%2FzhihuWebSpider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famikey%2FzhihuWebSpider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famikey%2FzhihuWebSpider/lists"}