예제 #1
0
파일: page.py 프로젝트: JiasHuang/vod
def listURL_dodova(req, url):
    if re.search(r'imovie.dodova.com/category/', url):
        for i in range(1, 3):
            for m in re.finditer(r'<div class="mh-excerpt">([^<]*)<a href="([^"]*)" title="([^"]*)">', load(url+'/page/'+str(i))):
                link, title = m.group(2), m.group(3)
                addPage(req, link, title, None)
    elif re.search(r'imovie.dodova.com/', url):
        meta.findFrame(req, url)
        for m in re.finditer(r'<a href="([^"]*)" title="openload" target="_blank">', load(url)):
            meta.findLink(req, m.group(1).replace('&#038;', '&'))
    elif re.search(r'video.imovie.dodova.com/', url):
        meta.findLink(req, url)
예제 #2
0
파일: page.py 프로젝트: JiasHuang/vod
def listURL_dramaq(req, url):
    if re.search(r'php', url):
        meta.findFrame(req, url)
    elif re.search(r'(biz|jp/|us/|cn/)$', url):
        meta.findPage(req, url)
        for m in re.finditer(r'<a class="mod-articles-category-title " href="([^"]*)">([^"]*)</a>', load(url)):
            if m.group(1)[-1] == '/':
                addPage(req, 'http://www.dramaq.biz'+m.group(1), m.group(2))
    else:
        for m in re.finditer(r'<li class="item-751"><a href="([^.]*).php"', load(url)):
            if re.search(r'ep', m.group(1)):
                link, title = url+m.group(1)+'.php', m.group(1)
                addPage(req, link, title)