def do_search(self): term = self.get_argument("term", None) page = self.get_argument("page", None) if (term == None): self.write('you need to set a term to search') return ts = TSUtils() search_results = ts.search(term, page) self.render("tweet.html", tweets=search_results, term=term, next_page=str(int(page)+1))
def do_search_and_classify(self): term = self.get_argument("term", None) page = self.get_argument("page", 1) if (term == None): self.write('you need to set a term to search') return ts = TSUtils() search_results = ts.search(term, page) classi = classify(search_results) self.render("tweet_view.html", tweets=search_results, classi=classi, term=term, page=str(int(page)+1))
def do_search(self): term = self.get_argument("term", None) page = self.get_argument("page", None) if (term == None): self.write('you need to set a term to search') return ts = TSUtils() search_results = ts.search(term, page) self.render("tweet.html", tweets=search_results, term=term, next_page=str(int(page) + 1))
def do_search_and_classify(self): term = self.get_argument("term", None) page = self.get_argument("page", 1) if (term == None): self.write('you need to set a term to search') return ts = TSUtils() search_results = ts.search(term, page) classi = classify(search_results) self.render("tweet_view.html", tweets=search_results, classi=classi, term=term, page=str(int(page) + 1))