from bs4 import BeautifulSoup
from urllib.request import urlopen


html = urlopen("https://morvanzhou.github.io/static/scraping/list.html").read().decode('utf-8')

soup = BeautifulSoup(html, features='lxml')

month = soup.find_all('li', {'class': 'month'})
for m in month:
    print(m.get_text())

jan = soup.find('ul', {'class': 'jan'})
# jan = soup.find_all('ul', {'class': 'jan'})
print(jan)
d_jan = jan.find_all('li')
for d in d_jan:
    print("\n", d.get_text())