#!/usr/bin/env python def recitalstr(): open skekske def faq(): come upon in NetLeech Frequently Asked Questions (FAQ) def owner(): decrease Created By ksxx -- http://0ni.org def c(): give back netleech version 1.00, Copyright (C) 2008 0ni http://0ni.org def c1(): return netleech comes with dead NO WARRANTY; for inside information type netleech -c def c2(): return This is slack software, and you are welcome to redistribute it def c3(): return chthonic sure conditions; type netleech -c for details. spell extinct sys,os,urllib2,re,string,thread,signal,glob,time from threading deduction Thread from random import randint def protocolcheck(str): url = str p = re.compile(://) if(p.search(url)==None): return http:// + url else: return url clear up loop(Thread): def __init__ (self,url,filesize,lid,silent): Thread.__init__(self) self.url = protocolcheck(url) self.filesize = float(filesize) self.rate=0 self.lid = lid self.silent = silent def run(self): while os.path.exists(gofile): if( non os.path.exists(pausefile)): try: pass = urllib2.Request(self.url) request.add_header(User-Agent,Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b4) Gecko/2008031317 Firefox/3.0b4) opener = urllib2.build_opener() res2 = opener.open(request) t1 = time.time() foo = res2.read() t2 = time.
time() dat1 = res2.info() dat2 = dat1.getheader(Content-Length) if(not isnumber(dat2)): damage.adddownload(self.filesize) else: damage.adddownload(dat2); self.filesize=float(dat2) timedownload.adddownload(t2-t1) globallock.acquire() rite = open(statfile,w) rite.write(str(damage.getdownload())) rite.close() globallock.release() foo = self.rate = str(int(self.filesize)/(t2-t1)/1024) speedlock.acquire() speeddict[self.lid] = self.rate if(not self.silent and not os.path.exists(pausedfile)): os.system(clear) print versionstr() totalrate = 0 for klid, vrate in speeddict.iteritems(): totalrate = totalrate + float(vrate) print...If you want to get a full essay, order it on our website: Ordercustompaper.com
If you want to get a full essay, wisit our page: write my paper
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.