Ejemplo n.º 1
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("deportesalacarta.servers.datoporn url=" + page_url)

    data = scrapertools.cache_page(page_url)

    media_urls = scrapertools.find_multiple_matches(
        data, 'file\:"([^"]+\.mp4)",label:"([^"]+)"')
    if not media_urls:
        match = scrapertools.find_single_match(
            data, "<script type='text/javascript'>(.*?)</script>")
        data = jsunpack.unpack(match)
        media_urls = scrapertools.find_multiple_matches(
            data, '\[\{file\:"([^"]+)"')

    # Extrae la URL
    video_urls = []
    for media_url in sorted(media_urls, key=lambda x: int(x[1])):
        video_urls.append([
            "." + media_url[0].rsplit('.', 1)[1] + " " + media_url[1] +
            "p [datoporn]", media_url[0]
        ])

    for video_url in video_urls:
        logger.info("deportesalacarta.servers.datoporn %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("streamondemand.servers.rocvideo url=" + page_url)
    if not "embed" in page_url:
        page_url = page_url.replace("http://rocvideo.tv/",
                                    "http://rocvideo.tv/embed-") + ".html"

    data = scrapertools.cache_page(page_url)

    data = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    )
    data = jsunpack.unpack(data)
    logger.info("data=" + data)

    #file:"http://s1.rocvideo.tv/files/2/aqsk8q5mjcoh1d/INT3NS4HDTS-L4T.mkv.mp4
    media_url = scrapertools.get_match(data, 'file:"([^"]+)"')
    video_urls = []
    video_urls.append([
        scrapertools.get_filename_from_url(media_url)[-4:] + " [rocvideo]",
        media_url
    ])

    return video_urls
