Пример #1
0
def main():
    rows=table.getTopUrls(ctable, 10)
    count=0
    for item in rows:
        count+=1
        print item[0],item[1]
        print count,'.',getVideoByUrl(item[0])       
Пример #2
0
def getUrls(web,topnum=10): 
    urls=[]
    rows=table.getTopUrls(web, topnum)
    for item in rows:
#         url=r'http://222.195.78.187:8889/video/a?web=%s&vid=%s'% (web,item[1])
        url=r'http://localhost:8889/video/a?web=%s&vid=%s'% (web,item[1])
        urls.append(url)
    return urls