v2gba
V2EX  ›  问与答

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

  •  
  •   v2gba · Dec 6, 2013 · 2767 views
    This topic created in 4559 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   ·   2469 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
    ♥ Do have faith in what you're doing.