V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
582033
V2EX  ›  问与答

为什么 scrapy 只抓了 1 页内容

  •  
  •   582033 · Aug 9, 2016 · 1298 views
    This topic created in 3550 days ago, the information mentioned may be changed or developed.

    https://gist.github.com/582033/2cf98304e9cd11c38243cf4cf9e066c8

    执行 scrapy crawl itjuzi -o foo.csv 以后,只抓取了当页的内容,并没有进入下一页抓取,哪儿错了?

    wangxiaoer
        1
    wangxiaoer  
       Aug 9, 2016
    把 next_page 打印一下看看结果。
    582033
        2
    582033  
    OP
       Aug 9, 2016 via Android
    @wangxiaoer 打印出来了,就是下一页的连接 没错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:18 · PVG 00:18 · LAX 09:18 · JFK 12:18
    ♥ Do have faith in what you're doing.