コード例 #1
0
ファイル: movshare.py プロジェクト: bembelbruder/bembelrepo
    def getVideoUrl(self, url):
        link = help_fns.openUrl(url)

        cid = re.compile('cid="([^"]*)"').findall(link)[0]
        cid2 = "undefined"
        cid3 = "bs.to"
        key = re.compile('key="([^"]*)"').findall(link)[0]
        myfile = re.compile('file="([^"]*)"').findall(link)[0]

        data = {
            "cid": cid,
            "cid2": cid2,
            "cid3": cid3,
            "file": myfile,
            "filekey": key,
            "numOfErrors": "0",
            "pass": "******",
            "user": "******"
        }
        data = urllib.urlencode(data)
        link = help_fns.openUrl("http://www.movshare.net/api/player.api.php?" +
                                data)
        print link
        match = help_fns.findAtUrl(
            "url=([^&]*)",
            "http://www.movshare.net/api/player.api.php?" + data)
        print match
        return match[0]
コード例 #2
0
    def getContent(self):
        res = []
        help_fns.openUrl("http://bs.to")
        match = help_fns.findAtUrl(self.regexSerien,
                                   "https://bs.to/serie-alphabet")
        for m in match:
            x = m.groupdict()
            newSerie = Serie()
            newSerie.name = x['name']
            newSerie.url = x['url']
            res.append(newSerie)

        return res
コード例 #3
0
ファイル: sockshare.py プロジェクト: bembelbruder/bembelrepo
def getVideoUrl(url):
    print url
    match = help_fns.findAtUrl(regexHash, url)

    data = {'hash': match[0], 'confirm': "Continue as Free User"}
    data = urllib.urlencode(data)

    match = help_fns.findAtUrlWithData(regexPlaylist, url, data)
    getFileUrl = "http://www.sockshare.com" + match[0]
    print getFileUrl
    print help_fns.openUrl(getFileUrl)
    videoUrl = help_fns.findAtUrl(regexData, getFileUrl)[0]

    return videoUrl.replace("&", "&")
コード例 #4
0
ファイル: filenuke.py プロジェクト: bembelbruder/bembelrepo
def getVideoUrl(url):
    data = {'method_free': 'Free'}
    data = urllib.urlencode(data)

    match = help_fns.findAtUrlWithData("var lnk1 = '([^']*)'", url, data)

    scriptMatch = help_fns.findAtUrlWithData(
        '"([^"]*\\.(jpg|png|css|js|css\\?v=1))"', url, data)
    for sm in scriptMatch:
        print sm[0]
        help_fns.openUrl("http://filenuke.com" + sm[0])

    print match[0]
    return match[0]
コード例 #5
0
ファイル: rapidvideo.py プロジェクト: bembelbruder/bembelrepo
    def getVideoUrl(self, url):
        print url
        link = help_fns.openUrl(url)
        match = re.compile('src="([^"]*)" type=').findall(link)

        print match[0]
        return match[0]
コード例 #6
0
ファイル: BaseSite.py プロジェクト: bembelbruder/bembelrepo
    def showHoster(self, url, hosterName, displayName):
        link = help_fns.openUrl(url)

        parts = self.getParts(link, hosterName, displayName)
        if len(parts) < 2:
            self.showVideoByLink(link, hosterName, displayName)
        else:
            self.dataProvider.printResult(parts)
コード例 #7
0
ファイル: shared.py プロジェクト: bembelbruder/bembelrepo
    def getVideoUrl(self, url):
        link = help_fns.openUrl(url)
        myhash = self.__getFormProperty(link, "hash")
        expires = self.__getFormProperty(link, "expires")
        timestamp = self.__getFormProperty(link, "timestamp")

        data = {"hash": myhash, "expires": expires, "timestamp": timestamp}
        data = urllib.urlencode(data)

        return help_fns.findAtUrlWithData('data-url="([^"]*)', url, data)[0]
コード例 #8
0
ファイル: movie4k.py プロジェクト: bembelbruder/bembelrepo
    def getHostsByFilm(self, pUrl):
        link = help_fns.openUrl(pUrl)
        match = re.compile(
            '&nbsp;(.*)</a></td>.*<a href=\\\\"(.*)\\\\">Quality.*smileys/(\d)'
        ).findall(link)
        res = []
        for m in match:
            res.append({"urlVideo": m[1], "hoster": m[0], "quality": m[2]})

        return res
コード例 #9
0
    def getVideoUrl(self, url):
        link = help_fns.openUrl(url)

        cid = re.compile('cid="([^"]*)"').findall(link)[0]
        key = re.compile('key="([^"]*)"').findall(link)[0]
        myfile = re.compile('file="([^"]*)"').findall(link)[0]

        data = {"cid": cid, "file": myfile, "key": key}
        data = urllib.urlencode(data)

        match = help_fns.findAtUrl(
            "url=([^&]*)",
            "http://www.videoweed.es/api/player.api.php?" + data)

        return match[0]
