π¦ ClawHub
Popmart Stock Monitor
by @iiustrator
Monitor PopMart product restock status across multiple channels including WeChat Mini Programs, Taobao, JD.com, and Tmall. Use when user wants to track avail...
TERMINAL
clawhub install popmart-stock-monitorπ About This Skill
name: popmart-stock-monitor description: Monitor PopMart product restock status across multiple channels including WeChat Mini Programs, Taobao, JD.com, and Tmall. Use when user wants to track availability of specific PopMart products and receive notifications when items are back in stock.
PopMart Stock Monitor
Overview
This skill monitors PopMart product availability across major Chinese e-commerce platforms:Setup Requirements
API Keys & Authentication
Installation
# Install required dependencies
pip install requests beautifulsoup4 selenium playwright
Usage Examples
Basic Product Monitoring
Monitor PopMart "Molly Ocean" series on all platforms
Check PopMart Labubu blind box stock status
Track availability of PopMart Dimoo Space series
Advanced Configuration
Monitor PopMart product ID 12345 every 30 minutes
Check PopMart stock with priority: JD > Tmall > Taobao
Alert me via Feishu when PopMart Molly is back in stock
Implementation Details
Platform-Specific Handlers
#### WeChat Mini Program
#### Taobao/Tmall
#### JD.com
Stock Detection Logic
1. Product Identification: Match by product name, SKU, or official product ID 2. Availability Check: - "In Stock" / "ζθ΄§" status - Add-to-cart button enabled - Price displayed (not "sold out") 3. False Positive Filtering: - Exclude pre-order items - Verify actual inventory vs display statusNotification System
Supported Channels
Alert Templates
π¨ POPMART RESTOCK ALERT π¨
Product: {product_name}
Platform: {platform}
Status: Back in Stock!
Link: {product_url}
Price: {price}
Last Checked: {timestamp}
Configuration File
Createpopmart_config.json in your workspace:{
"products": [
{
"name": "Molly Ocean Series",
"sku": "PM-MLY-OCEAN-2026",
"platforms": ["wechat", "taobao", "jd", "tmall"],
"priority": ["jd", "tmall", "taobao", "wechat"]
}
],
"check_interval_minutes": 30,
"notification": {
"channel": "feishu",
"webhook_url": "YOUR_FEISHU_WEBHOOK_URL"
},
"api_keys": {
"taobao_app_key": "YOUR_TAOBAO_APP_KEY",
"taobao_app_secret": "YOUR_TAOBAO_APP_SECRET",
"jd_app_key": "YOUR_JD_APP_KEY",
"jd_app_secret": "YOUR_JD_APP_SECRET"
}
}
Limitations & Considerations
Technical Challenges
Legal Compliance
Reliability Notes
Troubleshooting
Common Issues
1. "Access Denied" errors: Check API credentials and rate limits 2. False stock alerts: Adjust detection logic instock_detection.py
3. Connection timeouts: Increase timeout values or use proxy
4. Missing products: Verify product identifiers and platform availabilityDebug Mode
Enable debug logging by settingDEBUG=true in environment:
DEBUG=true python popmart_monitor.py
Maintenance
π Tips & Best Practices
Common Issues
1. "Access Denied" errors: Check API credentials and rate limits 2. False stock alerts: Adjust detection logic instock_detection.py
3. Connection timeouts: Increase timeout values or use proxy
4. Missing products: Verify product identifiers and platform availabilityDebug Mode
Enable debug logging by settingDEBUG=true in environment:
DEBUG=true python popmart_monitor.py