Giter Club home page Giter Club logo

articlespider-1's Introduction

ArticleSpider

通过scrapy,爬取知乎,伯乐在线,拉钩网

注:

这是一个进阶项目,需要有一定的爬虫知识,如果不是很懂基本的爬虫原理,请自行学习一下爬虫基础知识。 我有一个对应的仓库MyPythonForSpider,是一个单线程爬取百度音乐数据的实例,比较适合刚入门的朋友。

这是一个基于web抓取框架scrapy,实现的对于知乎,伯乐在线,拉勾网的爬取。

涉及到的知识点

|-- 基础
|   |-- 正则表达式 [jobbole.py](ArticleSpider/spiders/jobbole.py)
|   |-- xpath (ArticleSpider/spiders/jobbole.py)
|   |-- css选择器 (ArticleSpider/spiders/*.py)
|   `-- ItemLoader
|-- 进阶
|   |-- 图片验证码的处理(ArticleSpider/spiders/lagou.login_after_captcha)
|   |-- ip访问频率限制(ArticleSpider.middlewares.RandomProxyMiddleware)
|   `-- user-agent随机切换(ArticleSpider.middlewares.RandomUserAgentMiddleware)
|-- 高级
|   |-- scrapy的原理
|       `-- 基于scrapy的中间件开发
|   |-- 动态网站的抓取处理
|   |-- 将selenium集成到scrapy中 
|   `-- scrapy log配置
`-- |后续(在此项目中没有体现,后续我将上传此部分代码)
    |-- scrapy-redis
        |-- 分布式爬虫原理
        |-- 分析scrapy-redis源码
        `-- 集成bloomfilter到scrapy-redis中
    `-- Elasticsearch (ArticleSpider.pipelines.ElasticsearchPipeline;)(ArticleSpider.items.JobBoleArticleItem.save_to_es;)
        |-- 安装 elasticsearch-rtf
        |-- 学习使用 elasticsearch-head、kibana
        |-- 学习使用 elasticsearch的Python API: elasticsearch-dsl
        `-- 利用elasticsearch和爬取到的数据+django框架搭建搜索网站(此部分代码将在以后上传)

PS:使用此代码前,需创建mysql数据库,详见ArticleSpider/settings.py

articlespider-1's People

Contributors

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