π This Library is applied HTML_Table_Extractor
π Library Name : Table_Excel
π Created Date : 27/Aug/2020
π Updated Date : 11/Mar/2021
π Author : Minku Koo
π E-Mail : corleone@kakao.com
π Version : 1.1.4
π Keywords : 'Excel', 'Table', 'HTML', 'Crawling', 'Selenium', 'Extractor'
from HTML_Table_Excel import Table_Excel
# ENG
TableExcel = Table_Excel( URL_list <type=(String)list>, ChromeDriver Path <type=String>)
TableExcel.makeExel_abs( Excel File Path <type=String>, Table Header Color by Hex <type=String> (Default=F8E0EC) )
TableExcel.makeExel_sep( Excel File Path <type=String> )
# KOR
TableExcel = Table_Excel( URL <리μ€νΈ>, ν¬λ‘¬ λλΌμ΄λ² κ²½λ‘ <λ¬Έμμ΄>)
TableExcel.makeExel_abs( μμ
νμΌ κ²½λ‘ <λ¬Έμμ΄>, ν
μ΄λΈ ν€λ μκΉ - 16μ§μ <λ¬Έμμ΄> (Default=F8E0EC) )
TableExcel.makeExel_sep( μμ
νμΌ κ²½λ‘ <λ¬Έμμ΄> )
- HTML table νκ·Έμ λ°μ΄ν°λ₯Ό μμ§ λ° λ³ννμ¬ Excel νμΌλ‘ λ§λ€μ΄μ£Όλ λΌμ΄λΈλ¬λ¦¬ μ λλ€.
- μμ νμΌμλ λ§ν¬, νμ΄μ§ μ λͺ©μ΄ ν¬ν¨λμ΄ μμ΅λλ€.
- ν΄λΉ μΉ νμ΄μ§μ λͺ¨λ ν μ΄λΈμ μμ§μΌλ‘ μ λ ¬μμΌ νμν©λλ€.
- κ° ν μ΄λΈμ ν€λλ μμ λ¬λ¦¬νμ¬ νμν΄μ€λλ€.
β makeExel_sep() ν¨μλ ν μ΄λΈμ κ·Έλλ‘ λ³΄μ¬μ€λλ€. rowspan, colspanμμ λ³ν©μ΄ μ΄λ£¨μ΄μ§μ§ μμ΅λλ€.
β makeExel_abs() ν¨μλ ν μ΄λΈμ λ³ν©μ κ·Έλλ‘ κ΅¬νν©λλ€. rowspan, colspanμ λ³ν©μ΄ μμ μμλ λμΌνκ² μ΄λ£¨μ΄μ§λλ€.
β μ€μ²© ν μ΄λΈ, κ°λ‘ μ λ ¬ ν μ΄λΈλ λͺ¨λ νμν΄μ€λλ€.
-
You should check your ChromeDriver version
-
Also, You have to check, that your Chrome Browser Version and your ChromeDriver version is same
(URL : https://www.weather.go.kr/weather/observation/currentweather.jsp)
(URL : http://www.kweather.co.kr/kma/kma_digital.html)
(path : ./sample_html/innerTable_Sample.html)
(path : ./sample_html/horizontal_table_sample.html)