openpetswithchatandmcp/website/extract_header.py
OpenPets Dev 65ac83849e Add 'website/' from commit '966aea480ffe1c340553aa878def30131d2af827'
git-subtree-dir: website
git-subtree-mainline: 8d3849caea
git-subtree-split: 966aea480f
2026-06-17 20:48:39 +00:00

9 lines
305 B
Python
Executable file

import re
with open('c:/ScriptoriumAI/scriptoriumai-ui/src/pages/EditorSimplified.tsx', 'r', encoding='utf-8') as f:
text = f.read()
# Let's extract buttons from the header.
header_match = re.search(r'(<header.*?</header>)', text, re.DOTALL)
if header_match:
print(header_match.group(1)[:1500])