Skip to main content

WB SDK Pro (`wb-sdk-pro`)

All-in-One Wildberries Suite: Sync/Async SDK + CDN Engine + WB Wallet Pricing + Search Rank Tracker + Smart Review Analyzer + 11-Command CLI + 8-Tool MCP Server + 7-Tab Desktop GUI

🇬🇧 English • 🇷🇺 Документация на русском

PyPI Version Release Python Versions uv Powered Tests Desktop GUI MCP Server License: MIT

Unified 3-in-1 Wildberries Architecture upgrading and merging wildberries_parser (with drop-in ParseWB, Item, Items, Feedback compatibility) + wb_rank + wb_smart_review into one pure-Python, thread-safe Sync/Async SDK, 11-command CLI (wb-parser / wb-sdk), 8-tool MCP Server (wb-mcp), and optional 7-tab Desktop GUI (wb-gui).


🐍 Python Compatibility

Runtime Versions Status
CPython 3.8, 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.15, 3.16 ✅ All 27 tests pass (Win / Linux / macOS)
Free-Threaded (No-GIL) 3.13t, 3.14t, 3.15t, 3.16t ✅ Thread-safe (RLock + wb_parser._model)
PyPy 3.8 (Linux CI), 3.9, 3.10, 3.11, 3.12 ✅ Pure-Python core passes without C/Rust deps

Core SDK, CLI, and MCP Server install cleanly across 18 Python runtimes using pure-Python wb_parser._model and automatic HTTP transport selection (curl_cffi Chrome 124 TLS if installed → httpx[http2] → requests).


🚀 Unified Modules & Features

Module What It Solves Highlights
Catalog & CDN Engine (wb_parser.shards, client) Broken basket-15 caps, 404 .jpg links & Issue #2 (feedbacks1/2) Live sync (basket-01..65+ & math extrapolation beyond vol 28,805), real .webp URLs, root_id % 100 >= 50 feedback routing with alternate-shard fallback, direct card.json & price-history.json without WBAAS blocks
Sync & Async Clients (WBClient, AsyncWBClient, ParseWB) Concurrent batch scraping, search & legacy code compatibility WBClient (mixed targets via scrape_targets), AsyncWBClient (gather_cards with semaphore concurrency), and Duff89-compatible ParseWB / Item / Items / Feedback aliases
Resilient Transport (wb_parser.http) IPv6 CDN stalls, rate limits & mobile proxy failover curl_cffi Chrome TLS ([tls]) → httpx[http2] → requests fallback, forced IPv4, exponential backoff with jitter, HTTP/SOCKS5 proxy, MobileProxy IP rotation (proxy_change_url)
WB Wallet Pricing (wb_parser.wallet) Calculating real buyer checkout price with WB Кошелёк / ВБ Клуб Fetches live default-payment.json + settings-front.json thresholds (wlt1DiscountDisplayMaxPrice, pricesDeltaToShowSale) with geobasket mirror, floors prices via ROUND_FLOOR
Search Rank Tracker (wb_parser.rank) Monitoring keyword positions across WB search (wb_rank) Scans pages 1..N (popular, pricedown, priceup, rate, newly), computes global rank + page slot + SQLite rank_delta (▲/▼), batch checks (check_batch), styled Excel export
Smart Review Analyzer (wb_parser.reviews) Extracting buyer pros, cons, tags & size fit (wb_smart_review) Filters by exact nm_id color (auto-falling back to root_id if empty), clusters pros/cons, builds 1★–5★ distribution & matchingSize stats offline, or enriches via OpenAI / DeepSeek / ProxyAPI / Ollama
Price Tracker, Config & Alerts (tracker, config, export, telegram) Price drops, multi-format reports & Telegram monitoring Thread-safe SQLite wb_latest_prices / wb_price_history, .xlsx (hyperlinks & drop highlight), UTF-8 BOM .csv, .json, .jsonl, pandas.DataFrame ([dataframe]), .json/.toml WBConfig, isolated Telegram proxy
Desktop GUI (wb-gui) Visual control center ([gui] extra) Dark CustomTkinter UI with 7 tabs (Parser, Catalog Feed, Rank Tracker, Smart Reviews, Proxy & Session, Telegram, Logs) and storage/gui_config.json persistence
Native MCP Server (wb-mcp) Giving AI agents live Wildberries market intelligence 8 JSON-RPC 2.0 tools (2025-11-25 / 2025-06-18 / 2024-11-05) with structuredContent and env config (WB_PROXY, WB_COOKIES, WB_WBAAS_TOKEN, WB_TRACKER_DB)

