Website-Cloner icon indicating copy to clipboard operation
Website-Cloner copied to clipboard

IsADirectoryError: [Errno 21] Is a directory:

Open yankinmax opened this issue 7 years ago • 0 comments

Hi. I try to crawl the page (http://en.zkteco.com) with your cloner, but I can't prevent this error:

Traceback (most recent call last): File "website_cloner.py", line 143, in crawl(site_name + "/") File "website_cloner.py", line 132, in crawl save_assets(r.text) File "website_cloner.py", line 93, in save_assets with open(project_path + file_name.split("/?")[0], "wb") as f: IsADirectoryError: [Errno 21] Is a directory: '../mySite'

I use Python 3.5 on Ubuntu 16.04 Desktop. I made virtualenv and all requirements were installed without any issues. I have found that this error happened because of this Google redirect content (//googleads.g.doubleclick.net/pagead/viewthroughconversion/953570153/?value=0&guid=ON&script=0). With handling of Exception it works, but I still cannot open cloned website localy. Could you try it yourself and help me please?

yankinmax avatar May 21 '18 11:05 yankinmax