
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
숙제 하다가 도저히 안되서 강의자료 보니 마지막에 정답이라고 항목이 있더라고요,
그런데 정답을 넣어도 안됩니다. ㅜ 뭐가 잘못되었을까요

작성한 코드 및 에러 메세지
import urllib.request
import openpyxl
wb = openpyxl.load_workbook('관리종목.xlsx')
sheet = wb['종목']
new_rows = list(sheet.rows)[1:]
for row in new_rows:
print(row[0].value, row[1].value)
url = f'https://ssl.pstatic.net/imgfinance/chart/item/area/day/{row[1].value}.png'
urllib.request.urlretrieve(url, f"imgs/{row[0].value}.png"
에러 문구
삼성전자 005930
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-13-6a0058d6476f> in <cell line: 8>()
10
11 url = f'https://ssl.pstatic.net/imgfinance/chart/item/area/day/{row[1].value}.png'
---> 12 urllib.request.urlretrieve(url, f"imgs/{row[0].value}.png")
/usr/lib/python3.10/urllib/request.py in urlretrieve(url, filename, reporthook, data)
249 # Handle temporary file setup.
250 if filename:
--> 251 tfp = open(filename, 'wb')
252 else:
253 tfp = tempfile.NamedTemporaryFile(delete=False)
FileNotFoundError: [Errno 2] No such file or directory: 'imgs/삼성전자.png'