Note on WB anti-bot (WBAAS 498/403): Direct CDN endpoints (wbbasket.ru card.json, upstreams, .webp, price-history.json, feedbacks1/2.wb.ru, and Wallet configs) work directly without proxies or cookies. Gateway search, seller catalogs, and live __internal/u-card checkout prices may require an RU residential/mobile proxy, cookies, or x-wbaas-token.


📦 Installation

PyPI (uv / pip)

# Core SDK, 11-command CLI (wb-parser / wb-sdk), and 8-tool MCP server (wb-mcp)
uv add wb-sdk-pro

# Run Desktop GUI directly without installing into your project (requires [gui] extra)
uvx --from "wb-sdk-pro[gui]" wb-gui

# Or via pip
pip install wb-sdk-pro

Optional Extras

# 7-Tab Desktop GUI (adds customtkinter, Pillow, curl_cffi)
uv add "wb-sdk-pro[gui]"

# Chrome TLS fingerprinting for HTTP/async requests (adds curl_cffi)
uv add "wb-sdk-pro[tls]"

# pandas DataFrame export via to_dataframe() (adds pandas)
uv add "wb-sdk-pro[dataframe]"   # or "wb-sdk-pro[pandas]"

# Everything (GUI + Chrome TLS + pandas)
uv add "wb-sdk-pro[all]"

Debian / Ubuntu (APT PPA)

Installs the core pure-Python SDK, CLI (wb-parser / wb-sdk), and MCP server (wb-mcp):

# 1-line setup (adds eminsk PPA + GPG key)
curl -sS https://eminsk.github.io/ppa/setup.sh | sudo bash

# Install
sudo apt install python3-wb-sdk-pro

From Source

git clone https://github.com/eminsk/wildberries_parser.git
cd wildberries_parser
uv sync              # core SDK + CLI + MCP
uv sync --extra gui  # include Desktop GUI + Chrome TLS

⚡ Quick Start — Python Library

1. Card Inspection, Sharded Feedbacks & Multi-Format Export

from wb_parser import DEST_CODES, WBClient, to_csv, to_excel, to_json

with WBClient(dest=DEST_CODES["Москва"], tracker_db="wb_prices.db") as wb:
    wb.sync_upstreams()
    item = wb.get_product(
        "https://www.wildberries.ru/catalog/141217830/detail.aspx",
        with_price_history=True,
    )
    print(item.name, item.brand, f"Reviews: {item.feedback_count} (★ {item.valuation})")
    to_excel([item], "result/wb_catalog.xlsx")
    to_csv([item], "result/wb_catalog.csv")
    to_json([item], "result/wb_catalog.json")

2. Async Batch Fetching (AsyncWBClient)

import asyncio
from wb_parser import AsyncWBClient

async def main():
    async with AsyncWBClient(concurrency=16, tracker_db="wb_prices.db") as wb:
        products = await wb.gather_cards([141217830, 181851928])
        for p in products:
            print(p.id, p.name, p.feedback_count)

asyncio.run(main())

3. WB Wallet Discount Price (wb_parser.wallet)

from wb_parser import WBClient

with WBClient() as wb:
    res = wb.wallet_price(4990)
    club = wb.wallet_price(4990, use_club=True)
    print(f"Base: {res.base_price} ₽ -> WB Wallet (-{res.discount_pct}%): {res.wallet_price} ₽")
    print(f"WB Club (-{club.discount_pct}%): {club.wallet_price} ₽")

