﻿# Web04.py
import bs4
#from bs4 import BeautifulSoup

html_str = """
<html>
    <body>
        <ul class="greet">
            <li>hello</li>
            <li>bye</li>
            <li>welcome</li>
        </ul>
        <ul class="reply">
            <li>ok</li>
            <li>no</li>
            <li>sure</li>
        </ul>
    </body>
</html>
"""

bs_obj = bs4.BeautifulSoup(html_str, "html.parser")
# bye 뽑아내기
aaaa = bs_obj.findAll("li")
print(aaaa)

for li in aaaa:
    #print(li)
    print(li.text)

