Exemple #1
0
 def tagger(self):
     if not self._auth:
         raise cherrypy.HTTPRedirect('../auth')
     tagger = TweetTagger(sql=self._sql, mongo=self._mongo)
     return self._get_template('tweet.html', tweets=tagger.tag(10))
Exemple #2
0
 def extract(self, query):
     if not self._auth:
         raise cherrypy.HTTPRedirect('../../auth')
     bulk_analysis(sql=self._sql, keyword=query)
     tagger = TweetTagger(sql=self._sql, mongo=self._mongo)
     return self._get_template('tweet.html', tweets=tagger.tag(keyword=query))