4. Search Rank Tracking (wb_parser.rank)

from wb_parser import WBClient, rank_results_to_excel

with WBClient(cookies="x_wbaas_token=...", proxy="http://user:pass@ip:port") as wb:
    rank = wb.check_rank(141217830, "кроссовки sb dunk", max_pages=3, sort="popular")
    print(f"Position: #{rank.position} (Page {rank.page}, Slot #{rank.page_position}, Delta: {rank.rank_delta})")
    rank_results_to_excel([rank], "result/ranks.xlsx")

5. Smart Review Summary (wb_parser.reviews)

from wb_parser import WBClient

with WBClient() as wb:
    summary = wb.analyze_reviews(141217830, only_this_color=True, limit=100)
    print("Ratings:", summary.rating_distribution)
    print("Size fit:", summary.size_fit)
    print("Tags:", summary.bables_tags)
    print("Pros:", summary.top_pros)
    print("Cons:", summary.top_cons)

    # Optional OpenAI / DeepSeek / ProxyAPI / Ollama summarization:
    # summary = wb.analyze_reviews(141217830, ai_key="sk-...", ai_base_url="https://api.openai.com/v1")

6. Config Files (JSON / TOML), Telegram Alerts & Legacy ParseWB

from wb_parser import ParseWB, TelegramNotifier, WBConfig, WBClient

cfg = WBConfig.from_file("wb.toml")  # or wb.json
notifier = TelegramNotifier(bot_token="...", chat_id="...", proxy="socks5://127.0.0.1:1080")
with WBClient(dest=cfg.dest, tracker_db=cfg.tracker_db) as wb:
    item = wb.get_product(141217830)
    notifier.send_product(item)

# Backward-compatible Duff89 API:
ParseWB("https://www.wildberries.ru/seller/626520", output_path="seller.xlsx").parse()

🖥️ Desktop GUI (WB SDK Pro — 7 Tabs)

Install with [gui] extra (uv add "wb-sdk-pro[gui]" or uv sync --extra gui), then launch:

uv run wb-gui
# or from cloned repo:
uv run python run_gui.py
  1. 🔍 Парсер: Scrape product links, nm_id articles, /seller/... stores, or search queries with price/discount/rating/whitelist/blacklist keyword filters and 24/7 loop monitoring.
  2. 📦 Каталог товаров: Live cards displaying price, 💳 WB Wallet price, discount badge, price drop alert (📉), clickable "Открыть на WB ↗", and 1-click export to Excel .xlsx, CSV, and JSON.
  3. 📈 Позиции (Rank): Paste nm_id : keyword pairs, choose sort order (popular, pricedown, priceup, rate, newly), scan pages 1..N, see position movement (▲/▼), and export rank reports to Excel.
  4. 💬 Умные отзывы: Enter any WB URL or nm_id to extract buyer reviews, rating histogram, size fit stats, and side-by-side ✅ Pros & ❌ Cons (instant offline mode OR optional LLM API).
  5. 🌐 Прокси и Сессия: Choose delivery region (dest), configure HTTP/SOCKS5 proxy, MobileProxy rotation URL, cookies/x_wbaas_token, and ping CDN + live WB Wallet discount rates in 1 click.
  6. ✈️ Telegram: Forward product cards & alerts via a decoupled Telegram proxy.
  7. 📋 Журнал: Live execution log (all settings persist in storage/gui_config.json).

💻 CLI Commands (wb-parser / wb-sdk — 11 Subcommands)

All data commands support --dest, --proxy, --proxy-change-url, --cookies, --wbaas-token, and --db:

# 1. Sync live CDN shards (01..65+) and check WB Wallet / WB Club discount %
uv run wb-parser upstreams

# 2. Fetch product card (CDN card.json + feedbacks1/2 + .webp + optional --history) & save Excel
uv run wb-parser card https://www.wildberries.ru/catalog/141217830/detail.aspx --history -o item.xlsx

# 3. Search catalog with price/discount/rating filters and optional CDN enrichment
uv run wb-parser search "кроссовки" --pages 2 --min-discount 20 -o search.xlsx

