def getChannel(self, channel, page=1):
     channel = channel.replace(self.domain, "")
     if page > 1:
         url = '%s%s&p=%d' % (self.domain, channel, page - 1)
     else:
         url = '%s%s' % (self.domain, channel)
     response = self.request.get(url)
     return Channel().get(response, page)
 def search(self, text):
     url = "%s/content/search?t=kw&q=%s" % (self.domain, quote_plus(text))
     response = self.request.get(url)
     return Channel().get(response, 1)
 def getCategory(self):
     response = self.request.get(self.domain)
     return Category().get(response), Channel().getTop(response)