Code Monkey home page Code Monkey logo

pspider's Introduction

PSpider

Python3下极为简洁的爬虫框架, 简单介绍点这里, 实例点这里

包含以下三个大模块

  1. utilities module: 定义爬虫需要的工具类/工具函数等
  2. instances module: 定义抓取过程中的fetcher/parser/saver类
  3. concurrent module: 定义多线程/多进程爬取策略, 并保证数据同步

其他文件

  1. setup.py为安装文件, 可将该框架安装到系统环境中
  2. test.py为测试文件, 可进行简单的功能性测试
  3. pylint.conf是代码检查需要的配置文件
  4. demos_yundama封装了yundama接口, 方便调用
  5. demos_nbastats抓取NBA官网上的所有球员数据, 并以此作为案例介绍框架的使用方法

更新日志

  1. 2016-10-20之前, 各种更改结构/功能/类/函数等
  2. 2016-10-25, 使用re模块替代bs模块, 删除mysql数据库相关操作, 简化框架
  3. 2016-10-27, 添加实例nbastats, 抓取NBA官网上所有球员的赛季数据
  4. 2016-10-29, 合并"多线程"和"多进程"池文件, 简化框架
  5. 2016-11-01, 使用requests替代urllib, 简化框架
  6. 2016-11-08, 删除部分无用函数/类等, 简化框架
  7. 2016-11-13, 更新pybloom至pybloom-live, 可直接利用pip安装
  8. 2016-11-17, 添加Dockerfile文件和requirements.txt文件

下一步计划

  1. 利用Redis改为分布式爬虫

问题汇总

欢迎大家在"Issues"中提出问题或者建议,也可以fork后提交"Pull requests"

pspider's People

Contributors

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