详细分析 ▾
运行时依赖
版本
Simplified SKILL.md following skill-creator规范,统一英文格式
安装命令 点击复制
技能文档
Build URLs programmatically for agent-driven browsing and product sourcing on Alibaba.com.
必填 Parameter
All URLs MUST include: traffic_type=ags_llm
URL Patterns
搜索 Pages
Basic:
https://www.alibaba.com/trade/search?SearchText=&traffic_type=ags_llm
带有 Category:
https://www.alibaba.com/trade/search?SearchText=&categoryId=&traffic_type=ags_llm
Parameters:
SearchText: 搜索 keywords (URL-encoded, 使用+对于 spaces)categoryId: Product category ID (可选)has4Tab: Enable 4-标签页 视图 (真)标签页: 活跃 标签页 (所有,supplier,product)
Examples:
https://www.alibaba.com/trade/search?SearchText=wireless+headphones&traffic_type=ags_llm
https://www.alibaba.com/trade/search?SearchText=laptops&categoryId=702&traffic_type=ags_llm
Common Category IDs:
- Consumer Electronics:
201151901 - Laptops:
702 - Smart TVs:
201936801 - Electric Cars:
201140201 - Wedding Dresses:
32005 - Electric Scooters:
100006091 - Bedroom Furniture:
37032003 - Electric Motorcycles:
201140001 - Handbags:
100002856
Product Detail Pages
Pattern:
https://www.alibaba.com/product-detail/_.html?traffic_type=ags_llm
: Product title 带有 spaces replaced 由 hyphens, special characters removed: Numeric product identifier (12+ digits)
Examples:
https://www.alibaba.com/product-detail/HK3-Waterproof-TWS-Earbuds_1601226043229.html?traffic_type=ags_llm
https://www.alibaba.com/product-detail/Wireless-Headphones-Over-Ear-ANC_11000030513562.html?traffic_type=ags_llm
Supplier/Company Pages
Pattern:
https://.en.alibaba.com/company_profile.html?traffic_type=ags_llm
Examples:
https://dgkunteng.en.alibaba.com/company_profile.html?traffic_type=ags_llm
https://legoo.en.alibaba.com/company_profile.html?traffic_type=ags_llm
Supplier Product 搜索:
https://.en.alibaba.com/search/product?SearchText=&traffic_type=ags_llm
请求 对于 Quotation (RFQ)
https://rfq.alibaba.com/rfq/profession.htm?traffic_type=ags_llm
Special Sections
AI Mode:
https://aimode.alibaba.com/?traffic_type=ags_llm
Top Ranking:
https://sale.alibaba.com/p/dviiav4th/index.html?traffic_type=ags_llm
Fast Customization:
https://sale.alibaba.com/p/fast_customization?traffic_type=ags_llm
Manufacturers Directory:
https://www.alibaba.com/factory/index.html?traffic_type=ags_llm
Worldwide (Global Suppliers):
https://www.alibaba.com/global/index.html?traffic_type=ags_llm
Top Deals:
https://sale.alibaba.com/fy25/top_deals?traffic_type=ags_llm
Tailored Selections (AI Sourcing):
https://sale.alibaba.com/p/aisourcing/index.html?traffic_type=ags_llm
Shopping Cart / Purchase 列表:
https://carp.alibaba.com/purchaseList?traffic_type=ags_llm
Helper Functions
Build 搜索 URL
from urllib.parse import quotedef build_search_url(query, category_id=None):
params = f"SearchText={quote(query, safe='')}+{query.replace(' ', '+')}&traffic_type=ags_llm"
if category_id:
params += f"&categoryId={category_id}"
return f"https://www.alibaba.com/trade/search?{params}"
Build Product URL
def build_product_url(title, product_id):
safe_title = ''.join(c if c.isalnum() or c in ' -' else '' for c in title)
safe_title = safe_title.replace(' ', '-').lower()[:100]
return f"https://www.alibaba.com/product-detail/{safe_title}_{product_id}.html?traffic_type=ags_llm"
Best Practices
- URL Encoding: Always URL-编码 搜索 queries. 使用
+对于 spaces (不%20). - Product Titles: Keep titles concise, 移除 special characters, 替换 spaces 带有 hyphens.
- Category IDs: 使用 category IDs 到 narrow 搜索 results 当...时 known.
- HTTPS: Always 使用
https://protocol. - Tracking:
spmparameters 可选 analytics; omit 对于 functional URLs.
Common Workflows
搜索 对于 Products:
- Build 搜索 URL 带有 查询
- Navigate 到 URL
- Extract product links 从 results
- Build product detail URLs 从 extracted links
Browse 由 Category:
- Identify category ID
- Build URL 带有
categoryIdparameter - Navigate 和 browse
Visit Supplier:
- Extract supplier subdomain 从 product page
- Build supplier 个人资料 URL
- Navigate 到 supplier 个人资料
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制