Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(61)  |  Call(61)  |  Derive(0)  |  Import(0)

src/p/y/PyDownTV2-HEAD/spaintvs/tve.py   PyDownTV2(Download)
                    logging.debug(buscar)
            buscar = str(buscar)
        self.debug(u"Serie:", buscar)
        logging.debug("final: "+ buscar)
        #Ir a la página de descripción de vídeos de Clan
        try:
            dataURL = "http://www.rtve.es/infantil/components/"+html.split(buscar)[0].split("<a rel=\"")[-1].split("\"")[0]+"/videos.xml.inc"
        except Exception, e:
            logging.debug(e.__str__())
        self.debug(u"URL Clan data: "+dataURL)
        if not videoID.isdigit(): videoID = self.getID(self.url)
 
        try: self.debug(u"ID del vídeo en url = " + videoID)
        except: pass
        #if self.url.find("rtve.es/infantil/") != -1: self.url = self.url.replace("/#","") # Vídeos de Clan a veces falla con el ancla
        ########################################################
 
        self.debug(u"ID del vídeo en HTML = " + videoID_comp if videoID_comp else "No ID en HTML")
        self.log(u"[INFO] ID del Vídeo :", videoID)
 
 
        # -- Método 24 Mayo 2013
        self.debug(u"Probando método de 24 de uno de Mayo de 2013")
        try: manager = re.findall('data-idManager="(.*?)"', sourceHTML)[0]
        except:

src/p/y/PyDownTV2-HEAD/spaintvs/mitele.py   PyDownTV2(Download)
            endTime -> 0
        '''
        self.debug(u"Probando el que era el Método 3")
        tokenizer = self.TOKENIZER
        header = {
 
        toEncode = (server_time+";"+ID+";"+startTime+";"+endTime).replace(" ", "")
        self.debug("server_time: %s" % server_time)
        self.debug(u"toEncode: %s" % toEncode)
        self.debug(u"Util URL: http://www.pydowntv.com/utils/YXRyZXNwbGF5ZXJfcmFuZG9tXzI/%s" % (toEncode))
                    }
 
        self.debug(u"Token: %s" % post_args)
 
        try:

src/p/y/PyDownTV2-HEAD/spaintvs/miteleGAE.py   PyDownTV2(Download)
            endTime -> 0
        '''
        self.debug(u"Probando el que era el Método 3")
        tokenizer = self.TOKENIZER
        header = {
 
        toEncode = (server_time+";"+ID+";"+startTime+";"+endTime).replace(" ", "")
        self.debug("[DEBUG] server_time: %s" % server_time)
        self.debug(u"[DEBUG] toEncode: %s" % toEncode)
        self.debug(u"[DEBUG] Util URL: http://www.pydowntv.com/utils/YXRyZXNwbGF5ZXJfcmFuZG9tXzI/%s" % (toEncode))
                    }
 
        self.debug(u"Token: %s" % post_args)
 
        try:

src/p/y/PyDownTV2-HEAD/spaintvs/tv3.py   PyDownTV2(Download)
            raise Error.GeneralPyspainTVsError(u"No se encuentra vídeo en la página")
 
        self.debug(u"ID: ", ID)
 
 
            raise Error.GeneralPyspainTVsError(u"No se ha podido obtener los enlaces. Prueba dentro de 5 minutos.")
 
        self.debug(u"TOKEN Utilizdo: "+t)
        url = "rtmp://" + xmlUrl.split("rtmp://")[1].split("<")[0]
        url = url.replace(url.split("mp4:")[0]+"mp4:", "http://mp4-high-dwn.media.tv3.cat/").replace(url.split(".mp4")[1],"")             

src/p/y/PyDownTV2-HEAD/spaintvs/abc.py   PyDownTV2(Download)
        origenVideo = re.findall('var.*ORIGEN.*=.*"(.*)";', video_html)[0]
        modGenUrl = "http://modulos-mm.abc.es/includes/manuales/videos/php/proxyModgen.php?modoExtendido=player&idModulo=ABC_playerVideo&medio=%s&idDivVideo=%s&idVideo=%s&linkURLVideo=%s&origenVideo=%s" % (medio,idDivVideo,idVideo,linkURLVideo,origenVideo)
        self.debug(modGenUrl)
 
 
 
        info = self.__get_info(VideoPlayer)
        self.debug(u"info:",info)
        #TODO: Soltar todos los vídeos con las distintas calidades, ahora está solo la de mayor
        big = 0

src/p/y/PyDownTV2-HEAD/spaintvs/telemadrid.py   PyDownTV2(Download)
        VideoPlayer = html.split("<param name=\"@videoPlayer\" value=\"")[1].split("\"")[0]
        info = self.__get_info(VideoPlayer)
        self.debug(u"info:",info)
 
        #TODO: Soltar todos los vídeos con las distintas calidades, ahora está solo la de mayor

