V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
582033
V2EX  ›  问与答

为什么 scrapy 只抓了 1 页内容

  •  
  •   582033 · 2016-08-09 17:34:40 +08:00 · 937 次点击
    这是一个创建于 2830 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    wangxiaoer
        1
    wangxiaoer  
       2016-08-09 18:29:07 +08:00
    把 next_page 打印一下看看结果。
    582033
        2
    582033  
    OP
       2016-08-09 20:25:52 +08:00 via Android
    @wangxiaoer 打印出来了,就是下一页的连接 没错
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5845 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 03:31 · PVG 11:31 · LAX 20:31 · JFK 23:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.