Ejemplo n.º 1
0
 def getMovie(self, id):
     url = Movie().get_movie_link(
         self.request.get(id, cookies=self.cookie, headers={
             'Referer': 'http://tvhay.org/',
             'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'
         })
     )
     response = self.request.get(url, cookies=self.cookie, headers={
         'Referer': 'http://tvhay.org/',
         'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'
     })
     return Movie().get(response)
Ejemplo n.º 2
0
 def getLink(self, movie):
     response = self.request.get(movie['link'], cookies=self.cookie)
     return Movie().get_link(response, movie['link'])
Ejemplo n.º 3
0
 def getMovie(self, id):
     url = Movie().get_movie_link(self.request.get(id, cookies=self.cookie))
     response = self.request.get(url, cookies=self.cookie)
     return Movie().get(response)