WB SDK Pro (wb-sdk-pro) — Complete Documentation
4-in-1 Wildberries ecosystem with direct wbbasket.ru CDN, feedbacks1/2 sharding, async WB Wallet math, preset catalog redirect, x-wbaas-token alignment, 6-format LRU ProxyPool, Smart Reviews AI (g4f>=9.0.3 + Official APIs), Telegram Bot, 13 CLI, 9 MCP tools, and 7-tab Windows GUI.
🧭 1. Overview & CDN Sharding Architecture
wbbasket.ru, feedbacks1/2, WB Wallet) bypass WBAAS cleanly, while gateway search automatically leverages ProxyPool and x-wbaas-token alignment.
Basket-01..65+ & Feedback Shards
Live upstreams routing and exact root_id % 100 >= 50 feedback shard selection.
Async Wallet & Search Parity
Async WBWalletCalculator + full AsyncWBClient search & seller parity.
Preset Redirects & WBAAS Alignment
Automatic preset catalog redirect & x_wbaas_token header alignment.
Windows SQLite WinError 32 Fix
Both SQLite trackers close file handles immediately on exit.
📦 2. Installation & Optional Extras
uv add "wb-sdk-pro[tls,ai]"
🖥️ 3. 7-Tab Desktop GUI & Standalone Windows .exe
🛡️ 4. ProxyPool, Verified TLS Rotation & x-wbaas-token Alignment
- Verified TLS Auto-Rotation: Cycles
chrome136,chrome131,chrome124,safari184_ios(avoidingsafari180_ios). - Token Alignment:
extract_wbaas_user_agent()automatically alignsUser-Agentandsec-ch-ua*headers. - 6 Formats + Session Reset: Supports all common formats and drops stale keepalive connections on IP change.
🐍 5. Sync/Async Python SDK & WB Wallet
import asyncio
from wb_parser import AsyncWBClient, DEST_CODES, ProxyPool, WBClient, WBConfig, to_excel
# 1. Sync CDN + Search + WB Wallet + Rank
pool = ProxyPool(["203.0.113.10:8001:user1:pass1", "user2:pass2@203.0.113.11:8002"], min_interval=4.0)
with WBClient(dest=DEST_CODES["Москва"], proxies=pool, wbaas_token="...", tracker_db="wb_prices.db") as wb:
item = wb.get_product(141217830, with_price_history=True)
wallet = wb.wallet_price(4990, use_club=True)
print(item.name, f"Отзывы: {item.feedback_count}", f"WB Клуб: {wallet.wallet_price}₽")
to_excel([item], "result/wb_items.xlsx")
# 2. Full Async Client + Async Wallet Math
async def main():
cfg = WBConfig.from_file("wb.toml")
async with AsyncWBClient.from_config(cfg) as awb:
w = await awb.wallet_price(4990)
found = await awb.search("кроссовки", max_pages=2, limit=40)
return w, found
asyncio.run(main())
🤖 6. Smart Reviews & g4f>=9.0.3 / Official AI Engine
Exact color or parent card feedback filtering + size fit analytics + Offline / live g4f>=9.0.3 scanner / Official OpenAI, Claude, Gemini, DeepSeek, Mistral, xAI & Groq APIs.
from wb_parser import AIClient, WBClient, get_g4f_version, quick_scan_ai_providers, test_ai_provider
print("g4f:", get_g4f_version())
live = [r for r in quick_scan_ai_providers(timeout=12.0) if r.success]
print(test_ai_provider("g4f", mode="free"))
# Official APIs (Anthropic Claude / OpenAI / Gemini / DeepSeek / Groq / Custom):
reply = AIClient(mode="paid", provider="anthropic", api_key="sk-ant-...").chat("Кратко проанализируй отзывы")
print(reply.provider, reply.model, reply.content)
✈️ 7. WBTelegramBot (/proxies, /tg_proxy, /wallet)
| Command | Description |
|---|---|
/start, /status, /search, /drops, /wallet, /rank, /reviews | Interactive parsing, wallet, rank & AI reviews |
/proxies <list|off> | Set or clear live ProxyPool |
/proxy <url|off> [key] | Update or disable single proxy |
/tg_proxy <socks5://...|off> | Isolated Telegram API proxy |
⌨️ 8. CLI (13 Commands) & wb.toml
wb-parser upstreams --proxies proxies.txt
wb-parser card 141217830 --history -o item.xlsx
wb-parser search "кроссовки" --pages 2 --proxies proxies.txt --wbaas-token "..." -o search.xlsx
wb-parser wallet 4990 --club
wb-parser reviews 141217830 --mode free -o reviews.json
wb-parser bot --tg-token "123:AAF..." --proxies proxies.txt --tg-proxy "socks5://127.0.0.1:1080"
🔌 9. Native MCP Server (wb-mcp)
9 JSON-RPC 2.0 stdio tools ready for Antigravity, Claude, Cursor, and Windsurf.
{
"mcpServers": {
"wildberries": {
"command": "uvx",
"args": ["--from", "wb-sdk-pro[tls,ai]", "wb-mcp"],
"env": {
"WB_PROXIES": "proxies.txt",
"WB_MOBILEPROXY_KEY": "YOUR_KEY",
"WB_TG_PROXY": "socks5://127.0.0.1:1080",
"WB_TRACKER_DB": "wb_prices.db",
"WB_AI_MODE": "auto"
}
}
}
}