Code Monkey home page Code Monkey logo

news_crawler's Introduction

Overview

这个是一个基于scrapy框架的爬虫程序,scrapy天然分装好的多线程。 而且有非常多的分装好的中间件可以方便使用,比如seesion池,代理, 并且方便使用redis扩展分布式 程序主要用来爬取新闻

topic

  1. 限制ip用requests代理,买代理,或者网上免费代理
  2. 伪装成浏览器requests切换user agent
  3. 先登录,保存cookiesrequests用session先post拿到cookies,再爬
  4. URL参数太多,一般使用分治法处理网站,先收集种子再逐步爬取

how to run

  1. scrapy crawl neteast
  2. scrapy crawl douban
  3. scrapy crawl bitcoin

news_crawler's People

Contributors

majiang-java avatar

Stargazers

 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.