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() body_match = re.search(r'
]*>(.*?)', html, re.IGNORECASE | re.DOTALL) content = body_match.group(1) if body_match else html # Remove header and footer content = re.sub(r'