feat: implement dynamic training course tab system and modular PDF data migration scripts
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from bs4 import BeautifulSoup
|
||||
import sys
|
||||
import re
|
||||
|
||||
with open('/home/x79/sisvietnamvn_01/sisvietnamvn_Trang chính thức hiện tại/Đào tạo tại UMC.html', 'r', encoding='utf-8') as f:
|
||||
html = f.read()
|
||||
|
||||
soup = BeautifulSoup(html, 'html.parser')
|
||||
main = soup.find('main')
|
||||
if main:
|
||||
with open('umc_main.html', 'w', encoding='utf-8') as f:
|
||||
f.write(main.prettify())
|
||||
print("Saved main tag to umc_main.html")
|
||||
else:
|
||||
print("No main tag found")
|
||||
Reference in New Issue
Block a user