Code Monkey home page Code Monkey logo

scrapy_douban_top250movie's Introduction

scrapy_douban_top250movie

简单的利用scrapy爬取豆瓣的Top250电影的名称/排名/评分/评论人数存入数据库.代码还有很多不足之处,欢迎提issue.

说一下踩到坑:

  1. 首先就是在往数据库插数据的时候,评分没有注意小数点.结果发现全是近似值,还有满分10分的...很尴尬.后来把score字段改成float(2,1) 就好了;
  2. 一定要设置DOWNLOAD_DELAY USER_AGENT;
  3. 频率不要太高...不要一直运行爬虫;

other 尽情玩耍吧^_^


我的环境:

windows10 64位
python2.7.14 64位
pycharm

ps:新手善用搜索,根据错误去搜索,大部分都可以解决的!

scrapy_douban_top250movie's People

Contributors

mr-xn avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

5l1v3r1

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.