
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
new_rows = list(sheet.rows)[1:] 에서 TypeError: 'ResultSet' object is not callable 에러 발생

import urllib.request
import openpyxl
wb = openpyxl.load_workbook('관리종목.xlsx')
sheet = wb['종목']
new_rows = list(sheet.rows)[1:]
for row in new_rows:
code = row[1].value
name = row[0].value
url = f'https://ssl.pstatic.net/imgfinance/chart/item/candle/day/{code}.png?sidcode=1697544826665'
urllib.request.urlretrieve(url, f'/content/images/{name}.png')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-73-e21536600b9d> in <cell line: 6>()
4 sheet = wb['종목']
5
----> 6 new_rows = list(sheet.rows)[1:]
7
8 for row in new_rows:
TypeError: 'ResultSet' object is not callable
