Exemplo n.º 1
0
 def get(self):
     client = Crunchbase()
     q = self.request.get('q')
     results = client.company_search(q)
     self.finish([{'name': r['name'],
                   'uri': '/crunchbase/company/%s' % r['permalink']}
                  for r in results])
Exemplo n.º 2
0
Arquivo: room.py Projeto: 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
Exemplo n.º 3
0
 def get(self, name):
     client = Crunchbase()
     self.finish(client.company_summary(name))