Giter Site home page Giter Site logo

douban_crawl's Introduction

douban_crawl

a python scrapy project for crawling douban user data.一个抓取豆瓣用户数据的python scrapy项目

functions

  • crawl user relationship tree
  • crawl user basic data(according relationship tree,the same below)
  • crawl user interests(want to read, reading, read)
  • crawl item(books, movies, musics) data
  • crawl user commits and reviews

features

  • using a map database to show data integrity

usage

to be continue...

douban_crawl's People

Contributors

michaelevil avatar

Stargazers

 avatar geng chen avatar

Watchers

geng chen avatar

Forkers

cg110778

douban_crawl's Issues

不能正确的运行

执行doubandetail出现Traceback (most recent call last):
File "E:\Ana\lib\site-packages\scrapy\utils\defer.py", line 102, in iter_errback
yield next(it)
File "E:\Ana\lib\site-packages\scrapy\spidermiddlewares\offsite.py", line 30, in process_spider_output
for x in result:
File "C:\Users\cg\douban_crawl\douban\middlewares.py", line 37, in process_spider_output
for i in result:
File "E:\Ana\lib\site-packages\scrapy\spidermiddlewares\referer.py", line 339, in
return (_set_referer(r) for r in result or ())
File "E:\Ana\lib\site-packages\scrapy\spidermiddlewares\urllength.py", line 37, in
return (r for r in result or () if _filter(r))
File "E:\Ana\lib\site-packages\scrapy\spidermiddlewares\depth.py", line 58, in
return (r for r in result or () if _filter(r))
File "C:\Users\cg\douban_crawl\douban\spiders\doubandetail.py", line 83, in queue_requests
mc.execute("select user_id from user_map where user_book_do = 0")
这种异常。
执行doubanuser出现2018-08-16 18:13:29 [scrapy.downloadermiddlewares.redirect] DEBUG: Redirecting (302) to <GET https://accounts.douban.com/login?alias=&redir=https%3A%2F%2Fwww.douban.com&source=None&error=1001> from <POST https://www.douban.com/login>
2018-08-16 18:13:30 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://accounts.douban.com/login?alias=&redir=https%3A%2F%2Fwww.douban.com&source=None&error=1001> (referer: https://www.douban.com)
2018-08-16 18:13:30 [doubanuser] DEBUG: login:failed!
2018-08-16 18:13:30 [scrapy.dupefilters] DEBUG: Filtered duplicate request: <GET https://www.douban.com/login> - no more duplicates will be shown (see DUPEFILTER_DEBUG to show all duplicates)登录失败异常

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.