
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
오류 코드 캡쳐본에 File is not a zip file이라서 나머지 코드는 맞는데 엑셀파일이 잘 읽히다가 왜 안되는건가요??
csv로 변환하라는데 왕초보라서 시간이 더 걸리네요.. 뭘 잘못하면 이렇게 뜨나요 ..

작성한 코드 및 에러 메세지
오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.
Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.
Tip 2) Ctrl+A(맥의 경import openpyxl
import urllib.request
wb = openpyxl.load_workbook('관리종목.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")우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!
---------------------------------------------------------------------------
BadZipFile Traceback (most recent call last)
<ipython-input-100-00cd9ef1e32e> in <cell line: 4>()
2 import urllib.request
3
----> 4 wb = openpyxl.load_workbook('관리종목.xlsx')
5 sheet = wb['종목']
6
4 frames
/usr/lib/python3.10/zipfile.py in _RealGetContents(self)
1334 raise BadZipFile("File is not a zip file")
1335 if not endrec:
-> 1336 raise BadZipFile("File is not a zip file")
1337 if self.debug > 1:
1338 print(endrec)
BadZipFile: File is not a zip file
