'display_name': 'Arborist '

← العودة
Blog Post

عنوان المحادثة: 'display_name': 'Arborist ' ...

التاريخ: 14.11.2025

التصنيف: 🧠 الذكاء الاصطناعي وتعلم الآلة

إجمالي الرسائل: 8 | ياسر: 3 | M: 5

Yasser
'display_name': 'Arborist ' 'Merchandising ' 'Root', 'id': '90817617031'}, 'context_free_name': 'Self ' 'Service', 'display_name': 'Self ' 'Service', 'id': '12463224031'}, 'context_free_name': 'Special ' 'Features ' 'Stores', 'display_name': 'Special ' 'Features ' 'Stores', 'id': '12463226031'}, 'context_free_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_0', 'display_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_0', 'id': '90817618031'}, 'context_free_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_901', 'display_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_901', 'id': '90817653031'}, 'context_free_name': 'PD25-Men-Apparel', 'display_name': 'PD25-Men-Apparel', 'id': '210772286031'}, 'children': None, 'context_free_name': 'PD25-Men-Apparel-B1', 'display_name': 'PD25-Men-Apparel-B1', 'id': '210772287031', 'is_root': False, 'sales_rank': None}], 'website_sales_rank': {'context_free_name': None, 'display_name': None, 'id': None, 'sales_rank': 59330}}, 'customer_reviews': None, 'detail_page_url': 'https://www.amazon.sa/dp/B08V1RYLQF?tag=moh10-21&linkCode=ogi&th=1&psc=1', 'images': {'primary': {'large': {'height': 250, 'url': 'https://m.media-amazon.com/images/I/21iG7qDZWAS._SL500_.jpg', 'width': 500}, 'medium': {'height': 80, 'url': 'https://m.media-amazon.com/images/I/21iG7qDZWAS._SL160_.jpg',
Yasser
'label': 'IsAdultProduct', 'locale': 'en_US'}, 'item_dimensions': {'height': {'display_value': 9.842519675, 'label': 'Height', 'locale': 'en_AE', 'unit': 'inches'}, 'length': {'display_value': 9.842519675, 'label': 'Length', 'locale': 'en_AE', 'unit': 'inches'}, 'weight': {'display_value': 0.330693393, 'label': 'Weight', 'locale': 'en_AE', 'unit': 'pounds'}, 'width': {'display_value': 9.842519675, 'label': 'Width', 'locale': 'en_AE', 'unit': 'inches'}}, 'release_date': None, 'size': {'display_value': '55', 'label': 'Size', 'locale': 'en_AE'}, 'unit_count': None}, 'technical_info': None, 'title': {'display_value': "Oakley Frame Men's 0OX8173 Optical " 'Frames, Color: Satin Grey Smoke, ' 'Size: 55', 'label': 'Title', 'locale': 'en_AE'}, 'trade_in_info': None}, 'offers': None, 'parent_asin': 'B0B71KSDF1', 'rental_offers': None, 'score': None, 'variation_attributes': None}}, {'error': 'Requests limit reached, try increasing throttling or wait before trying again'}]
المحادثة الكاملة - 14.11.2025
M
او google ai studio
14.11.2025 19:54
M
async def cmd_test_variations(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: """اختبار ميزة الألوان والأحجام - الاستخدام: /testvariations """ chat_id = update.effective_chat.id if not context.args or len(context.args) == 0: await context.bot.send_message( chat_id=chat_id, text="❌ يرجى إدخال ASIN المنتج\n\nالاستخدام:\n/testvariations B0XXXXXXXXX" ) return asin = context.args[0].strip() await context.bot.send_chat_action(chat_id=chat_id, action=ChatAction.TYPING) try: # جلب التنويعات variations_data = self.amazon.get_product_variations(asin) # بناء رسالة التنويعات msg = await self.amazon.build_variations_message(variations_data) if not msg or not variations_data.get("has_variations"): await context.bot.send_message( chat_id=chat_id, text=f"ℹ️ المنتج {asin} ليس لديه ألوان أو أحجام إضافية\n\nأو ربما PA-API لا تُرجع variation_attributes لهذا المنتج." ) return # إرسال الرسالة header = f"🎨 الألوان والأحجام لـ {asin}:\n" + "="*40 + "\n" await context.bot.send_message( chat_id=chat_id, text=header + msg, disable_web_page_preview=True ) except Exception as e: logger.error(f"خطأ في اختبار التنويعات: {e}") await context.bot.send_message( chat_id=chat_id, text=f"❌ حدث خطأ أثناء جلب التنويعات:\n{str(e)}" ) async def cmd_campaigns(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: """كشف ونشر العروض الترويجية من Amazon - الاستخدام: /campaigns""" chat_id = update.effective_chat.id await context.bot.send_message( chat_id=chat_id, text="🔍 جارٍ البحث عن العروض الترويجية النشطة على Amazon.sa...\n⏳ قد يستغرق هذا دقيقة" ) await context.bot.send_chat_action(chat_id=chat_id, action=ChatAction.TYPING) try: # إنشاء scraper scraper = PromotionalCampaignsScraper( partner_tag=self.cfg.pa_partner_tag, openai_api_key=self.cfg.openai_api_key, timeout_sec=20.0 ) # كشف الحملات campaigns = await scraper.discover_campaigns() if not campaigns: await context.bot.send_message( chat_id=chat_id, text="ℹ️ لم أجد أي عروض ترويجية نشطة في الوقت الحالي\n\nحاول مرة أخرى لاحقاً!" ) return # تحميل الكاش cache = self._load_campaigns_cache() # دعم النسخ القديمة حيث كان 'posted_campaigns' قائمة raw_posted = cache.get('posted_campaigns', {}) if isinstance(raw_posted, list): # نحافظ على التوافق السابق: قائمة روابط بدون طوابع زمنية posted_map: Dict[str, Optional[str]] = {k: None for k in raw_posted} elif isinstance(raw_posted, dict): posted_map = raw_posted.copy() else: posted_map = {} # helper: check if a stored ISO timestamp is today in local TZ def _is_posted_today(ts: Optional[str]) -> bool: if not ts: return False try: dt = datetime.fromisoformat(ts) return dt.astimezone(TZ).date() == datetime.now(TZ).date() except Exception: return False
14.11.2025 20:00
ياسر
'display_name': 'Arborist ' 'Merchandising ' 'Root', 'id': '90817617031'}, 'context_free_name': 'Self ' 'Service', 'display_name': 'Self ' 'Service', 'id': '12463224031'}, 'context_free_name': 'Special ' 'Features ' 'Stores', 'display_name': 'Special ' 'Features ' 'Stores', 'id': '12463226031'}, 'context_free_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_0', 'display_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_0', 'id': '90817618031'}, 'context_free_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_901', 'display_name': 'fb84d230-5712-4ea1-9ca2-c9a8dec05b1b_901', 'id': '90817653031'}, 'context_free_name': 'PD25-Men-Apparel', 'display_name': 'PD25-Men-Apparel', 'id': '210772286031'}, 'children': None, 'context_free_name': 'PD25-Men-Apparel-B1', 'display_name': 'PD25-Men-Apparel-B1', 'id': '210772287031', 'is_root': False, 'sales_rank': None}], 'website_sales_rank': {'context_free_name': None, 'display_name': None, 'id': None, 'sales_rank': 59330}}, 'customer_reviews': None, 'detail_page_url': 'https://www.amazon.sa/dp/B08V1RYLQF?tag=moh10-21&linkCode=ogi&th=1&psc=1', 'images': {'primary': {'large': {'height': 250, 'url': 'https://m.media-amazon.com/images/I/21iG7qDZWAS._SL500_.jpg', 'width': 500}, 'medium': {'height': 80, 'url': 'https://m.media-amazon.com/images/I/21iG7qDZWAS._SL160_.jpg',
14.11.2025 20:33
ياسر
'label': 'IsAdultProduct', 'locale': 'en_US'}, 'item_dimensions': {'height': {'display_value': 9.842519675, 'label': 'Height', 'locale': 'en_AE', 'unit': 'inches'}, 'length': {'display_value': 9.842519675, 'label': 'Length', 'locale': 'en_AE', 'unit': 'inches'}, 'weight': {'display_value': 0.330693393, 'label': 'Weight', 'locale': 'en_AE', 'unit': 'pounds'}, 'width': {'display_value': 9.842519675, 'label': 'Width', 'locale': 'en_AE', 'unit': 'inches'}}, 'release_date': None, 'size': {'display_value': '55', 'label': 'Size', 'locale': 'en_AE'}, 'unit_count': None}, 'technical_info': None, 'title': {'display_value': "Oakley Frame Men's 0OX8173 Optical " 'Frames, Color: Satin Grey Smoke, ' 'Size: 55', 'label': 'Title', 'locale': 'en_AE'}, 'trade_in_info': None}, 'offers': None, 'parent_asin': 'B0B71KSDF1', 'rental_offers': None, 'score': None, 'variation_attributes': None}}, {'error': 'Requests limit reached, try increasing throttling or wait before trying again'}]
14.11.2025 20:33
M
غالبا حنحتاج ال ai
14.11.2025 21:09
ياسر
قصدي شو إحتياج ال ai
14.11.2025 21:10
M
بدون ai وبدون سكرابنج منتجات
14.11.2025 21:44
M
مو تاعون ال ai
14.11.2025 21:59
← العودة إلى الرئيسية