bmc_hub/test_wrapper2.py

9 lines
206 B
Python
Raw 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[^>]*data-module="([^"]+)"', html):
print(match.group(1))