git checkout 2b7a34afc924ed149364f6b06ded2e8220911

← العودة
Blog Post

عنوان المحادثة: git checkout 2b7a34afc924ed149364f6b06ded2e8220911746

التاريخ: 15.12.2025

التصنيف: 🛒 التجارة الإلكترونية والتسويق

إجمالي الرسائل: 4 | ياسر: 1 | M: 3

Yasser
git checkout 2b7a34afc924ed149364f6b06ded2e8220911746
المحادثة الكاملة - 15.12.2025
M
# ...existing code...def search_by_category(self, category, max_total_products=100, ...): # ... # 🔥 إضافة حد أدنى للخصم (10% مثلاً) min_saving_percent = 10 # ← يمكن جعله parameter # ...existing code... # تمرير للـ API products = self.amazon_api.search_items( keywords=keyword, category_node_id=node_id, min_saving_percent=min_saving_percent, # ← 🔥 هنا min_reviews=min_reviews, # ... )
15.12.2025 21:39
M
def filter_products(products, min_reviews=30, min_rating=3.5, ...): filtered = [] for product in products: # تخطي بدون تقييم if not product.get('rating'): continue # تخطي التقييمات القليلة if product.get('reviews', 0) continue # تخطي التقييم المنخفض if float(product.get('rating', 0)) continue # تخطي بدون خصم if product.get('old_price', 0) continue # حساب الثقة confidence = calculate_confidence(product) if confidence continue filtered.append(product) return filtered
15.12.2025 21:53
M
ملخص المعايير الكاملة:المرحلة المعيار القيمة🔍 API min_reviews 30min_saving_percent 10%item_count 10/صفحة🎯 الثقة reviews 30+ نقاطrating 3.5+ نجمةsaving 10%+ خصمconfidence 25%+🧹 الفلترة old_price > price ✅not in posted_asins ✅confidence >= 25 ✅🏆 الأولوية badges +50 نقطةsaving 60%+ +30 نقطةreviews 1000+ +20 نقطة📊 النهائية similarity max_products 15-25 حسب القسمالخلاصة: النظام يطبق 5 مراحل فلترة متدرجة من API → الثقة → الفلترة → الأولوية → النهائية لضمان جودة المنتجات المنشورة.Claude Sonnet 4.5 • 1x
15.12.2025 21:54
ياسر
git checkout 2b7a34afc924ed149364f6b06ded2e8220911746
15.12.2025 22:19
← العودة إلى الرئيسية