0
我有一個文件ccbank_spider.py,以下是內容exceptions.TypeError: '模塊' 對象不是可調用
class LoginSpider(BaseSpider):
#some code
#for hitting and parsing of the Account URL
for accountURL in (strip(s) for itemArr in items for s in itemArr['accountURL']):
print accountURL
yield request(accountURL, callback=self.account_transactions)
def account_transactions(self, response):
print 'print text'
return None
我得到下面的錯誤
File "D:\NextGen\workspace\tutorial\tutorial\spiders\ccbank_spider.py", line 45, in after_login
yield request(accountURL, callback=self.account_transactions)
exceptions.TypeError: 'module' object is not callable
解決了。謝謝。 – Jeff 2012-07-19 06:00:52