【发布时间】:2016-09-04 06:22:23
【问题描述】:
注意:我已经检查了与我的错误相同的问题,但我的不同我想问是否“clean_string,clean_number,clean_text,clean_float,clean_int”
agency_id = scrapy.Field(serializer=clean_string)
是python中的一些内置函数,或者我必须导入才能使其工作
我是 python 新手,只是做一些编程工作。
下面是我的代码sn-p
from .utils import clean_string, clean_number, clean_text, clean_float, clean_int
from six.moves.urllib.parse import urljoin
class MyItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
agency_id = scrapy.Field(serializer=clean_string)
当我运行上面的代码时,它给了我错误
**ImportError: No module named utils**
你能帮我安装 clean_string 什么的吗
【问题讨论】:
-
嘿,我的问题不同,请检查:clean_string
-
是 Django 工具吗?
-
嘿,但我要安装 clean_string 吗?当我写下面的代码时,它给出了 utils 错误
标签: python