odoo-shivasakthi/scratch/find_shapes.py
Alaguraj0361 5d78301f2b Add scripts for downloading images and finding shapes
- Created `download_categories.py` to download specific category images from a remote server.
- Created `download_extra_categories.py` to download additional category images.
- Added `find_shapes.py` to extract and print unique shape and category image paths from a markdown file.
2026-06-08 20:11:31 +05:30

12 lines
365 B
Python

with open("/mnt/extra-addons/page_js.md", "r", encoding="utf-8") as f:
text = f.read()
import re
shapes = re.findall(r'assets/images/shapes/[a-zA-Z0-9_-]+\.[a-z]+', text)
for s in set(shapes):
print("Shape:", s)
categories = re.findall(r'assets/images/home/category/[a-zA-Z0-9_-]+\.[a-z]+', text)
for c in set(categories):
print("Category Image:", c)