Example #1
0
def main():
    print 'Logging in'
    details=c.logmein()
    email = details[0]
    password = details[1]
    
    mega = Mega({'verbose': True})
    m = mega.login(email, password)    
    
    os.chdir("./multiple_upload")
    files = [x for x in os.listdir('.')]
    print 'Found: '
    files.sort()
    print files
    
    realfiles = rename(files)
    print realfiles
    seed = sys.argv[1]

    rars = rarme(realfiles,seed)

    links = upload(realfiles,rars,m)
    
    write_to_file(realfiles,rars,links)
    print 'Done'
Example #2
0
def main():
    print "Logging in"
    details = c.logmein()
    email = details[0]
    password = details[1]

    mega = Mega({"verbose": True})
    m = mega.login(email, password)

    os.chdir("./big_upload")
    files = [x for x in os.listdir(".")]
    print "Found: "
    files.sort()
    print files

    #    realfiles = rename(files)
    #    print realfiles
    seed = sys.argv[1]

    #    rars = rarme(realfiles,seed)

    links = upload(files, m)

    write_to_file(files, links)
    print "Done"
Example #3
0
def upload_single(filename):
    #Account info
    details=c.logmein()
    email = details[0]
    password = details[1]
    
    #Make new mega
    
    mega = Mega()
    m = mega.login(email, password)
    print 'Uploading: ' + filename
    uploaded = m.upload(filename)
    print 'Uploaded, public link: '
    print m.get_upload_link(uploaded)
Example #4
0
def main():
    details  = c.logmein()
    email    = details[0]
    password = details[1]
    links    = m.getlinks()
    print links
    print details
    pp=[]
    for url in links :
        pp.append(Process(target=m.download_single, args=(email,password,url)))
    for k in pp :
        k.start()
    for j in pp :
        k.join()
Example #5
0
def main():
    details=c.logmein()
    email = details[0]
    password = details[1]

    m.download_single(email,password,sys.argv[1])
Example #6
-1
def main():
    print 'Getting websites'
    web=w.sites()
    print 'Logging in to MEGA'
    details=c.logmein()
    email = details[0]
    password = details[1]
    mega = Mega({'verbose': True})
    m = mega.login(email, password)    
    ##################################
    print 'Getting file list'
    os.chdir("./multiple_upload")
    files = [x for x in os.listdir('.')]
    print 'Found: '
    files.sort()
    print files    
    realfiles = rename(files)
    print realfiles
    seed = sys.argv[2]
    print 'RARing'
    rars = rarme(realfiles,seed)
    print 'Uploading to MEGA'
    links = upload(realfiles,rars)
    write_to_file(realfiles,rars,links)
    print 'MEGA upload complete'
    #################################
    print 'Scraping Bibliotik'
    site=sys.argv[1]
    bibdata=bibliotik(w[0],site,details[4],details[5])
    ################################
    print 'Filling SIG'
    SIG(bibdata,links[0],details[2],details[3],web[1])