My source code looks like:
Header3 (Start here)
- List items
- Etc...
import requests
from bs4 import BeautifulSoup
r = requests.get("https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_list_test")
soup = BeautifulSoup(r.content,"lxml")
w3schollsList = soup.find_all('body')
for w3scholl in w3schollsList:
ulList = w3scholl.find_all('li')
for li in ulList:
print(li)
Note: here is to get the "li" inside the div we made