GithubHelp home page GithubHelp logo

qkbd / minerva Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linzhi/minerva

0.0 2.0 0.0 1.85 MB

分布式爬虫,目前可以抓取点评&知乎的部分数据

License: MIT License

Python 99.70% Thrift 0.30%

minerva's Introduction

Minerva

智慧女神号

Minerva(智慧女神号)旨在提供简单可依赖的分布式数据定向抓取工具,目前已经实现有:

  • 获取点评的POI信息
  • 获取知乎的问题&答案

特点

  • 使用redis存储linkbase信息:抓取url的FIFO队列由redis的list维护,已抓取url集合由redis的set维护
  • 页面解析存储在mongo,字段易存储、易扩展
  • spider可在多台机器单进程运行,充分利用机器资源
  • master和slave间方法调用采用Thrift RPC服务框架,效率高

Usage:

启动master: python master.py, 启动spider: python spider.py

相关的依赖库:

  • pymongo (3.4.0)
  • redis (2.10.5)
  • thriftpy (0.3.9)
  • BeautifulSoup (3.2.1)
  • requests (2.13.0)

minerva's People

Contributors

linzhi avatar

Watchers

James Cloos avatar  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.