v2gba
V2EX  ›  问与答

Scrapy Tutorial 照着做,为啥最后输出的结果和没加.extract()一样?

  •  
  •   v2gba · Dec 6, 2013 · 2812 views
    This topic created in 4588 days ago, the information mentioned may be changed or developed.


    按照我的理解,他应该没有前面那一堆 selector...

    抓取代码按照那个 tutorial 写的

    item['link'] = site.xpath('a/@href').extract()

    是我理解错了,原本他抓回来的就这样,还是我哪里出了问题?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5406 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 07:26 · PVG 15:26 · LAX 00:26 · JFK 03:26
    ♥ Do have faith in what you're doing.