Ejemplo n.º 1
0
 def getChannel(self, channel, page=1):
     channel = channel.replace(self.domain, "")
     if page > 1:
         url = '%s%s?page=%d' % (self.domain, channel, page)
     else:
         url = '%s%s' % (self.domain, channel)
     response = Request().get(url)
     return Channel().get(response, page)
Ejemplo n.º 2
0
 def search(self, text):
     url = "%s/tim-kiem-phim/%s/" % (self.domain, text.replace(' ', '-'))
     response = Request().get(url)
     return Channel().get(response, 1)
Ejemplo n.º 3
0
 def search(self, text):
     url = "%s/tim-kiem-phim/%s" % (self.domain, urllib.quote_plus(text))
     response = Request().get(url)
     return Channel().get(response, 1)
Ejemplo n.º 4
0
 def getCategory(self):
     response = Request().get(self.domain)
     return Category().get(response), Channel().get(response, 1)