Ejemplo n.º 3
0
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("(page_url='%s')" % page_url)

    data = downloadpage(page_url).data

    try:
        sources = get_match(data, 'sources\s*:\s* \[([^\]]+)\]')
    except:
        try: from core import jsunpack
        except: from lib import jsunpack
        sources = jsunpack.unpack(get_match(data, '<script[^>]*>(eval.function.p,a,c,k,e,.*?)</script>'))
        sources = get_match(sources, 'sources\s*:\s*\[([^\]]+)\]')

    video_urls = []
    for media_url in find_multiple_matches(sources, '"([^"]+)"'):
        if media_url.endswith(".mp4"):
            video_urls.append([".mp4 [%s]" % id_server, media_url])

        if media_url.endswith(".m3u8"):
            video_urls.append(["M3U8 [%s]" % id_server, media_url])

        if media_url.endswith(".smil"):
            smil_data = downloadpage(media_url).data

            rtmp = get_match(smil_data, 'base="([^"]+)"')
            playpaths = find_multiple_matches(smil_data, 'src="([^"]+)" height="(\d+)"')

            for playpath, inf in playpaths:
                h = get_match(playpath, 'h=([a-z0-9]+)')
                video_urls.append(["RTMP [%s] %s" % (id_server, inf), "%s playpath=%s" % (rtmp, playpath)])

    for video_url in video_urls:
        logger.info("video_url: %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 4
0
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("pelisalacarta.servers.flashx url=" + page_url)

    # Lo pide una vez
    data = scrapertools.cache_page(page_url, headers=headers)
    # Si salta aviso, se carga la pagina de comprobacion y luego la inicial
    if "You try to access this video with Kodi" in data:
        url_reload = scrapertools.find_single_match(data, 'try to reload the page.*?href="([^"]+)"')
        data = scrapertools.cache_page(url_reload, headers=headers)
        data = scrapertools.cache_page(page_url, headers=headers)

    match = scrapertools.find_single_match(data, "<script type='text/javascript'>(.*?)</script>")

    if match.startswith("eval"):
        match = jsunpack.unpack(match)

    # Extrae la URL
    # {file:"http://f11-play.flashx.tv/luq4gfc7gxixexzw6v4lhz4xqslgqmqku7gxjf4bk43u4qvwzsadrjsozxoa/video1.mp4"}
    video_urls = []
    media_urls = scrapertools.find_multiple_matches(match, '\{file\:"([^"]+)"')
    for media_url in media_urls:
        if not media_url.endswith("png"):
            video_urls.append(["." + media_url.rsplit('.', 1)[1] + " [flashx]", media_url])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.flashx %s - %s" % (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("[wstream.py] get_video_url(page_url='%s')" % page_url)
    video_urls = []

    data = scrapertools.cache_page(page_url, headers=headers)

    time.sleep(9)

    post_url = re.findall('Form method="POST" action=\'(.*)\'', data)[0]
    post_selected = re.findall('Form method="POST" action=(.*)</Form>', data, re.DOTALL)[0]

    post_data = 'op=%s&usr_login=%s&id=%s&referer=%s&hash=%s&imhuman=Proceed+to+video' % (
        re.findall('input type="hidden" name="op" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="usr_login" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="id" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="referer" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="hash" value="(.*)"', post_selected)[0])

    headers.append(['Referer', post_url])
    data = scrapertools.cache_page(post_url, post=post_data, headers=headers)

    data_pack = scrapertools.find_single_match(data, "(eval.function.p,a,c,k,e,.*?)\s*</script>")

    if data_pack != "":
        from core import jsunpack
        data = jsunpack.unpack(data_pack)

    video_url = scrapertools.find_single_match(data, 'file"?\s*:\s*"([^"]+)",')
    video_urls.append([".mp4 [wstream]", video_url])

    for video_url in video_urls:
        logger.info("[wstream.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 6
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("deportesalacarta.streamplay get_video_url(page_url='%s')" % page_url)
    data = scrapertools.cache_page(page_url)

    jj_encode = scrapertools.find_single_match(data, "(\w+=~\[\];.*?\)\(\)\)\(\);)")
    jj_decode = None
    jj_patron = None
    if jj_encode:
        jj_decode = JJDecoder(jj_encode).decode()
    if jj_decode:
        jj_patron = scrapertools.find_single_match(jj_decode, "/([^/]+)/")

    matches = scrapertools.find_single_match(data, "<script type=[\"']text/javascript[\"']>(eval.*?)</script>")
    matchjs = jsunpack.unpack(matches).replace("\\", "")

    matches = scrapertools.find_multiple_matches(matchjs, ',file:"([^"]+)"')
    video_urls = []
    for mediaurl in matches:
        filename = scrapertools.get_filename_from_url(mediaurl)[-4:]
        if mediaurl.startswith("rtmp"):
            rtmp, playpath = mediaurl.split("vod/", 1)
            mediaurl = "%svod/ playpath=%s pageUrl=%s" % (rtmp, playpath, page_url)
            filename = "rtmp"
        mediaurl = re.sub(r'%s' % jj_patron, r'\1', mediaurl)
        video_urls.append([filename + " [streamplay]", mediaurl])

    video_urls.sort(key=lambda x:x[0], reverse=True)
    for video_url in video_urls:
        logger.info("[streamplay.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 7
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.gamovideo get_video_url(page_url='%s')" % page_url)
    if not "embed" in page_url:
        page_url = page_url.replace("http://gamovideo.com/","http://gamovideo.com/embed-") + "-640x360.html"

    HEADERS = []
    HEADERS.append(["User-Agent","Firefox"])

    data = scrapertools.cache_page(page_url,headers=HEADERS)
    logger.info("pelisalacarta.gamovideo data=="+data)

    data = scrapertools.find_single_match(data,"<script type='text/javascript'>(eval.function.p,a,c,k,e,d..*?)</script>")
    logger.info("pelisalacarta.gamovideo data=="+data)

    data = jsunpack.unpack(data)

    host = scrapertools.get_match(data, 'image:"(http://[^/]+/)')
    flv_url = scrapertools.get_match(data, ',\{file:"([^"]+)"')
    rtmp_url = scrapertools.get_match(data, '\[\{file:"([^"]+)"')
    flv = host+flv_url.split("=")[1]+"/v.flv"

    video_urls = []
    video_urls.append([scrapertools.get_filename_from_url(flv)[-4:]+" [gamovideo]",flv])
    #video_urls.append(["RTMP [gamovideo]",rtmp_url])      

    for video_url in video_urls:
        logger.info("[gamovideo.py] %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 8
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info(
        "deportesalacarta.servers.videomega get_video_url(page_url='%s')" %
        page_url)

    data = scrapertools.cache_page(page_url)
    video_urls = []

    patron = r"(eval.function.p,a,c,k,e,.*?)\s*</script>"
    data = scrapertools.find_single_match(data, patron)
    if data != '':
        data = jsunpack.unpack(data)
        location = scrapertools.find_single_match(data,
                                                  r'"src"\s*,\s*"([^"]+)')
        video_urls.append([
            scrapertools.get_filename_from_url(location)[-4:] + " [videomega]",
            location
        ])

    for video_url in video_urls:
        logger.info("deportesalacarta.servers.videomega %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 9
0
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("[megahd.py] get_video_url(page_url='%s')" % page_url)
    video_urls = []

    data = scrapertools.cache_page(page_url)

    data_pack = scrapertools.find_single_match(data, "(eval.function.p,a,c,k,e,.*?)\s*</script>")

    if data_pack != "":
        try:
            from core import unpackerjs3
            data_unpack = unpackerjs3.unpackjs(data_pack)
        except:
            data_unpack = ""
        if data_unpack == "":
            from core import jsunpack
            data_unpack = jsunpack.unpack(data_pack)
        data = data_unpack

    video_url = scrapertools.find_single_match(data, 'file"?\s*:\s*"([^"]+)",')
    video_urls.append([".mp4 [megahd]", video_url])

    for video_url in video_urls:
        logger.info("[megahd.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 10
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("streamondemand.servers.powvideo get_video_url(page_url='%s')" % page_url)

    url = page_url.replace("http://powvideo.net/","http://powvideo.net/iframe-") + "-640x360.html"     
    headers.append(['Referer',url.replace("iframe","embed")])
    
    data = scrapertools.cache_page(url, headers=headers)

    # Extrae la URL
    data = scrapertools.find_single_match(data,"<script type='text/javascript'>(.*?)</script>")
    data = jsunpack.unpack(data).replace("\\","")

    data = scrapertools.find_single_match(data,"sources\=\[([^\]]+)\]")
    logger.info("data="+data)

    matches = scrapertools.find_multiple_matches(data, "src:'([^']+)'")
    video_urls = []
    for video_url in matches:
        filename = scrapertools.get_filename_from_url(video_url)[-4:]
        if video_url.startswith("rtmp"):
            rtmp, playpath = video_url.split("vod/",1)
            video_url = "%s playpath=%s swfUrl=http://powvideo.net/player6/jwplayer.flash.swf pageUrl=%s" % (rtmp+"vod/", playpath, page_url)
            filename = "RTMP"
        elif "m3u8" in video_url:
            video_url += "|User-Agent="+headers[0][1]

        video_urls.append( [ filename + " [powvideo]", video_url])

    for video_url in video_urls:
        logger.info("streamondemand.servers.powvideo %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 11
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("deportesalacarta.servers.vidzi url=" + page_url)
    if not "embed" in page_url:
        page_url = page_url.replace("http://vidzi.tv/",
                                    "http://vidzi.tv/embed-") + ".html"

    data = scrapertools.cache_page(page_url)
    logger.info("deportesalacarta.servers.vidzi data=" + data)

    data = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    )
    logger.info("data=" + data)

    data = jsunpack.unpack(data)
    logger.info("data=" + data)

    video_urls = []
    media_urls = scrapertools.find_multiple_matches(data, 'file:"([^"]+)"')
    for media_url in media_urls:

        if not media_url.endswith("vtt"):
            video_urls.append([
                scrapertools.get_filename_from_url(media_url)[-4:] +
                " [vidzi]", media_url
            ])

    return video_urls
Ejemplo n.º 12
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("pelisalacarta.servers.flashx url=" + page_url)

    # Lo pide una vez
    data = scrapertools.cache_page(page_url, headers=headers)
    match = scrapertools.find_single_match(
        data, "<script type='text/javascript'>(.*?)</script>")

    if match.startswith("eval"):
        match = jsunpack.unpack(match)

    # Extrae la URL
    #{file:"http://f11-play.flashx.tv/luq4gfc7gxixexzw6v4lhz4xqslgqmqku7gxjf4bk43u4qvwzsadrjsozxoa/video1.mp4"}
    video_urls = []
    media_urls = scrapertools.find_multiple_matches(match, '\{file\:"([^"]+)"')
    for media_url in media_urls:
        if not media_url.endswith("png"):
            video_urls.append(
                ["." + media_url.rsplit('.', 1)[1] + " [flashx]", media_url])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.flashx %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("[rapidvideo.py] url=" + page_url)
    video_urls = []

    headers = [
        ['User-Agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20100101 Firefox/18.0'],
        ['Accept-Encoding', 'gzip, deflate'],
        ['Referer', page_url]
    ]

    data = scrapertools.cache_page(page_url)

    op = scrapertools.find_single_match(data, 'name="op" value="([^"]+)"')
    usr_login = scrapertools.find_single_match(data, 'name="usr_login" value="([^"]+)"')
    id = scrapertools.find_single_match(data, 'name="id" value="([^"]+)"')
    fname = scrapertools.find_single_match(data, 'name="fname" value="([^"]+)"')
    referer = scrapertools.find_single_match(data, 'name="referer" value="([^"]+)"')
    hash = scrapertools.find_single_match(data, 'name="hash" value="([^"]+)"')
    imhuman = scrapertools.find_single_match(data, 'name="imhuman" value="([^"]+)"')

    post = "op=%s&usr_login=%s&id=%s&fname=%s&referer=%s&hash=%s&imhuman=%s" % (op, usr_login, id, fname, referer, hash, imhuman)

    data = scrapertools.cache_page(page_url, post=post, headers=headers)

    packed = scrapertools.get_match(data, "<script type='text/javascript'>eval.function.p,a,c,k,e,.*?</script>")
    unpacked = jsunpack.unpack(packed)
    media_url = scrapertools.find_single_match(unpacked, 'file:"([^"]+)"')

    video_urls.append(["[rapidvideo]", media_url + '|' + urllib.urlencode(dict(headers))])

    return video_urls
Ejemplo n.º 14
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("hugefiles get_video_url(page_url='%s')" % page_url)
    video_urls = []
    
    data = scrapertools.cache_page( page_url )

    # Submit
    post = {}
    r = re.findall(r'type="hidden" name="(.+?)"\s* value="?(.+?)">', data)
    for name, value in r:
        post[name] = value
        post.update({'method_free':'Free Download'})
    data = scrapertools.cache_page( page_url, post=urllib.urlencode(post))

    # Get link
    sPattern = '''<div id="player_code">.*?<script type='text/javascript'>(eval.+?)</script>'''
    r = re.findall(sPattern, data, re.DOTALL|re.I)
    mediaurl = ""
    if r:
        sUnpacked = jsunpack.unpack(r[0])
        sUnpacked = sUnpacked.replace("\\'","")
        r = re.findall('file,(.+?)\)\;s1',sUnpacked)
        if not r:
           r = re.findall('"src"value="(.+?)"/><embed',sUnpacked)

        mediaurl = r[0]

    video_urls = []
    video_urls.append( [ scrapertools.get_filename_from_url(mediaurl)[-4:]+" [hugefiles]",mediaurl])

    for video_url in video_urls:
        logger.info("hugefiles %s - %s" % (video_url[0],video_url[1]))
    
    return video_urls
Ejemplo n.º 15
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("[fastvideo.py] url=" + page_url)

    video_id = scrapertools.find_single_match(page_url, 'me/([A-Za-z0-9]+)')
    url = 'http://www.fastvideo.me/embed-%s-607x360.html' % video_id

    data = scrapertools.cache_page(url, headers=headers)

    packed = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>eval.function.p,a,c,k,e,.*?</script>")
    unpacked = jsunpack.unpack(packed)
    media_url = scrapertools.find_single_match(unpacked, 'file:"([^"]+)"')

    headers.append(['Referer', page_url])

    _headers = urllib.urlencode(dict(headers))
    # URL del vídeo
    vurl = media_url + '|' + _headers

    video_urls = [[
        scrapertools.get_filename_from_url(media_url)[-4:] + " [fastvideo.me]",
        vurl
    ]]

    for video_url in video_urls:
        logger.info("[fastvideo.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 16
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("streamondemand.videomega get_video_url(page_url='%s')" %
                page_url)

    headers.append(['Referer', page_url])
    data = scrapertools.cache_page(page_url, headers=headers)
    video_urls = []

    patron = r"(eval.function.p,a,c,k,e,.*?)\s*</script>"
    data = scrapertools.find_single_match(data, patron)
    if data != '':
        data = jsunpack.unpack(data)

        location = scrapertools.find_single_match(data,
                                                  r'"src"\s*,\s*"([^"]+)')
        location += '|' + urllib.urlencode(dict(headers))
        logger.info("streamondemand.videomega location=" + location)

        video_urls.append([
            scrapertools.get_filename_from_url(location)[-4:] + " [videomega]",
            location
        ])

    for video_url in video_urls:
        logger.info("streamondemand.videomega %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 17
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("pelisalacarta.servers.idowatch get_video_url(page_url='%s')" %
                page_url)

    data = scrapertools.cache_page(page_url)

    try:
        mediaurl = scrapertools.find_single_match(data,
                                                  ',{file:(?:\s+|)"([^"]+)"')
    except:
        matches = scrapertools.find_single_match(
            data,
            "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
        )
        matchjs = jsunpack.unpack(matches).replace("\\", "")
        mediaurl = scrapertools.find_single_match(matchjs,
                                                  ',{file:(?:\s+|)"([^"]+)"')
    video_urls = []
    video_urls.append([
        scrapertools.get_filename_from_url(mediaurl)[-4:] + " [idowatch]",
        mediaurl
    ])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.idowatch %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 18
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("streamondemand.servers.allvid url=" + page_url)

    data = scrapertools.cache_page(page_url)
    redirect_url = scrapertools.find_single_match(data, '<iframe src="([^"]+)')
    data = scrapertools.cache_page(redirect_url)
    matches = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    )
    matchjs = jsunpack.unpack(matches).replace("\\", "")

    video_urls = []
    media_urls = scrapertools.find_multiple_matches(
        matchjs, '\{file:"([^"]+)",label:"([^"]+)"\}')
    for media_url, label in media_urls:
        video_urls.append([
            scrapertools.get_filename_from_url(media_url)[-4:] + " (" + label +
            ") [allvid]", media_url
        ])

    for video_url in video_urls:
        logger.info("streamondemand.servers.allvid %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("[speedvid.py] url=" + page_url)
    video_urls = []

    data = scrapertools.cache_page(page_url, headers=headers)

    time.sleep(5)

    post_url = re.findall('Form method="POST" action=\'(.*)\'', data)[0]
    post_selected = re.findall('Form method="POST" action=(.*)</Form>', data, re.DOTALL)[0]

    post_data = 'op=%s&usr_login=%s&id=%s&fname=%s&referer=%s&hash=%s&imhuman=Proceed+to+video' % (
        re.findall('input type="hidden" name="op" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="usr_login" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="id" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="fname" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="referer" value="(.*)"', post_selected)[0],
        re.findall('input type="hidden" name="hash" value="(.*)"', post_selected)[0])

    headers.append(['Referer', page_url])
    data = scrapertools.cache_page(post_url, post=post_data, headers=headers)

    data = scrapertools.find_single_match(data, "(eval.function.p,a,c,k,e,.*?)\s*</script>")

    if data != "":
        from core import jsunpack
        data = jsunpack.unpack(data)

        # URL del vídeo
        url = re.findall('file:\s*"([^"]+)"', data)[0]

        video_urls.append([scrapertools.get_filename_from_url(url)[-4:] + " [speedvid]", url])

    return video_urls
Ejemplo n.º 20
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("pelisalacarta.servers.letwatch url=" + page_url)

    if not "embed" in page_url:
        page_url = page_url.replace("http://letwatch.to/",
                                    "http://letwatch.to/embed-") + ".html"

    data = scrapertools.cache_page(page_url)
    matches = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    )
    matchjs = jsunpack.unpack(matches).replace("\\", "")

    video_urls = []
    media_urls = scrapertools.find_multiple_matches(
        matchjs, '\{file\:"([^"]+)",label\:"([^"]+)"\}')
    for media_url, label in media_urls:
        video_urls.append([
            scrapertools.get_filename_from_url(media_url)[-4:] + " (" + label +
            ") [letwatch]", media_url
        ])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.letwatch %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 21
0
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("[rapidvideo.py] url=" + page_url)
    video_urls = []

    headers = [
        ['User-Agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:18.0) Gecko/20100101 Firefox/18.0'],
        ['Accept-Encoding', 'gzip, deflate'],
        ['Referer', page_url]
    ]

    data = scrapertools.cache_page(page_url)

    op = scrapertools.find_single_match(data, 'name="op" value="([^"]+)"')
    usr_login = scrapertools.find_single_match(data, 'name="usr_login" value="([^"]+)"')
    id = scrapertools.find_single_match(data, 'name="id" value="([^"]+)"')
    fname = scrapertools.find_single_match(data, 'name="fname" value="([^"]+)"')
    referer = scrapertools.find_single_match(data, 'name="referer" value="([^"]+)"')
    hash = scrapertools.find_single_match(data, 'name="hash" value="([^"]+)"')
    imhuman = scrapertools.find_single_match(data, 'name="imhuman" value="([^"]+)"')

    post = "op=%s&usr_login=%s&id=%s&fname=%s&referer=%s&hash=%s&imhuman=%s" % (op, usr_login, id, fname, referer, hash, imhuman)

    data = scrapertools.cache_page(page_url, post=post, headers=headers)

    packed = scrapertools.get_match(data, "<script type='text/javascript'>eval.function.p,a,c,k,e,.*?</script>")
    unpacked = jsunpack.unpack(packed)
    media_url = scrapertools.find_single_match(unpacked, 'file:"([^"]+)"')

    video_urls.append(["[rapidvideo]", media_url + '|' + urllib.urlencode(dict(headers))])

    return video_urls
Ejemplo n.º 22
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("[fastvideo.py] url=" + page_url)

    video_id = scrapertools.get_match(page_url, 'me/([A-Za-z0-9]+)')
    url = 'http://www.fastvideo.me/embed-%s-607x360.html' % video_id

    data = scrapertools.cache_page(url)

    packed = scrapertools.get_match(
        data,
        "<script type='text/javascript'>eval.function.p,a,c,k,e,.*?</script>")
    unpacked = jsunpack.unpack(packed)
    media_url = scrapertools.get_match(unpacked, 'file:"([^"]+)"')

    video_urls = [[
        scrapertools.get_filename_from_url(media_url)[-4:] + " [fastvideo.me]",
        media_url
    ]]

    for video_url in video_urls:
        logger.info("[fastvideo.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("streamondemand.servers.flashx url=" + page_url)

    video_urls = []

    data = scrapertools.cache_page(page_url, headers=headers)

    page_url = scrapertools.find_single_match(data, 'href="([^"]+)')

    if page_url:
        data = scrapertools.cache_page(page_url, headers=headers)

    data = scrapertools.find_single_match(data, '(eval\(function.*?)</script>')

    if data:
        data = jsunpack.unpack(data)
        _headers = urllib.urlencode(dict(headers))

        # Extrae la URL
        media_urls = scrapertools.find_multiple_matches(
            data, 'file\s*:\s*"([^"]+)"')
        for media_url in media_urls:
            if not media_url.endswith("png"):
                video_urls.append(
                    [media_url[-4:] + " [flashx]", media_url + '|' + _headers])

        for video_url in video_urls:
            logger.info("streamondemand.servers.flashx %s - %s" %
                        (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 24
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.servers.gamovideo get_video_url(page_url='%s')" % page_url)

    data = scrapertools.cache_page(page_url)
    packer = scrapertools.find_single_match(data,"<script type='text/javascript'>(eval.function.p,a,c,k,e,d..*?)</script>")
    unpacker = jsunpack.unpack(data) if packer != "" else ""
    if unpacker != "": data = unpacker

    data = re.sub(r'\n|\t|\s+', '', data)

    host = scrapertools.get_match(data, '\[\{image:"(http://[^/]+/)')
    mediaurl = host+scrapertools.get_match(data, ',\{file:"([^"]+)"').split("=")[1]+"/v.flv"
   
    rtmp_url = scrapertools.get_match(data, 'file:"(rtmp[^"]+)"')
    playpath = scrapertools.get_match(rtmp_url, 'vod\?h=[\w]+/(.*$)')
    rtmp_url = rtmp_url.split(playpath)[0]+" playpath="+playpath+" swfUrl=http://gamovideo.com/player61/jwplayer.flash.swf"

    video_urls = []
    video_urls.append([scrapertools.get_filename_from_url(mediaurl)[-4:]+" [gamovideo]",mediaurl])
    video_urls.append(["RTMP [gamovideo]",rtmp_url])     

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.gamovideo %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 25
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.streamplay get_video_url(page_url='%s')" % page_url)
    data = scrapertools.cache_page(page_url)

    jj_encode = scrapertools.find_single_match(data, "(\w+=~\[\];.*?\)\(\)\)\(\);)")
    jj_decode = None
    jj_patron = None
    if jj_encode:
        jj_decode = JJDecoder(jj_encode).decode()
    if jj_decode:
        jj_patron = scrapertools.find_single_match(jj_decode, "/([^/]+)/")

    matches = scrapertools.find_single_match(data, "<script type=[\"']text/javascript[\"']>(eval.*?)</script>")
    matchjs = jsunpack.unpack(matches).replace("\\", "")

    matches = scrapertools.find_multiple_matches(matchjs, ',file:"([^"]+)"')
    video_urls = []
    for mediaurl in matches:
        filename = scrapertools.get_filename_from_url(mediaurl)[-4:]
        if mediaurl.startswith("rtmp"):
            rtmp, playpath = mediaurl.split("vod/", 1)
            mediaurl = "%svod/ playpath=%s pageUrl=%s" % (rtmp, playpath, page_url)
            filename = "rtmp"
        mediaurl = re.sub(r'%s' % jj_patron, r'\1', mediaurl)
        video_urls.append([filename + " [streamplay]", mediaurl])

    video_urls.sort(key=lambda x:x[0], reverse=True)
    for video_url in video_urls:
        logger.info("[streamplay.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("streamondemand.streamplay get_video_url(page_url='%s')" %
                page_url)
    data = scrapertools.cache_page(page_url)

    matches = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    )
    matchjs = jsunpack.unpack(matches).replace("\\", "")

    mediaurl = scrapertools.find_single_match(matchjs,
                                              ',file:"(http://[^"]+)"')
    video_urls = []
    video_urls.append([
        scrapertools.get_filename_from_url(mediaurl)[-4:] + " [streamplay]",
        mediaurl
    ])

    for video_url in video_urls:
        logger.info("[streamplay.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 27
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("[movreel.py] get_video_url(page_url='%s')" % page_url)
    video_urls = []

    data = scrapertools.cache_page(page_url)

    op = scrapertools.get_match(data,'<input type="hidden" name="op" value="([^"]+)">')
    file_code = scrapertools.get_match(data,'<input type="hidden" name="file_code" value="([^"]+)">')
    w = scrapertools.get_match(data,'<input type="hidden" name="w" value="([^"]+)">')
    h = scrapertools.get_match(data,'<input type="hidden" name="h" value="([^"]+)">')
    method_free = scrapertools.get_match(data,'<input type="submit" name="method_free" value="([^"]+)">')

    #op=video_embed&file_code=yrwo5dotp1xy&w=600&h=400&method_free=Close+Ad+and+Watch+as+Free+User
    post = urllib.urlencode( {"op":op,"file_code":file_code,"w":w,"h":h,"method_free":method_free} )

    data = scrapertools.cache_page(page_url,post=post)
    data = jsunpack.unpack(data)
    logger.info("data="+data)

    media_url = scrapertools.get_match(data,'file\:"([^"]+)"')
    video_urls.append( [ scrapertools.get_filename_from_url(media_url)[-4:]+" [movreel]",media_url])

    for video_url in video_urls:
        logger.info("[movreel.py] %s - %s" % (video_url[0],video_url[1]))

    return video_urls
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("pelisalacarta.servers.letwatch url=" + page_url)
    if not "embed" in page_url:
        page_url = page_url.replace("http://letwatch.to/",
                                    "http://letwatch.to/embed-") + ".html"

    data = scrapertools.cache_page(page_url)

    data = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    )
    logger.info("data=" + data)
    data = jsunpack.unpack(data)
    logger.info("data=" + data)

    # Extrae la URL
    #{label:"240p",file:"http://188.240.220.186/drjhpzy4lqqwws4phv3twywfxej5nwmi4nhxlriivuopt2pul3o4bkge5hxa/video.mp4"}
    video_urls = []
    media_urls = scrapertools.find_multiple_matches(
        data, '\{file\:"([^"]+)",label\:"([^"]+)"\}')
    video_urls = []
    for media_url, label in media_urls:
        video_urls.append([
            scrapertools.get_filename_from_url(media_url)[-4:] + " (" + label +
            ") [letwatch]", media_url
        ])

    return video_urls
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("streamondemand.servers.flashx url=" + page_url)

    # Lo pide una vez
    data = scrapertools.cache_page(page_url, headers=headers)
    # Countdown bypass - url reload
    if "You try to access this video with Kodi" in data:
        url_reload = scrapertools.find_single_match(data, 'try to reload the page.*?href="([^"]+)"')
        data = scrapertools.cache_page(url_reload, headers=headers)
        data = scrapertools.cache_page(page_url, headers=headers)

    match = scrapertools.find_single_match(data, "<script type='text/javascript'>(.*?)</script>")

    if match.startswith("eval"):
        match = jsunpack.unpack(match)

    # Estrai URL
    # {file:"http://play.cdn05.fx.fastcontentdelivery.com/luq4cioffpixexzw6xz3fzmv3zbjgk56pb5tneq64flnfbes62mxpkhvv2za/normal.mp4"}
    video_urls = []
    media_urls = scrapertools.find_multiple_matches(match, '\{file\:"([^"]+)"')
    for media_url in media_urls:
        if not media_url.endswith("png"):
            video_urls.append(["." + media_url.rsplit('.', 1)[1] + " [flashx]", media_url])

    for video_url in video_urls:
        logger.info("streamondemand.servers.flashx %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 30
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.servers.gamovideo get_video_url(page_url='%s')" % page_url)

    data = scrapertools.cache_page(page_url)
    packer = scrapertools.find_single_match(data,"<script type='text/javascript'>(eval.function.p,a,c,k,e,d..*?)</script>")
    unpacker = jsunpack.unpack(data) if packer != "" else ""
    if unpacker != "": data = unpacker

    data = re.sub(r'\n|\t|\s+', '', data)

    host = scrapertools.get_match(data, '\[\{image:"(http://[^/]+/)')
    mediaurl = scrapertools.get_match(data, ',\{file:"([^"]+)"')
    if not mediaurl.startswith(host):
        mediaurl = host + mediaurl
   
    rtmp_url = scrapertools.get_match(data, 'file:"(rtmp[^"]+)"')
    playpath = scrapertools.get_match(rtmp_url, 'vod\?h=[\w]+/(.*$)')
    rtmp_url = rtmp_url.split(playpath)[0]+" playpath="+playpath+" swfUrl=http://gamovideo.com/player61/jwplayer.flash.swf"

    video_urls = []
    video_urls.append([scrapertools.get_filename_from_url(mediaurl)[-4:]+" [gamovideo]",mediaurl])
    video_urls.append(["RTMP [gamovideo]",rtmp_url])     

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.gamovideo %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 31
0
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("streamondemand.servers.flashx url=" + page_url)

    video_urls = []

    data = scrapertools.cache_page(page_url, headers=headers)

    page_url = scrapertools.find_single_match(data, 'href="([^"]+)')

    if page_url:
        data = scrapertools.cache_page(page_url, headers=headers)

    data = scrapertools.find_single_match(data, '(eval\(function.*?)</script>')

    if data:
        data = jsunpack.unpack(data)
        _headers = urllib.urlencode(dict(headers))

        # Extrae la URL
        media_urls = scrapertools.find_multiple_matches(data, 'file\s*:\s*"([^"]+)"')
        for media_url in media_urls:
            if not media_url.endswith("png"):
                video_urls.append([media_url[-4:] + " [flashx]", media_url + '|' + _headers])

        for video_url in video_urls:
            logger.info("streamondemand.servers.flashx %s - %s" % (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("pelisalacarta.gamovideo get_video_url(page_url='%s')" %
                page_url)
    if not "embed" in page_url:
        page_url = page_url.replace(
            "http://gamovideo.com/",
            "http://gamovideo.com/embed-") + "-640x360.html"

    data = scrapertools.cache_page(page_url)
    data = scrapertools.find_single_match(
        data, "<script type='text/javascript'>(.*?)</script>")
    data = jsunpack.unpack(data)

    host = scrapertools.get_match(data, 'image:"(http://[^/]+/)')
    flv_url = scrapertools.get_match(data, ',\{file:"([^"]+)"')
    rtmp_url = scrapertools.get_match(data, '\[\{file:"([^"]+)"')
    flv = host + flv_url.split("=")[1] + "/v.flv"

    video_urls = []
    video_urls.append(
        [scrapertools.get_filename_from_url(flv)[-4:] + " [gamovideo]", flv])
    #video_urls.append(["RTMP [gamovideo]",rtmp_url])

    for video_url in video_urls:
        logger.info("[gamovideo.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 33
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("hugefiles get_video_url(page_url='%s')" % page_url)
    video_urls = []
    
    data = scrapertools.cache_page( page_url )

    # Submit
    post = {}
    r = re.findall(r'type="hidden" name="(.+?)"\s* value="?(.+?)">', data)
    for name, value in r:
        post[name] = value
        post.update({'method_free':'Free Download'})
    data = scrapertools.cache_page( page_url, post=urllib.urlencode(post))

    # Get link
    sPattern = '''<div id="player_code">.*?<script type='text/javascript'>(eval.+?)</script>'''
    r = re.findall(sPattern, data, re.DOTALL|re.I)
    mediaurl = ""
    if r:
        sUnpacked = jsunpack.unpack(r[0])
        sUnpacked = sUnpacked.replace("\\'","")
        r = re.findall('file,(.+?)\)\;s1',sUnpacked)
        if not r:
           r = re.findall('"src"value="(.+?)"/><embed',sUnpacked)

        mediaurl = r[0]

    video_urls = []
    video_urls.append( [ scrapertools.get_filename_from_url(mediaurl)[-4:]+" [hugefiles]",mediaurl])

    for video_url in video_urls:
        logger.info("hugefiles %s - %s" % (video_url[0],video_url[1]))
    
    return video_urls
Ejemplo n.º 34
0
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("ay8ou8ohth get_video_url(page_url='%s')" % page_url)

    data = ''
    patron_new_url = '<iframe\s+src\s*=\s*"([^"]+)'

    while page_url != "":
        headers = [
            ['User-Agent', 'Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0'],
            ['Accept-Encoding', 'gzip, deflate'],
            ['Referer', page_url]
        ]
        data = scrapertools.cache_page(page_url, headers=headers)
        page_url = scrapertools.find_single_match(data, patron_new_url)
        page_url = re.sub("\n|\r|\t", "", page_url)

    media_url = scrapertools.find_single_match(data, 'file\s*:\s*"([^"]+)')
    if media_url == '':
        data = scrapertools.find_single_match(data, '(eval\(function.*?)</script>')
        data = jsunpack.unpack(data)
        media_url = scrapertools.find_single_match(data, 'file\s*:\s*"([^"]+)')
    video_urls = [[scrapertools.get_filename_from_url(media_url)[-4:] + " [ay8ou8ohth]", media_url + '|' + urllib.urlencode(dict(headers))]]

    for video_url in video_urls:
        logger.info("[ay8ou8ohth.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 35
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("streamondemand.servers.vidxtreme url=" + page_url)
    if not "embed" in page_url:
        page_url = page_url.replace("http://www.vidxtreme.to/",
                                    "http://www.vidxtreme.to/embed-") + ".html"

    data = scrapertools.cache_page(page_url)
    logger.info("data=" + data)

    data = scrapertools.find_single_match(
        data,
        "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    )
    logger.info("data=" + data)

    data = jsunpack.unpack(data)
    logger.info("data=" + data)

    media_urls = scrapertools.find_multiple_matches(
        data, '\{file\:"([^"]+)",label\:"([^"]+)"\}')
    video_urls = []
    for media_url, label in media_urls:
        video_urls.append([
            scrapertools.get_filename_from_url(media_url)[-4:] + " (" + label +
            ") [vidxtreme]", media_url
        ])

    return video_urls
Ejemplo n.º 36
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("deportesalacarta.servers.thevideos url=" + page_url)

    headers = [[
        'User-Agent',
        'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14'
    ]]
    data = scrapertools.cache_page(page_url, headers=headers)

    match = scrapertools.find_single_match(
        data, "<script type='text/javascript'>(.*?)</script>")
    if match.startswith("eval"):
        match = jsunpack.unpack(match)

    # Extrae la URL
    #{file:"http://95.211.81.229/kj2vy4rle46vtaw52bsj4ooof6meikcbmwimkrthrahbmy4re3eqg3buhoza/v.mp4",label:"240p"
    video_urls = []
    media_urls = scrapertools.find_multiple_matches(
        match, '\{file\:"([^"]+)",label:"([^"]+)"')
    for media_url, quality in media_urls:
        video_urls.append(
            [media_url[-4:] + " [thevideos] " + quality, media_url])

    for video_url in video_urls:
        logger.info("deportesalacarta.servers.thevideos %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 37
0
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("youwatch get_video_url(page_url='%s')" % page_url)

    data = ''
    patron_new_url = '<iframe[^>]*src="([^"]+/embed[^"]+)'

    while page_url != "":
        headers = [[
            'User-Agent',
            'Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0'
        ], ['Accept-Encoding', 'gzip, deflate'], ['Referer', page_url]]
        data = scrapertools.cache_page(page_url, headers=headers)
        page_url = scrapertools.find_single_match(data, patron_new_url)
        page_url = re.sub("\n|\r|\t", "", page_url)

    media_url = scrapertools.find_single_match(data, 'file\s*:\s*"([^"]+)')
    if media_url == '':
        data = scrapertools.find_single_match(data,
                                              '(eval\(function.*?)</script>')
        data = jsunpack.unpack(data)
        media_url = scrapertools.find_single_match(data, 'file\s*:\s*"([^"]+)')
    video_urls = [[
        scrapertools.get_filename_from_url(media_url)[-4:] + " [youwatch]",
        media_url
    ]]

    for video_url in video_urls:
        logger.info("[youwatch.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 38
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.servers.powvideo get_video_url(page_url='%s')" % page_url)

    url = page_url.replace("http://powvideo.net/","http://powvideo.net/iframe-") + "-640x360.html"     
    headers.append(['Referer',url.replace("iframe","embed")])
    
    data = scrapertools.cache_page(url, headers=headers)

    # Extrae la URL
    data = scrapertools.find_single_match(data,"<script type='text/javascript'>(.*?)</script>")
    data = jsunpack.unpack(data).replace("\\","")

    data = scrapertools.find_single_match(data,"sources\=\[([^\]]+)\]")
    logger.info("data="+data)

    matches = scrapertools.find_multiple_matches(data, "src:'([^']+)'")
    video_urls = []
    for video_url in matches:
        filename = scrapertools.get_filename_from_url(video_url)[-4:]
        if video_url.startswith("rtmp"):
            rtmp, playpath = video_url.split("vod/",1)
            video_url = "%s playpath=%s swfUrl=http://powvideo.net/player6/jwplayer.flash.swf pageUrl=%s" % (rtmp+"vod/", playpath, page_url)
            filename = "RTMP"
        elif "m3u8" in video_url:
            video_url += "|User-Agent="+headers[0][1]

        video_urls.append( [ filename + " [powvideo]", video_url])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.powvideo %s - %s" % (video_url[0],video_url[1]))

    return video_urls
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.powvideo get_video_url(page_url='%s')" % page_url)

    # Lo pide una vez
    if not "embed" in page_url:
      page_url = page_url.replace("http://powvideo.net/","http://powvideo.net/embed-") + "-640x360.html"
      
    headers = [['User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14'],['Referer',page_url]]
    page_url= page_url.replace("embed","iframe")
    
    data = scrapertools.cache_page( page_url , headers=headers )
    #logger.info("data="+data)
    
    #Quitado porque funciona mas rapido asi y no veo necesidad de esto:
    '''
    try:
        op = scrapertools.get_match(data,'<input type="hidden" name="op" value="(down[^"]+)"')
        usr_login = ""
        id = scrapertools.get_match(data,'<input type="hidden" name="id" value="([^"]+)"')
        fname = scrapertools.get_match(data,'<input type="hidden" name="fname" value="([^"]+)"')
        referer = scrapertools.get_match(data,'<input type="hidden" name="referer" value="([^"]*)"')
        hashvalue = scrapertools.get_match(data,'<input type="hidden" name="hash" value="([^"]*)"')
        submitbutton = scrapertools.get_match(data,'<input type="submit" name="imhuman" value="([^"]+)"').replace(" ","+")

        import time
        time.sleep(30)

        # Lo pide una segunda vez, como si hubieras hecho click en el banner
        #op=download1&usr_login=&id=auoxxtvyquoy&fname=Star.Trek.Into.Darkness.2013.HD.m720p.LAT.avi&referer=&hash=1624-83-46-1377796019-c2b422f91da55d12737567a14ea3dffe&imhuman=Continue+to+Video
        #op=search&usr_login=&id=auoxxtvyquoy&fname=Star.Trek.Into.Darkness.2013.HD.m720p.LAT.avi&referer=&hash=1624-83-46-1377796398-8020e5629f50ff2d7b7de99b55bdb177&imhuman=Continue+to+Video
        post = "op="+op+"&usr_login="******"&id="+id+"&fname="+fname+"&referer="+referer+"&hash="+hashvalue+"&imhuman="+submitbutton
        headers.append(["Referer",page_url])
        data = scrapertools.cache_page( page_url , post=post, headers=headers )
        #logger.info("data="+data)
    except:
        import traceback
        traceback.print_exc()
    '''
    # Extrae la URL
    data = scrapertools.find_single_match(data,"<script type='text/javascript'>(.*?)</script>")
    data = jsunpack.unpack(data)

    data = scrapertools.find_single_match(data,"sources\=\[([^\]]+)\]")
    data = data.replace("\\","")

    '''
    {image:image,tracks:tracks,file:'rtmp://5.39.70.113:19350/vod/mp4:01/00219/dw5tbqp6dr3i_n?h=m4ohputqpiikkfn2mda7ymaimgo5n34f7uvpizy5vkjn7ifqrv6y2y6n5y',description:'dw5tbqp6dr3i'},
    {image:image,tracks:tracks,file:'http://powvideo.net/m4ohputqpiikkfn2mda7ymaimgo5n34f7uvpizy5vkjn7ifqrv6y2y6n5y.m3u8',description:'dw5tbqp6dr3i'},{image:image,tracks:tracks,file:'http://5.39.70.113:8777/m4ohputqpiikkfn2mda7ymaimgo5n34f7uvpizy5vkjn7ifqrv6y2y6n5y/v.mp4',description:'dw5tbqp6dr3i'}
    '''
    patron = "file:'([^']+)'"
    matches = re.compile(patron,re.DOTALL).findall(data)
    video_urls = []
    for match in matches:
        video_urls.append( [ scrapertools.get_filename_from_url(match)[-4:]+" [powvideo]",match])

    for video_url in video_urls:
        logger.info("[powvideo.py] %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 40
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.streamplay get_video_url(page_url='%s')" % page_url)
    data = scrapertools.cache_page(page_url)

    jj_encode = scrapertools.find_single_match(data, "(\w+=~\[\];.*?\)\(\)\)\(\);)")
    jj_decode = None
    jj_patron = None
    reverse = False
    substring = False
    if jj_encode:
        jj_decode = jjdecode(jj_encode)
        logger.info(jj_decode)
    if jj_decode:
        jj_patron = scrapertools.find_single_match(jj_decode, "/([^/]+)/")
    if not "(" in jj_patron:
        jj_patron = "(" + jj_patron
    if not ")" in jj_patron:
        jj_patron += ")"

    if "x72x65x76x65x72x73x65" in jj_decode:
        reverse = True
    if "x73x75x62x73x74x72x69x6Ex67" in jj_decode:
        substring = True

    matches = scrapertools.find_single_match(data, "<script type=[\"']text/javascript[\"']>(eval.*?)</script>")
    matchjs = jsunpack.unpack(matches).replace("\\", "")

    data = scrapertools.find_single_match(matchjs, "sources\s*=[^\[]*\[([^\]]+)\]")
    matches = scrapertools.find_multiple_matches(data.replace('"', "'"), "[src|file]:'([^']+)'")

    video_urls = []
    for mediaurl in matches:
        _hash = scrapertools.find_single_match(mediaurl, '\w{40,}')
        if substring:
            substring = int(scrapertools.find_single_match(jj_decode, "_\w+.\d...(\d)...;"))
            if reverse:
                _hash = _hash[:-substring]
            else:
                _hash = _hash[substring:]
        if reverse:
            mediaurl = re.sub(r'\w{40,}', _hash[::-1], mediaurl)
        filename = scrapertools.get_filename_from_url(mediaurl)[-4:]
        if mediaurl.startswith("rtmp"):
            rtmp, playpath = mediaurl.split("vod/", 1)
            mediaurl = "%s playpath=%s swfUrl=%splayer6/jwplayer.flash.swf pageUrl=%s" % (rtmp + "vod/", playpath, host, page_url)
            filename = "RTMP"
        elif "m3u8" in mediaurl:
            mediaurl += "|User-Agent=" + headers[0][1]
        elif mediaurl.endswith("/v.mp4"):
            mediaurl_flv = re.sub(r'/v.mp4$', '/v.flv', mediaurl)
            video_urls.append(["flv [streamplay]", re.sub(r'%s' % jj_patron, r'\1', mediaurl_flv)])

        video_urls.append([filename + " [streamplay]", re.sub(r'%s' % jj_patron, r'\1', mediaurl)])

    video_urls.sort(key=lambda x:x[0], reverse=True)
    for video_url in video_urls:
        logger.info(" %s - %s" % (video_url[0], video_url[1]))

    return video_urls
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("[nosvideo.py] get_video_url(page_url='%s')" % page_url)
    video_urls = []

    # Lee la URL
    data = scrapertools.cache_page(page_url)
    bloque = scrapertools.get_match(data, '<Form method="POST"(.*)</.orm>')
    #logger.info("bloque="+bloque)
    op = scrapertools.get_match(
        bloque, '<input type="hidden" name="op" value="([^"]+)"')
    id = scrapertools.get_match(
        bloque, '<input type="hidden" name="id" value="([^"]+)"')
    rand = scrapertools.get_match(
        bloque, '<input type="hidden" name="rand" value="([^"]*)"')
    referer = scrapertools.get_match(
        bloque, '<input type="hidden" name="referer" value="([^"]*)"')
    usr_login = scrapertools.get_match(
        bloque, '<input type="hidden" name="usr_login" value="([^"]*)"')
    fname = scrapertools.get_match(
        bloque, '<input type="hidden" name="fname" value="([^"]+)"')
    method_free = scrapertools.get_match(
        bloque, '<input type="[^"]+" name="method_free" value="([^"]*)"')
    method_premium = scrapertools.get_match(
        bloque, '<input type="[^"]+" name="method_premium" value="([^"]*)"')

    # Simula el botón
    #op=download1&id=iij5rw25kh4c&rand=&referer=&usr_login=&fname=TED-TS-Screener.Castellano.Ro_dri.avi&method_free=&method_premium=&down_script=1&method_free=Continue+to+Video
    post = "op=" + op + "&id=" + id + "&rand=" + rand + "&referer=" + referer + "&usr_login="******"&fname=" + fname + "&method_free=&method_premium=" + method_premium + "&down_script=1&method_free=" + method_free
    data = scrapertools.cache_page(page_url, post=post)
    #logger.info("data="+data)

    # Saca el bloque packed y lo descifra
    packed = scrapertools.get_match(
        data,
        "(<script type='text/javascript'>eval\(function\(p,a,c,k,e,d\).*?</script>)"
    )
    from core import jsunpack
    unpacked = jsunpack.unpack(packed)
    logger.info("unpacked=" + unpacked)

    # Extrae el descriptor
    playlist = scrapertools.get_match(unpacked, "playlist\=(.*?\.xml)")
    data = scrapertools.cache_page(playlist)
    location = scrapertools.get_match(data, "<file>([^<]+)</file>")

    video_urls.append([
        scrapertools.get_filename_from_url(location)[-4:] + " [nosvideo]",
        location
    ])

    for video_url in video_urls:
        logger.info("[nosvideo.py] %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 42
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):

    logger.info("[vidxden.py] url="+page_url)

    # Lo pide una vez
    headers = []
    headers.append(['User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14'])
    data = scrapertools.cache_page( page_url , headers=headers )
    fname = scrapertools.get_match(data,'<input name="fname" type="hidden" value="([^"]+)">')
    codigo = scrapertools.get_match(page_url,'vidxden.com/(\w+)')

    # Lo pide una segunda vez, como si hubieras hecho click en el banner
    #op=download1&usr_login=&id=qtrv0ufkz3e4&fname=El_cazador_de_sue_os-dvd.avi&referer=&method_free=Continue+to+Video
    headers.append(['Referer',page_url])
    post = "op=download1&usr_login=&id="+codigo+"&fname="+fname+"&referer=&method_free=Continue+to+Video"
    data = scrapertools.cache_page( page_url , post=post, headers=headers )
    logger.info("data="+data)

    # Extrae el trozo cifrado
    #<div id="embedcontmvshre" style="position: absolute; top: 0; left: 0; visibility: hidden;"><script type='text/javascript'>eval(function(p,a,c,k,e,d){while(c--)if(k[c])p=p.replace(new RegExp('\\b'+c.toString(a)+'\\b','g'),k[c]);return p}('1i.1h(\'<8 10="1g"1f="1e:1d-1c-1b-1a-19"q="p"o="n"18="3://b.7.4/a/17.16"><2 1="u"0="t"/><2 1="s"0="r"/><2 1="m"0="3://i/l/6.k"/><2 1="f"0="5"><2 1="g"0="5"/><2 1="e"0="c"/><2 1="j"0="h"/><2 1="z"0="3://y.x.4:w/d/v/6"/><9 10="15"14="13/7"z="3://y.x.4:w/d/v/6"u="t"s="r"q="p"o="n"m="3://i/l/6.k"j="h"g="5"f="5"e="c"12="3://b.7.4/a/11/"></9></8>\');',36,55,'value|name|param|http|com|false|qtrv0ufkz3e4|divx|object|embed|plugin|go|Play||previewMessage|allowContextMenu|bannerEnabled|true||autoPlay|jpg|00249|previewImage|318|height|640|width|transparent|wmode|Stage6|custommode|opujxvaorizu2mdg6fst2fjdzlrn4p437h3lsbz5fjkxs|364|divxden|s31|src|id|download|pluginspage|video|type|np_vid|cab|DivXBrowserPlugin|codebase|CC0F21721616|9C46|41fa|D0AB|67DABFBF|clsid|classid|ie_vid|write|document'.split('|')))</script></div>
    patron = "(<script type='text/javascript'>eval\(function.*?</script>)"
    matches = re.compile(patron,re.DOTALL).findall(data)
    #scrapertools.printMatches(matches)
    data = ""
    if len(matches)>0:
        data = matches[0]
        logger.info("[vidxden.py] bloque packed="+data)
    else:
        logger.info("[vidxden.py] no encuentra bloque packed="+data)

        return ""
    
    # Lo descifra
    from core import jsunpack
    descifrado = jsunpack.unpack(data)

    # Extrae la URL del vídeo
    logger.info("descifrado="+descifrado)
    # Extrae la URL
    patron = '<param name="src"value="([^"]+)"/>'
    matches = re.compile(patron,re.DOTALL).findall(descifrado)
    scrapertools.printMatches(matches)
    if len(matches)==0:
        descifrado = descifrado.replace("\\","")
        patron = "file','([^']+)'"
        matches = re.compile(patron,re.DOTALL).findall(descifrado)
        scrapertools.printMatches(matches)
    
    video_urls = []

    if len(matches)>0:
        video_urls.append( ["[vidxden]",matches[0]+"|Referer="+urllib.quote(page_url)+"&User-Agent="+urllib.quote('Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14')])

    for video_url in video_urls:
        logger.info("[vidxden.py] %s - %s" % (video_url[0],video_url[1]))

    return video_urls
def get_video_url(page_url,
                  premium=False,
                  user="",
                  password="",
                  video_password=""):
    logger.info("streamondemand.servers.vidtome url=" + page_url)

    data = scrapertools.cache_page(page_url, headers=headers)
    # logger.info("data="+data)

    op = scrapertools.get_match(
        data, '<input type="hidden" name="op" value="([^"]+)"')
    usr_login = ""
    id = scrapertools.get_match(
        data, '<input type="hidden" name="id" value="([^"]+)"')
    fname = scrapertools.get_match(
        data, '<input type="hidden" name="fname" value="([^"]+)"')
    referer = scrapertools.get_match(
        data, '<input type="hidden" name="referer" value="([^"]*)"')
    hashstring = scrapertools.get_match(
        data, '<input type="hidden" name="hash" value="([^"]*)"')
    imhuman = scrapertools.get_match(
        data, '<input type="submit".*?name="imhuman" value="([^"]+)"').replace(
            " ", "+")

    import time
    time.sleep(10)

    post = "op=" + op + "&usr_login="******"&id=" + id + "&fname=" + fname + "&referer=" + referer + "&hash=" + hashstring + "&imhuman=" + imhuman
    headers.append(["Referer", page_url])
    body = scrapertools.cache_page(page_url, post=post, headers=headers)

    patron = "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>"
    data = scrapertools.find_single_match(body, patron)
    data = jsunpack.unpack(data)

    media_urls = re.findall(r'\{label:"([^"]+)",file:"([^"]+)"\}', data)
    video_urls = []
    for label, media_url in media_urls:
        video_urls.append([
            scrapertools.get_filename_from_url(media_url)[-4:] + " (" + label +
            ") [vidto.me]", media_url
        ])

    patron = '<a id="lnk_download" href="([^"]+)"'
    media_url = scrapertools.find_single_match(body, patron)
    if media_url != "":
        video_urls.append([
            scrapertools.get_filename_from_url(media_url)[-4:] +
            " (ORIGINAL) [vidto.me]", media_url
        ])

    for video_url in video_urls:
        logger.info("streamondemand.servers.vidtome %s - %s" %
                    (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 44
0
 def decodeVidag(link):
     html = Downloader.getContentFromUrl(link,"","","",False,True)
     try:
         encodedMp4File = Decoder.extract("<script type='text/javascript'>eval(function(p,a,c,k,e,d)","</script>",html)
     except:
         pass
     mp4File = jsunpack.unpack(encodedMp4File) #needs un-p,a,c,k,e,t|d
     mp4File = Decoder.extract(',{file:"','",',mp4File)
     return mp4File
Ejemplo n.º 45
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.powvideo get_video_url(page_url='%s')" % page_url)

    # Lo pide una vez
    headers = [['User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14']]
    data = scrapertools.cache_page( page_url , headers=headers )
    #logger.info("data="+data)
    
    try:
        '''
        <input type="hidden" name="op" value="download1">
        <input type="hidden" name="usr_login" value="">
        <input type="hidden" name="id" value="auoxxtvyquoy">
        <input type="hidden" name="fname" value="Star.Trek.Into.Darkness.2013.HD.m720p.LAT.avi">
        <input type="hidden" name="referer" value="">
        <input type="hidden" name="hash" value="1624-83-46-1377796069-b5e6b8f9759d080a3667adad637f00ac">
        <input type="submit" name="imhuman" value="Continue to Video" id="btn_download">
        '''
        op = scrapertools.get_match(data,'<input type="hidden" name="op" value="(down[^"]+)"')
        usr_login = ""
        id = scrapertools.get_match(data,'<input type="hidden" name="id" value="([^"]+)"')
        fname = scrapertools.get_match(data,'<input type="hidden" name="fname" value="([^"]+)"')
        referer = scrapertools.get_match(data,'<input type="hidden" name="referer" value="([^"]*)"')
        hashvalue = scrapertools.get_match(data,'<input type="hidden" name="hash" value="([^"]*)"')
        submitbutton = scrapertools.get_match(data,'<input type="submit" name="imhuman" value="([^"]+)"').replace(" ","+")

        import time
        time.sleep(5)

        # Lo pide una segunda vez, como si hubieras hecho click en el banner
        #op=download1&usr_login=&id=auoxxtvyquoy&fname=Star.Trek.Into.Darkness.2013.HD.m720p.LAT.avi&referer=&hash=1624-83-46-1377796019-c2b422f91da55d12737567a14ea3dffe&imhuman=Continue+to+Video
        #op=search&usr_login=&id=auoxxtvyquoy&fname=Star.Trek.Into.Darkness.2013.HD.m720p.LAT.avi&referer=&hash=1624-83-46-1377796398-8020e5629f50ff2d7b7de99b55bdb177&imhuman=Continue+to+Video
        post = "op="+op+"&usr_login="******"&id="+id+"&fname="+fname+"&referer="+referer+"&hash="+hashvalue+"&imhuman="+submitbutton
        headers.append(["Referer",page_url])
        data = scrapertools.cache_page( page_url , post=post, headers=headers )
        #logger.info("data="+data)
    except:
        import traceback
        traceback.print_exc()
    
    # Extrae la URL
    logger.info("data="+data)
    data = scrapertools.find_single_match(data,"<script type='text/javascript'>(.*?)</script>")
    logger.info("data="+data)
    data = jsunpack.unpack(data)
    logger.info("data="+data)
    data = data.replace("\\","")

    media_url = scrapertools.find_single_match(data,"file:'([^']+)'")
    video_urls = []
    video_urls.append( [ scrapertools.get_filename_from_url(media_url)[-4:]+" [powvideo]",media_url])

    for video_url in video_urls:
        logger.info("[powvideo.py] %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 46
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.servers.vidtome url="+page_url)

    # Lo pide una vez
    headers = [['User-Agent','Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14']]
    data = scrapertools.cache_page( page_url , headers=headers )
    #logger.info("data="+data)
    
    logger.info("pelisalacarta.servers.vidtome opcion 2")
    op = scrapertools.get_match(data,'<input type="hidden" name="op" value="([^"]+)"')
    logger.info("pelisalacarta.servers.vidtome op="+op)
    usr_login = ""
    id = scrapertools.get_match(data,'<input type="hidden" name="id" value="([^"]+)"')
    logger.info("pelisalacarta.servers.vidtome id="+id)
    fname = scrapertools.get_match(data,'<input type="hidden" name="fname" value="([^"]+)"')
    logger.info("pelisalacarta.servers.vidtome fname="+fname)
    referer = scrapertools.get_match(data,'<input type="hidden" name="referer" value="([^"]*)"')
    logger.info("pelisalacarta.servers.vidtome referer="+referer)
    hashstring = scrapertools.get_match(data,'<input type="hidden" name="hash" value="([^"]*)"')
    logger.info("pelisalacarta.servers.vidtome hashstring="+hashstring)
    imhuman = scrapertools.get_match(data,'<input type="submit".*?name="imhuman" value="([^"]+)"').replace(" ","+")
    logger.info("pelisalacarta.servers.vidtome imhuman="+imhuman)
        
    import time
    time.sleep(10)

    # Lo pide una segunda vez, como si hubieras hecho click en el banner
    #op=download1&usr_login=&id=z3nnqbspjyne&fname=Coriolanus_DVDrip_Castellano_by_ARKONADA.avi&referer=&hash=nmnt74bh4dihf4zzkxfmw3ztykyfxb24&imhuman=Continue+to+Video
    #op=download1&usr_login=&id=h6gjvhiuqfsq&fname=GENES1S.avi&referer=&hash=taee4nbdgbuwuxfguju3t6nq2gkdzs6k&imhuman=Proceed+to+video
    post = "op="+op+"&usr_login="******"&id="+id+"&fname="+fname+"&referer="+referer+"&hash="+hashstring+"&imhuman="+imhuman
    headers.append(["Referer",page_url])
    body = scrapertools.cache_page( page_url , post=post, headers=headers )
    logger.info("body="+body)

    data = scrapertools.find_single_match(body,"<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>")
    logger.info("data="+data)
    data = jsunpack.unpack(data)
    logger.info("data="+data)

    # Extrae la URL
    #{label:"240p",file:"http://188.240.220.186/drjhpzy4lqqwws4phv3twywfxej5nwmi4nhxlriivuopt2pul3o4bkge5hxa/video.mp4"}
    video_urls = []
    media_urls = scrapertools.find_multiple_matches(data,'\{label\:"([^"]+)",file\:"([^"]+)"\}')
    video_urls = []
    for label,media_url in media_urls:
        video_urls.append( [ scrapertools.get_filename_from_url(media_url)[-4:]+" ("+label+") [vidto.me]",media_url])

    #<a id="lnk_download" href="http://188.240.220.186/drjhpzy4lqqwws4phv3twywfxej5nwmi4nhxlriivuopt2pul3oyvkoe5hxa/INT3NS4HDTS-L4T.mkv">
    media_url = scrapertools.find_single_match(body,'<a id="lnk_download" href="([^"]+)"')
    if media_url!="":
        video_urls.append( [ scrapertools.get_filename_from_url(media_url)[-4:]+" (ORIGINAL) [vidto.me]",media_url])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.vidtome %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 47
0
 def decodeFlashx(link):
     html = Decoder.getFinalHtmlFromLink(link) #has common attributes in form with streamcloud and others
     try:
         encodedMp4File = Decoder.extract("<script type='text/javascript'>eval(function(p,a,c,k,e,d)","</script>",html)
     except:
         pass
         #print html
     mp4File = jsunpack.unpack(encodedMp4File) #needs un-p,a,c,k,e,t|d
     mp4File = Decoder.extractWithRegex("http://play.",".mp4",mp4File)
     return mp4File
Ejemplo n.º 48
0
def play(item):
    logger.info("[cb01anime.py] play")

    if '/goto/' in item.url:
        item.url = scrapertools.get_header_from_response(item.url, headers=headers, header_to_get="Location")

    item.url = item.url.replace('http://cineblog01.pw', 'http://k4pp4.pw')

    logger.debug("##############################################################")
    if "go.php" in item.url:
        data = scrapertools.anti_cloudflare(item.url, headers)
        try:
            data = scrapertools.get_match(data, 'window.location.href = "([^"]+)";')
        except IndexError:
            try:
                # data = scrapertools.get_match(data, r'<a href="([^"]+)">clicca qui</a>')
                # In alternativa, dato che a volte compare "Clicca qui per proseguire":
                data = scrapertools.get_match(data, r'<a href="([^"]+)".*?class="btn-wrapper">.*?licca.*?</a>')
            except IndexError:
                data = scrapertools.get_header_from_response(item.url, headers=headers, header_to_get="Location")
        if 'vcrypt' in data:
            data = scrapertools.get_header_from_response(data, headers=headers, header_to_get="Location")
        logger.debug("##### play go.php data ##\n%s\n##" % data)
    elif "/link/" in item.url:
        data = scrapertools.anti_cloudflare(item.url, headers)
        from core import jsunpack

        try:
            data = scrapertools.get_match(data, "(eval\(function\(p,a,c,k,e,d.*?)</script>")
            data = jsunpack.unpack(data)
            logger.debug("##### play /link/ unpack ##\n%s\n##" % data)
        except IndexError:
            logger.debug("##### The content is yet unpacked")

        data = scrapertools.get_match(data, 'var link(?:\s)?=(?:\s)?"([^"]+)";')
        if 'vcrypt' in data:
            data = scrapertools.get_header_from_response(data, headers=headers, header_to_get="Location")
        logger.debug("##### play /link/ data ##\n%s\n##" % data)
    else:
        data = item.url
        logger.debug("##### play else data ##\n%s\n##" % data)
    logger.debug("##############################################################")

    itemlist = servertools.find_video_items(data=data)

    for videoitem in itemlist:
        videoitem.title = item.show
        videoitem.fulltitle = item.fulltitle
        videoitem.show = item.show
        videoitem.thumbnail = item.thumbnail
        videoitem.channel = __channel__

    return itemlist
Ejemplo n.º 49
0
 def decodePowvideo(link):
     html = Decoder.getFinalHtmlFromLink(link) #has common attributes in form with streamcloud and others
     try:
         encodedMp4File = Decoder.extract("<script type='text/javascript'>eval(function(p,a,c,k,e,d)","</script>",html)
     except:
         pass
         #print html
     mp4File = jsunpack.unpack(encodedMp4File) #needs un-p,a,c,k,e,t|d
     mp4File = Decoder.rExtractWithRegex("http://",".mp4",mp4File)
     mp4File = mp4File.replace("\\","")
     logger.info('found mp4: '+mp4File)
     return mp4File
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("streamondemand.streamplay get_video_url(page_url='%s')" % page_url)
    data = scrapertools.cache_page(page_url)

    matches = scrapertools.find_single_match(data, "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>")
    matchjs = jsunpack.unpack(matches).replace("\\","")

    mediaurl = scrapertools.find_single_match(matchjs, ',file:"(http://[^"]+)"')
    video_urls = []
    video_urls.append( [ scrapertools.get_filename_from_url(mediaurl)[-4:]+" [streamplay]", mediaurl])

    for video_url in video_urls:
        logger.info("[streamplay.py] %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 51
0
    def decodeGamovideo(link):
        html = Decoder.getContent(link,'').read()
        try:
            encodedMp4File = Decoder.extract("<script type='text/javascript'>eval(function(p,a,c,k,e,d)","</script>",html)
        except:
            pass
            #print html
        mp4File = jsunpack.unpack(encodedMp4File) #needs un-p,a,c,k,e,t|d
        ip = Decoder.extract("http://",'/',mp4File)
        #port = Decoder.extract(":","/",ip)
        #ip = ip[0:ip.find("/")]
        code = Decoder.extract("mp4?h=",'"',mp4File)
        link = "http://"+ip+"/"+code+"/v.mp4"

        return link
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("[video4you.py] url="+page_url)

    data = scrapertools.cache_page( page_url )
    unpacked = jsunpack.unpack(data)
    logger.info("unpacked="+unpacked)
    media_url = scrapertools.get_match(unpacked,'file\:"([^"]+)"')

    video_urls = []
    video_urls.append( [ scrapertools.get_filename_from_url(media_url)[-4:]+" [video4you]",media_url])

    for video_url in video_urls:
        logger.info("[streamcloud.py] %s - %s" % (video_url[0],video_url[1]))

    return video_urls
Ejemplo n.º 53
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.servers.allvid url="+page_url)
    
    data = scrapertools.cache_page( page_url )
    matches = scrapertools.find_single_match(data, "<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>")
    matchjs = jsunpack.unpack(matches).replace("\\","")

    video_urls = []
    media_urls = scrapertools.find_multiple_matches(matchjs,'\{file:"([^"]+)",label:"([^"]+)"\}')
    for media_url, label in media_urls:
        video_urls.append( [ scrapertools.get_filename_from_url(media_url)[-4:]+" ("+label+") [allvid]",media_url])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.allvid %s - %s" % (video_url[0],video_url[1]))

    return video_urls
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("streamondemand.servers.videowood url=" + page_url)
    video_urls = []

    data = scrapertools.cache_page(page_url)
    data = scrapertools.find_single_match(data, "(eval.function.p,a,c,k,e,.*?)\s*</script>")
    data = jsunpack.unpack(data).replace("\\","")

    # URL del vídeo
    pattern = r'"file"\s*:\s*"([^"]+/video/[^"]+)'
    match = re.search(pattern, data, re.DOTALL)

    url = match.group(1)
    video_urls.append([url[-4:] + " [Videowood]", url])

    return video_urls
Ejemplo n.º 55
0
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
    logger.info("pelisalacarta.servers.videomega get_video_url(page_url='%s')" % page_url)

    data = scrapertools.cache_page(page_url)
    video_urls = []

    patron = r"(eval.function.p,a,c,k,e,.*?)\s*</script>"
    data = scrapertools.find_single_match(data, patron)
    if data != '':
        data = jsunpack.unpack(data)
        location = scrapertools.find_single_match(data, r'"src"\s*,\s*"([^"]+)')
        video_urls.append([scrapertools.get_filename_from_url(location)[-4:] + " [videomega]", location])

    for video_url in video_urls:
        logger.info("pelisalacarta.servers.videomega %s - %s" % (video_url[0], video_url[1]))

    return video_urls
Ejemplo n.º 56
0
def get_video_url( page_url , premium = False , user="" , password="", video_password="" ):
    logger.info("pelisalacarta.servers.rocvideo url="+page_url)
    if not "embed" in page_url:
        page_url = page_url.replace("http://rocvideo.tv/","http://rocvideo.tv/embed-") + ".html"

    data = scrapertools.cache_page( page_url )

    data = scrapertools.find_single_match(data,"<script type='text/javascript'>(eval\(function\(p,a,c,k,e,d.*?)</script>")
    data = jsunpack.unpack(data)
    logger.info("data="+data)

    #file:"http://s1.rocvideo.tv/files/2/aqsk8q5mjcoh1d/INT3NS4HDTS-L4T.mkv.mp4
    media_url = scrapertools.get_match(data,'file:"([^"]+)"')
    video_urls = []
    video_urls.append( [ scrapertools.get_filename_from_url(media_url)[-4:]+" [rocvideo]",media_url])

    return video_urls