# 4. Scrape all products for a seller URL, supplier ID, or sample product URL
uv run wb-parser seller 626520 --pages 5 --enrich -o seller.xlsx

# 5. Calculate exact live WB Wallet (or --club) discounted price
uv run wb-parser wallet 4990 --club

# 6. Run Smart Review Analyzer (offline or --ai-key / --ai-url / --ai-model)
uv run wb-parser reviews 141217830 --limit 60 -o reviews.json

# 7. Track product search rank across pages (--sort popular|pricedown|priceup|rate)
uv run wb-parser rank 141217830 "кроссовки dunk" --pages 3 -o ranks.xlsx

# 8. Check sharded feedbacks directly (--is-nm resolves nm_id -> root_id via CDN first)
uv run wb-parser feedbacks 181851928

# 9. View SQLite price drops
uv run wb-parser drops --db wb_prices.db

# 10. Start MCP JSON-RPC 2.0 server over stdio
uv run wb-parser mcp

# 11. Launch CustomTkinter Desktop GUI (requires [gui] extra)
uv run wb-parser gui

🤖 Native MCP Server (wb-mcp — 8 Tools)

Supports MCP protocol versions 2025-11-25, 2025-06-18, and 2024-11-05 (serverInfo.name = "wb-parser-mcp"), returning structured JSON alongside readable text:

{
  "mcpServers": {
    "wildberries": {
      "command": "uvx",
      "args": ["--from", "wb-sdk-pro", "wb-mcp"],
      "env": {
        "WB_TRACKER_DB": "wb_prices.db"
      }
    }
  }
}

Optional environment variables: WB_PROXY, WB_PROXY_CHANGE_URL, WB_COOKIES, WB_WBAAS_TOKEN, WB_TRACKER_DB.

Available tools: wb_get_card, wb_get_feedbacks, wb_search, wb_get_seller_catalog, wb_price_drops, wb_wallet_price, wb_check_rank, wb_smart_reviews.


🧪 Tests (pytest)

uv run pytest

27 tests passing across 18 Python runtimes in CI on Linux, Windows & macOS (CPython 3.8–3.16, Free-Threaded 3.13t–3.16t, PyPy 3.8–3.12), covering shard math, models, TOML/JSON config, sync/async clients, WB Wallet rounding & thresholds, multi-page rank tracking & history deltas, smart review color filtering & pros/cons extraction, Excel/CSV exports, MCP tools & WB_TRACKER_DB env config, CLI, GUI config/missing-extra handling, and No-GIL thread safety.

📄 License

MIT License.

Metadata

Release files for wb-sdk-pro 2.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wb-sdk-pro 2.2.1
File Size Uploaded Provenance Actions
wb_sdk_pro-2.2.1.tar.gz 188.6 kB Without provenance Details for wb_sdk_pro-2.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wb-sdk-pro 2.2.1
File Interpreter ABI Platform Actions
wb_sdk_pro-2.2.1-py3-none-any.whl Python 3 none any Details for wb_sdk_pro-2.2.1-py3-none-any.whl

Total release size: 259.6 kB

Release files / wb_sdk_pro-2.2.1.tar.gz

Download URL wb_sdk_pro-2.2.1.tar.gz
Size 188.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f671e57fa6fe703f0f70a77206105dfc6a52d815f8eb128f9014461d268caa67
BLAKE2b-256 checksum
How to use checksums
f256d21496bde984cd0b4df8f1c7123124f7b3564b24e2e2501d5cf4f7279b82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / wb_sdk_pro-2.2.1-py3-none-any.whl

Download URL wb_sdk_pro-2.2.1-py3-none-any.whl
Size 71.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2835b91fdd46ddb9fe755b8b740a6c11b1fc3688d12b74b2481fc5a6c99dc9f1
BLAKE2b-256 checksum
How to use checksums
b1d179e0d97417ae6e069c5dbd00fdc2c15a6aeb007f906040f4e22573262881
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for wb-sdk-pro 2.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page