# -*- coding: utf-8 -*-
"""
Created on Wed Dec 29 14:47:10 2021

@author: Sim
"""
from selenium import webdriver
from bs4 import BeautifulSoup

uri ="file:///D:/htex/Pythonbk/codesdata/songs.html"
options = webdriver.ChromeOptions()
options.add_argument("headless")
driver = webdriver.Chrome('d:/python/webdrivers/chromedriver.exe',
                           options=options)
driver.get(uri)

htmlsrc = driver.page_source
# soup = BeautifulSoup(htmlsrc, 'lxml')
soup = BeautifulSoup(htmlsrc, 'html.parser')
html1 = soup.select('tr')
html2 = soup.select('th') 

print('행의 수: ', len(html1))
print('열의 수: ', len(html2)) 