Skip to content
This repository was archived by the owner on Aug 22, 2018. It is now read-only.
This repository was archived by the owner on Aug 22, 2018. It is now read-only.

IsADirectoryError: [Errno 21] Is a directory:  #1

Description

@yankinmax

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions