예제 #1
0
파일: room.py 프로젝트: pagewoo/ASL
def crunch_base(message):
	message = message['message']
	crunch_results = []
	p = re.compile(r'\^\w+')
	matches =p.findall(message)
	logging.info(matches)
	for match in matches:
		
		query = match.replace('^', '')
		logging.warning('QUERY = ' + str(query))
		crunchbase = Crunchbase()
		# lookup with crunchbase
		crunch = crunchbase.company_summary(query)
		crunch_results.append(crunch)

	return crunch_results
예제 #2
0
파일: crunchbase.py 프로젝트: pagewoo/ASL
 def get(self, name):
     client = Crunchbase()
     self.finish(client.company_summary(name))