- 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.
12 lines
365 B
Python
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)
|