Skip to content

Commit

Permalink
Merge pull request YoongiKim#1 from litcoderr/master
Browse files Browse the repository at this point in the history
download path error fixed
  • Loading branch information
YoongiKim authored Nov 24, 2018
2 parents ecd683f + dd78948 commit 83d2729
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auto_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def __init__(self, skip_already_exist=True, n_threads=4, do_google=True, do_nave
self.do_naver = do_naver
self.download_path = download_path

# If download_path doesn't exist -> make one
if not os.path.exists('./{}'.format(self.download_path)):
os.mkdir('./{}'.format(self.download_path))

@staticmethod
def all_dirs(path):
paths = []
Expand Down

0 comments on commit 83d2729

Please sign in to comment.