print 'root over' rmdown = getrmdown(imghtml) torrenturl = rmdown[0] torrenturl = torrenturl[5:-4] torrenturl = 'http://www.xunfs.com/down.php?fc='+torrenturl f = open(mkpath+'page.txt', 'w') f.write(url+'\n'+torrenturl) f.close() clr.print_green_text('url saved ') print getImg(imghtml) url_xunfs = torrenturl#种子下载页地址 html = getUrlRespHtml(url_xunfs) result = getref(html) ref = result[0] ref = ref[7:-1] reff = result[1] reff = reff[7:-1] url_download = "http://www.xunfs.com/download.php" values = { 'ref' : ref,