
import urllib
from urllib.request import urlopen, Request
# https://ko.wikipedia.org/wiki/여명의_눈동자
html = "https://ko.wikipedia.org/wiki/{search_words}"
req = Request(html.format(search_words=urllib.parse.quote("여명의_눈동자")))
response = urlopen(req)
soup = BeautifulSoup(response, "html.parser")
print(soup.prettify())

n = 0
for each in soup.find_all("ul"):
print("=>" + str(n) + "========================")
print(each.get_text())
n += 1

32번째 줄에 원하는 정보가 있다.
soup.find_all("ul")[32].text

# 예쁘게 정리
soup.find_all("ul")[32].text.strip().replace("\xa0", "").replace("\n", "")
