예제 #1
0
파일: ddizi.py 프로젝트: kadztr/ddizi
def main():
        araclar.addDir(fileName,'Yeniler','yeni(web)',web,"")
        div_list=["Yerli Diziler","Eski Diziler","Tv Showlar","Yabanci Diziler"]
        for x in range(0,4):
                name=div_list[x]
                url=str(x)
                araclar.addDir(fileName,name,"panel(url)",url,"YOK")
예제 #2
0
파일: ddizi.py 프로젝트: kadztr/ddizi
def panel(url):
        link=araclar.get_url(web)
        soup=BS(link.decode('utf-8','ignore'))
        div = soup.findAll("div",{"class":"blok-liste"})
        for li in div[int(url)].findAll('li'):#-------------dizi anasayfalari bulur
                url= li.a['href']
                name = li.a.text
                name=name.encode("utf-8")
                araclar.addDir(fileName,name,"kategoriler(url)",url,"YOK") 
예제 #3
0
파일: ddizi.py 프로젝트: kadztr/ddizi
def kategoriler(url):                    
        data=araclar.get_url(url)
        match=re.compile('<div class="dizi-box2"><a title="(.*?)" href="(.*?)"><img src="(.*?)"').findall(data)#-----dizi bolumleri bulur
        for name,url,thumbnail in match:
                if not thumbnail:
                     thumbnail="yok"   
                araclar.addDir(fileName,name,"resolver(name,url)",url,thumbnail)
                
        veri=data.strip(' \t\n\r').replace(" ","")
        page=re.compile('class="active"><ahref=".*?">.*?</a></li>\r\n<li><ahref="(.*?)"').findall(veri)# ----- sonraki sayfa
        if page:
                try:
                        url=page[0]
                        araclar.addDir(fileName,'Sonraki Sayfa',kategoriler(url),url,"next")
                except:
                        pass
예제 #4
0
파일: cozucu.py 프로젝트: noba3/KoTos
def ok_ru(url):
        fileName ="cozucu"


        sources = []

        if(re.search(r'ok.ru', url)):
            
               # try:
            id = re.search('\d+', url).group(0)
            jsonUrl = 'http://ok.ru/dk?cmd=videoPlayerMetadata&mid=' + id
            jsonSource = json.loads(http_req(jsonUrl))
            
            for source in jsonSource['videos']:
                    name = '%s %s' % ('', source['name'])
                    link = '%s|User-Agent=%s&Accept=%s&Referer=%s' % (source['url'], USER_AGENT, ACCEPT, urllib.quote_plus(url))
                    #item = {'name': name, 'url': link}
                    #sources.append(item)
                    url = link
                    print url
                    araclar.addDir(fileName,'[COLOR beige][B][COLOR blue]>>[/COLOR]'+name+'[/B][/COLOR]', "yeni4(name,url)",url,"")
예제 #5
0
def ok_ru(url):
    fileName = "cozucu"

    sources = []

    if (re.search(r'ok.ru', url)):

        # try:
        id = re.search('\d+', url).group(0)
        jsonUrl = 'http://ok.ru/dk?cmd=videoPlayerMetadata&mid=' + id
        jsonSource = json.loads(http_req(jsonUrl))

        for source in jsonSource['videos']:
            name = '%s %s' % ('', source['name'])
            link = '%s|User-Agent=%s&Accept=%s&Referer=%s' % (
                source['url'], USER_AGENT, ACCEPT, urllib.quote_plus(url))
            #item = {'name': name, 'url': link}
            #sources.append(item)
            url = link
            print url
            araclar.addDir(
                fileName, '[COLOR beige][B][COLOR blue]>>[/COLOR]' + name +
                '[/B][/COLOR]', "yeni4(name,url)", url, "")
예제 #6
0
파일: ddizi.py 프로젝트: kadztr/ddizi
def yeni(url):
        link=araclar.get_url(url)
        match=re.compile('<div class="dizi-box"><a href="(.*?)"><img src="(.*?)" width="120" height="90" alt="(.*?)"').findall(link)
        for url,thumbnail,name in match:
                araclar.addDir(fileName,name,"resolver(name,url)",url,thumbnail)