取值结果:
{
'articul': [u'testetete'],
'diametr': ['Empty'],
'image': [u'/foto/11.20.jpg'],
'name': [u'Трололололо'],
'url': ['http://test.ru/goods/detali.html?product_id=20']
}其他字段在哪里?
发布于 2013-04-01 13:13:36
这是因为add_xpath方法只将XPath作为参数。如果需要为爬行器从xpath获取值添加另一个值(比如"Масса“或"Состав"),可以将其添加到pipelines.py或从爬行器获取结果的另一个模块中。
https://stackoverflow.com/questions/15628722
复制相似问题