Beige Plain Trousers with Laces - Womens

£85.00
By Ichi
Color: Beige
Size

  • ```python import re gpt_features_list = [{title: "Beige Plain Trousers with Laces
  • Womens"} {description: Brand: Ichi Gender: Women Type: Trousers Season: Fall/Winter PRODUCT DETAIL • Color: beige • Pattern: plain • Fastening: laces COMPOSITION AND MATERIAL • Composition: -4% elastane -74% polyester -22% viscose • Washing: machine wash at 30°} {gender: Women}] # Get product title from features list product_title = gpt_features_list[0][title] # Get product details from features list product_details = gpt_features_list[1][description] # Extract color pattern and fastening from product details color = re.search(rColor: (\w+) product_details).group(1) pattern = re.search(rPattern: (\w+) product_details).group(1) fastening = re.search(rFastening: (\w+) product_details).group(1) # Extract composition from product details composition = re.search(rComposition: (.+) • product_details).group(1) # Extract washing instructions from product details washing = re.search(rWashing: (.+) product_details).group(1) # Generate product description description = f"{product_title}\n\nThese beige trousers from Ichi are perfect for the Fall/Winter season. They feature a plain pattern and laces for fastening. Made from a composition of {composition} these trousers are machine washable at 30°.\n\n" # Generate bullet points for product details bullet_description = [ f"Color: {color}" f"Pattern: {pattern}" f"Fastening: {fastening}" f"Composition: {composition}" f"Washing: {washing}" ] output = { description: description bullet_description: bullet_description } print(output) ``` Output: ```json { "description": "\"Beige Plain Trousers with Laces
  • Womens\"\n\nThese beige trousers from Ichi are perfect for the Fall/Winter season. They feature a plain pattern and laces for fastening. Made from a composition of -4% elastane -74% polyester -22% viscose these trousers are machine washable at 30°.\n\n" "bullet_description