src/p/y/PyDownTV2-HEAD/spaintvs/telecinco.py   PyDownTV2(Download)
            self.info(u"[INFO] Nuevo Video ID:", newID)
            ask4token = self.URL_ASK4TOKEN + newID[-3:] + "/" + newID + ".mp4"
            self.debug(u"[+] Pidiendo nuevo token")
            url2down = Descargar.getHtml(ask4token)
            name = streamHTML.split("var title = \'")[1].split("\'")[0] + ".mp4"
        elif self.url.find("videoURL=") != -1: # Forma con el ID en la URL (nueva??)
            videoID = self.url.split("videoURL=")[1]
            ask4token = self.URL_ASK4TOKEN + videoID[-3:] + "/" + videoID + ".mp4"
            self.debug(u"[+] Pidiendo nuevo token")
            try: imageContentID = streamHTML.split("imageContentId: \'")[1].split("\'")[0] # try por problemas com la API oO
            except: imageContentID = streamHTML.split("MDS.embedObj(video, \"")[1].split("\"")[0]
            self.debug(u"URL JSON: " + self.URL_JSON + "contentId=" + contentID + "&clippingId=" + clippingID + "&imageContentId=" + imageContentID)
            streamJSON = Descargar.getHtml(self.URL_JSON +
                                         "contentId=" + contentID +
                "mensaje"   : None
                }
                self.debug(u"API ENDPOINT: %s" % self.URL_JSON + js + "&imageContentId=" + Utiles.recortar(js, 'contentId=', '&'))
                stream = Descargar.getHtmlUtf8(self.URL_JSON + js + "&imageContentId=" + Utiles.recortar(js, 'contentId=', '&'))
                info = json.loads(stream[1:-1])

src/p/y/PyDownTV2-HEAD/spaintvs/grupo_a3.py   PyDownTV2(Download)
            streamVid = streamVids[v]
            streamVidUrl = self.URL_DE_ANTENA3 + streamVid.split("href=\"")[1].split("\"")[0]
            self.debug(u"URL Video: " + streamVidUrl)
            streamHTML = Descargar.getHtml(streamVidUrl)
 
            #Partes
            id_list = streamHTML.split("_id_list=")[1].split("&")[0]
            listXMLurl = self.URL_DE_F1 + id_list + "_playlist.xml"
            self.debug(u"URL XML list: " + listXMLurl)
    def __get(self, url):
        p = "http://www.gmodules.com/ig/proxy?url="
        url = p+url
        self.debug(unicode(url))
        return Descargar.get(url)
 
    def __getQ(self, url):
        #q = self.__get(url)
        q = Descargar.get(url)
        self.debug(unicode(q))
                tmp = (str((int(i[0])/100000)*100), i[1])
            qq.append(tmp)
        self.debug(unicode(qq))
        return qq
 

src/p/y/PyDownTV2-HEAD/spaintvs/cuatro.py   PyDownTV2(Download)
        streamHTML = Descargar.getHtml(self.url).decode('string-escape')
        if streamHTML.find("CUAVID") != -1:
            self.debug(u"CUAVID")
            ContentID = streamHTML.split("imageContentId: \'")[1].split("\'")[0]
            streamJSON = Descargar.getHtml(self.URL_SOURCES + ContentID)
            url2down = streamJSON.split("\"src\":\"")[1].split("\"")[0].replace("\/", "/")
            name = streamJSON.split("\"wrpContent\":\"")[1].split("\"")[0] + ".mp4"
        elif streamHTML.find("MDS.embedObj(video") != -1: # Este parece ser el único método a 16/10/2012 (pero dejo los demás..)
            self.debug(u"MDS.embedObj")
            clippingID = streamHTML.split("imageClippingId: \'")[1].split("\'")[0]
            imageContentID = streamHTML.split("imageContentId: \'")[1].split("\'")[0]
            self.debug("URL Json: "+self.URL_JSON + "contentId=" + contentID + "&clippingId=" + clippingID + "&imageContentId=" + imageContentID)
            streamJSON = Descargar.getHtml( self.URL_JSON +
                                            "contentId=" + contentID +

src/p/y/PyDownTV2-HEAD/spaintvs/plus.py   PyDownTV2(Download)
    def __newPlus(self, html):
        self.debug(u"Nuevo método PLUS [Febrero 2014]")
 
        charset = re.findall('\<meta http\-equiv\=\"Content\-Type\" content\=\"text\/html\; charset\=(.*)\" \/\>',html)[0]
        html = html.decode(charset).encode("utf8")
        # utilizo entonces: /comunes/player/mm_nube_bc.php
        plusEs = False
        self.debug(u"URL Info: "+self.URL_PLUS + "/comunes/player/mm_nube_bc.php?xref=" + VideoPlayer)
        info = Descargar.get(self.URL_PLUS + "/comunes/player/mm_nube_bc.php?xref=" + VideoPlayer).decode('iso-8859-15').encode('utf8')
 

  1 | 2  Next