def f4ckDir(site,sdir,smode): try: filename = site.replace ("http://","").replace ("/","") ldir = "/".join(sdir.split("/")[0:-2]) logging_file=logging(ldir+"/log/"+filename+".txt") except Exception,e: print e pass
def f4ckDir(site,sdir,smode,sproxy = None, sscript = None): if sproxy: connet_proxy = myproxy(sproxy) if not connet_proxy: printError("proxy Error!!") sys.exit(1) try: filename = site.replace ("http://","").replace ("/","") ldir = "/".join(sdir.split("/")[0:-2]) logging_file=logging(ldir+"/log/"+filename+".txt") except Exception,e: print e pass