
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
1-5차시 스크랩핑 실습 도중 에러메세지가 발생하여 진도 나가기가 애매하네요 ㅠㅠ
li들을 찾기는 했는데 어떤 li인지도 잘 모르겠습니다.

KeyError Traceback (most recent call last)
<ipython-input-13-f84627cafb1b> in <cell line: 14>()
12 lis = soup.select_one('#main_pack > section > div > div.group_news > ul > li')
13
---> 14 lis[0]
15
16 a.text
/usr/local/lib/python3.10/dist-packages/bs4/element.py in __getitem__(self, key)
1533 """tag[key] returns the value of the 'key' attribute for the Tag,
1534 and throws an exception if it's not there."""
-> 1535 return self.attrs[key]
1536
1537 def __iter__(self):
KeyError: 0
