import re
import json
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()
parts = html.split('
')
groups = []
slugs = ['gallery', 'chung-chi', 'giay-chung-nhan', 'xac-nhan-thuc-hanh', 'hinh-anh-thuc-hanh']
names = ['Gallery Đào Tạo', 'Đào tạo cấp chứng chỉ', 'Đào tạo cấp giấy chứng nhận', 'Xác nhận quá trình thực hành', 'Hình ảnh thực hành']
for i in range(1, len(parts)):
part = parts[i]
slug = slugs[i-1] if (i-1) < len(slugs) else f"unknown-{i}"
name = names[i-1] if (i-1) < len(names) else f"Unknown {i}"
# We only care about the slides for this swiper.
# The swiper ends with `