costa-vite-myna/core/html.py
Dita Aji Pratama d4ca69fb2b First Commit
2022-03-16 11:06:52 +07:00

18 lines
433 B
Python

import sys
import os
class main:
def __init__(self):
pass
def get_html(location):
html_dict = {}
html_page_list = os.listdir( location )
for html_page in html_page_list:
full_path = location + "/" + html_page
html_handle = open( full_path , 'r' )
html_raw = html_handle.read()
html_dict[html_page] = html_raw
return html_dict