v2.6.2 • 2026-11-29 wbbasket CDN + ProxyPool + WBAAS Alignment Async WBWalletCalculator + Search Parity CPython 3.8–3.16 • No-GIL • PyPy

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

CDN vs WBAAS Gateway Direct CDN endpoints (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

WB SDK Pro v2.6.2 Parser Tab
1. Parser & Filters
WB SDK Pro v2.6.2 Catalog & Wallet Tab
2. Catalog & WB Wallet
WB SDK Pro v2.6.2 Smart Reviews AI Tab
4. Smart Reviews & AI
WB SDK Pro v2.6.2 ProxyPool Tab
5. ProxyPool, dest & Ping
WB SDK Pro v2.6.2 Telegram Bot Tab
6. Telegram Bot Control

🛡️ 4. ProxyPool, Verified TLS Rotation & x-wbaas-token Alignment

  • Verified TLS Auto-Rotation: Cycles chrome136, chrome131, chrome124, safari184_ios (avoiding safari180_ios).
  • Token Alignment: extract_wbaas_user_agent() automatically aligns User-Agent and sec-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

sync_and_async_wb.py
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.

smart_reviews_ai_wb.py
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)

CommandDescription
/start, /status, /search, /drops, /wallet, /rank, /reviewsInteractive 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 CLI
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.

mcp_config.json
{
  "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"
      }
    }
  }
}
Copied!