Giter VIP home page Giter VIP logo

distribute-webmagic's Introduction

基于webmagic的分布式机器人爬虫,主要针对电商爬虫。

1.增加组件webmagic-queue,基于netty通讯组件,内置ehcache缓存。 QueueServer类作为任务队列服务,QueueClient类作为请求端访问,TaskQueue作为任务集合

2.重写组件webmagic-selenium,基本selenium的机器人爬虫,主要方式是调用浏览器内核来执行js。 和webmagic-queue组件集成分布式机器人爬虫,且有优雅退出方式为‘exit’,定时任务收集数据入库,原生PageProcessor的升级版SeleniumProcessor,更加简单使用。针对电商规格的普通标签,单选框,多选框,下拉框,等情况的爬取已做处理,严格意义只用会js获取标签名,便可以爬虫入库。

selenium启动需要相应的浏览器插件

distribute-webmagic 一个只要用js就可以爬取电商信息的分布式框架

webmagic-queue 详解 https://blog.csdn.net/qq_31005107/article/details/83417310

webmagic-selenium 详解 https://blog.csdn.net/qq_31005107/article/details/83419094

线性执行的没有什么问题,应该会有些bug,欢迎小伙伴给我反馈,包括建议哟~ 邮箱[email protected]

distribute-webmagic's People

Contributors

xiaoming123456 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.