コード例 #10
0
    def getVideoUrl(self, pUrl):
        mediaId = re.compile(".*/(.*)\.html").findall(pUrl)[0]
        pUrl = "http://vidto.me/embed-" + mediaId + ".html"

        link = help_fns.openUrl(pUrl)
        jsData = jsunpack.unpack(link)

        max_label = 0
        stream_url = ''
        for match in re.finditer('label:\s*"(\d+)p"\s*,\s*file:\s*"([^"]+)',
                                 jsData):
            label, link = match.groups()
            if int(label) > max_label:
                stream_url = link
                max_label = int(label)

        return stream_url
コード例 #11
0
 def getVideoUrl(self, url):
     link = help_fns.openUrl(url)
     op = self.getName(link, 'op')
     usr_login = self.getName(link, 'usr_login')
     myid = self.getName(link, 'id')
     fname = self.getName(link, 'fname')
     referer = self.getName(link, 'referer')
     myhash = self.getName(link, 'hash')
     
     data = {'op': op,
             'usr_login': usr_login,
             'id': myid,
             'fname': fname,
             'referer': referer,
             'hash': myhash}
     print data
     data = urllib.urlencode(data)
     time.sleep(6)
     
     return help_fns.findAtUrlWithData('file:"([^"]*)"', url, data)[0]
コード例 #12
0
 def getInnerUrlByUrl(self, url):
     link = help_fns.openUrl(url)
     return self.getInnerUrlByLink(link)
コード例 #13
0
 def getVideoUrl(self, url):
     link = help_fns.openUrl(url)
     
     return link
コード例 #14
0
#             h.getVideoUrl()
#             hosterCollector.addHoster(h.name, h.url, 1)
#         except FileNotExistsException:
#             hosterCollector.addHoster(h.name, h.url, 2)
#         except:
#             hosterCollector.addHoster(h.name, h.url, 3)
#
#     for h in f.getUnknowHoster():
#         hosterCollector.addHoster(h.name, h.url, 4)
# sendMail(hosterCollector.getText())
provider = TestDataProvider()
fp = Cine(provider)
fp.searchFilm()
data = (('ID', '3702996'), ('lang', 'de'))
data = urllib.urlencode(data)
print help_fns.openUrl("http://cine.to/out/85749")
#fp.showHoster("http://kinox.to/aGET/Mirror/Exodus-1&Hoster=30&Mirror=1", "StreamCloud.eu", "Godzilla")
#fp.showPart("http://www.ecostream.tv/stream/50cb20989bd2ad5cca9a540b1f21cb1b.html", "Ecostream", "Godzilla")
#fp.showVideoByUrl('http://www.ecostream.tv/stream/c56825c124058745f3b36cc0212c0e27.html', "Ecostream", "Godzilla")

# links = ["http://streamcloud.eu/yyq7hpmuhxia/Bibi_und_Tina_-_S01E02_-_Sabrinas_Fohlen.avi.html",
# "http://streamcloud.eu/r3p5z97c59fj/Bibi_und_Tina_-_S01E03_-_Die_Wildpferde.mp4.mp4.html",
# "http://streamcloud.eu/gj3k32ycftzl/Bibi_und_Tina_-_S01E04_-_Der_verhexte_Sattel.avi.html",
# "http://streamcloud.eu/5x4rzz01mlw6/Bibi_und_Tina_-_S01E05_-_Der_Liebesbrief.avi.html",
# "http://streamcloud.eu/l8yc119sckvs/Bibi_und_Tina_-_S01E06_-_Alex_und_das_Internat.avi.html",
# "http://streamcloud.eu/okpnjlx6ssyx/Bibi_und_Tina_-_S02E01_-_Das_Gespensterpferd.avi.html",
# "http://streamcloud.eu/hfbccduvofrf/Bibi_und_Tina_-_S02E02_-_Tina_in_Gefahr.avi.html",
# "http://streamcloud.eu/h7w1s5yjacwj/Bibi_und_Tina_-_S02E03_-_Die_Pferde_sind_krank.avi.html",
# "http://streamcloud.eu/8qnrc9ps0yeu/Bibi_und_Tina_-_S02E04_-_Papi_lernt_reiten.avi.html",
# "http://streamcloud.eu/j8btkc1svcbq/Bibi_und_Tina_-_S02E05_-_Ein_Pony_zum_Knuddeln.avi.html",
# "http://streamcloud.eu/t9a8xcti9opg/Bibi_und_Tina_-_S02E06_-_Der_Hufschmied.avi.html",