コード例 #1
0
 def __getHTTP(self):
     if sys.platform == "win32": self.__descargaVideoWindows()
     else:
         printt(u"")
         printt(u"DESCARGAR:")
         printt(u"----------------------------------------------------------------")
         printt(u"[ URL DE DESCARGA FINAL ]", self.__URL)
         printt(u"[INFO] Presiona \"Ctrl + C\" para cancelar")
         printt(u"")
         options = {"output_file": self.__TITULO, "verbose": True, "max_speed": None, "num_connections": 4}
         pyaxel.download(self.__URL, options)
コード例 #2
0
ファイル: uiDescargar.py プロジェクト: rkmax/PyDownTV2
 def __getHTTP(self):
     if sys.platform == "win32": self.__descargaVideoWindows()
     else:
         printt(u"")
         printt(u"DESCARGAR:")
         printt(
             u"----------------------------------------------------------------"
         )
         printt(u"[ URL DE DESCARGA FINAL ]", self.__URL)
         printt(u"[INFO] Presiona \"Ctrl + C\" para cancelar")
         printt(u"")
         options = {
             "output_file": self.__TITULO,
             "verbose": True,
             "max_speed": None,
             "num_connections": 4
         }
         pyaxel.download(self.__URL, options)
コード例 #3
0
ファイル: Descargar.py プロジェクト: aabilio/PyDownTV
 
 printt(u"[INFO] Presiona \"Ctrl + C\" para cancelar (Por partes)")
 printt(u"")
 if type(self._URL) == list:
     printt(u"[?] Quieres descargar todas las partes? [s/n]:")
     opc = ""
     while opc != "s" and opc != "n":
         opc = raw_input()
         if opc is not "s" or opc is not "n":
             printt(u"[!!!] [s/n]")
     
     if opc is "s":
         for i in range(0, len(self._URL)):
             printt(u"[Descargando %d parte]" % (int(i) + 1))
             options = {"output_file": self._outputName[i], "verbose": True, "max_speed": None, "num_connections": 4}
             pyaxel.download(self._URL[i], options)
             print "\n"
     elif opc is "n":
         printt(u"\n[?] Qué partes quieres descargar?")
         printt(u"[INFO] Puedes introducir varias partes separadas por comas")
         
         ERROR = True
         while ERROR is True: 
             ERROR = False
             printt(u"[INFO] Partes:")
             b = 1
             for i in range(0, len(self._URL)):
                 printt(u"[Parte %s] %s" % (str(b), self._URL[i]))
                 b += 1
             del b
             printt(u"[?] --> ")