bmc_hub/test_wrapper.py

9 lines
227 B
Python
Raw Permalink Normal View History

with open('app/modules/sag/templates/detail.html', 'r', encoding='utf-8') as f:
html = f.read()
import re
for match in re.finditer(r'<div class="mb-3">\s*<div[^>]*data-module="([^"]+)"', html):
print(match.group(1))