sugusor's recent timeline updates
sugusor

sugusor

V2EX member #95721, joined on 2015-02-04 16:51:19 +08:00
sugusor's recent replies
@beibeijia 唔,这个例子我已经试过了,好像还是不行= =,我还是重装好了。。不过能说一下怎么能彻底卸载吗?
@sunchen 我的pipeline代码是这样的
# -*- coding: utf-8 -*-

# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html


class TutorialPipeline(object):
def process_item(self, item, spider):
return item
@zenxds 好像还是不行QAQ,只有csv格式可以,xml,json这些都不可以= =
@mahone3297 我发现libxlst1-dev我的安装中没有包括,但我现在装好后好像还是没什么变化
@mahone3297 我按照官方文档http://scrapy-chs.readthedocs.org/zh_CN/latest/topics/ubuntu.html#topics-ubuntu 这个安装的,有没有问题?
@sunchen 我的pipeline就是官方自己生成的,我并没有改过它。还有那个spider yield item命令具体该怎么用啊,我在项目下输入它说没有spider这个命令。。
@mahone3297 还有我是ubuntu下安装的。。。是不是有什么要注意的地方
@mahone3297 我在想是不是我安装的不对,我是按照那个官方指南安装的,但是安装的时候它好像忽略了好多东西。。
@mahone3297 我试了把它们导出成'xml', 'jl', 'json', 'jsonlines', 'csv',结果只有csv文件中有数据,其他的都没有。而且csv中的文件也好像也有错误,用文本格式打开时能显示desc属性的信息,但我用libreoffice打开时却只有title和link属性有内容。
@mahone3297 额,xpath好像都是对的,因为我把抓的内容直接显示在命令行时内容都在,但把它们导出到json却只有一些[],具体内容都没有导出来。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2974 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms · UTC 13:37 · PVG 21:37 · LAX 06:37 · JFK 09:37
♥ Do have faith in what you're doing.