diff --git a/web_scrap.py b/web_scrap.py index 2465d90..d11f7f3 100644 --- a/web_scrap.py +++ b/web_scrap.py @@ -165,11 +165,11 @@ if __name__ == '__main__': url = o.geturl().replace(":///", "://") if args.js is False: script = getScriptCss(url, True, False, logger) - downloadPage(script, "{0}/{1}".format(args.dir, "dists/js"), logger) + downloadPage(script, "{0}/{1}/{2}".format(args.dir, o.path, "dists/js"), logger) if args.css is False: css = getScriptCss(url, False, True, logger) - downloadPage(css, "{0}/{1}".format(args.dir, "dists/css"), logger) + downloadPage(css, "{0}/{1}/{2}".format(args.dir, o.path, "dists/css"), logger) if args.html is False or args.img is False: webpage = getUrlPage(url, logger) @@ -178,6 +178,4 @@ if __name__ == '__main__': if args.img is False: page_src = getImg(webpage, logger) - downloadPage(page_src, "{0}/{1}".format(args.dir, "img"), logger) - - # \ No newline at end of file + downloadPage(page_src, "{0}/{1}/{2}".format(args.dir, o.path, "img"), logger) \ No newline at end of file