Giter Site home page Giter Site logo

python_distributed_spider_by_multiprocessing_pybloom-1's Introduction

python_distributed_spider_by_multiprocessing_pybloom

一个分布式爬虫

用 multiprocessing 实现分布式

用 pybloom 实现 Bloom Filter 用于对url去重

环境

window10
python 3.6.4

安装 pybloom

下载 pybloom  https://github.com/jaybaird/python-bloomfilter
下载 bitarray  https://www.lfd.uci.edu/~gohlke/pythonlibs/#bitarray

安装:
1.将pybloom拷贝到工程目录下
2.pip install [存放路径\bitarray-0.8.3-cp36-cp36m-win_amd64.whl]

运行

运行 run_spider.py
1. 运行 url_manager.py
2. 运行 url_set.py [起始页码] [结束页码]
3. 运行 url_get.py

python_distributed_spider_by_multiprocessing_pybloom-1's People

Contributors

mrcat9 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.