Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IOError #2

Open
e9t opened this issue Jan 6, 2015 · 1 comment
Open

Fix IOError #2

e9t opened this issue Jan 6, 2015 · 1 comment

Comments

@e9t
Copy link
Member

e9t commented Jan 6, 2015

$ python blog_crawler.py 
How many blog pages you need?: 1
Traceback (most recent call last):
  File "blog_crawler.py", line 70, in 
    total_page_crawler(page_need)
  File "blog_crawler.py", line 64, in total_page_crawler
    each_page_crawler(images, p)
  File "blog_crawler.py", line 56, in each_page_crawler
    write_file(jsonfile, i, p)
  File "blog_crawler.py", line 32, in write_file
    f = open('data/FoodBlog_{0:02d}.json'.format(i+(p-1)*10), 'w')
IOError: [Errno 2] No such file or directory: 'data/FoodBlog_01.json'
@e9t
Copy link
Member Author

e9t commented Jan 6, 2015

data 폴더를 자동을 생성해주든지, data 폴더를 input으로 받든지.
후자가 더 좋은 접근.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant