问题:
exceptions.TypeError: 'Rule' object is not iterable
原因:
1
2
3rules =(
Rule(SgmlLinkExtractor(allow = ()) ,callback = 'parse_item')
)
不是可以迭代的对象
修改为:
1
rules =(Rule(SgmlLinkExtractor(allow = ()) ,callback = 'parse_item'),)