我需要在同一个url下获取多条数据。 我用官网介绍的on_message,但是msg并没有传入on_message函数中啊。print msg,什么都打印不出来,但是在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
慕桂英3389331
相关分类