据说on_message可以,但我测试了还是不行,有什么方法能实现吗?
def detail_page(self, response): results = json.loads(response.text) for result in results: date = result['date'] number = response.url[6:] self.send_message(self.project_name, { "number": number, "date":date, }, url="%s#%s" % (response.url, date)) def on_message(self, project, msg): print msg return msg
红糖糍粑
相关分类