1 Star 0 Fork 1

doocs / spider

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Spider

本仓库计划用于记录爬虫相关实践。

爬虫难点及解决方案

网站采取反爬策略

  • 模拟浏览器行为。

网站模板定期改动

  • 不同配置文件配置不同网站的模板规则。
  • 数据库存储不同网站的模板规则。

网站 URL 抓取失败

  • HttpClient 默认处理方式。
  • Storm 实时解析失败日志,将失败 URL 重新加入爬取仓库,一般超过 3 次就放弃。

网站频繁抓取导致 IP 被封

  • 购买代理 IP 库,随机获取 IP 抓取数据。
  • 部署多个应用分别抓取,降低单节点访问频率。
  • 设置每个页面抓取时间间隔,降低被封概率。
MIT License Copyright (c) 2018 杨立滨 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于 Spring Boot 的爬虫实践 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/Doocs/spider.git
git@gitee.com:Doocs/spider.git
Doocs
spider
spider
master

搜索帮助