it is said that on_message can, but I still can"t test it. Is there any way to achieve it?
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-sharp%s" % (response.url, date))
def on_message(self, project, msg):
print msg
return msg