
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
1주차 숙제를 하면서 이전 강의 영상을 복습하며 해보는데
계속해서 오류가 뜨는데 어디를 실수 했는지 잘 모르겠습니다.
혼자 힘으로 해야하는게 숙제이지만 부디 가르쳐주세요!

작성한 코드 및 에러 메세지
import openpyxl
import urllib.request
wb = openpyxl.load_workbook('관리종목 (1).xlsx')
sheet = wb['종목']
new_rows = list(sheet.rows)[1:]
for row in new_rows:
url = f'https://ssl.pstatic.net/imgfinance/chart/item/area/year3/{row[1].value}.png'
urllib.request.urlretrieve(url, f"imgs/{row[0].value}.png")
NotADirectoryError Traceback (most recent call last)
<ipython-input-48-153e1aed6524> in <module>
8 for row in new_rows:
9 url = f'https://ssl.pstatic.net/imgfinance/chart/item/area/year3/{row[1].value}.png'
---> 10 urllib.request.urlretrieve(url, f"imgs/{row[0].value}.png")
/usr/lib/python3.8/urllib/request.py in urlretrieve(url, filename, reporthook, data)
255 # Handle temporary file setup.
256 if filename:
--> 257 tfp = open(filename, 'wb')
258 else:
259 tfp = tempfile.NamedTemporaryFile(delete=False)
NotADirectoryError: [Errno 20] Not a directory: 'imgs/삼성전자.png'
