Daily Product Data Extraction from Leaf Trade for Inventory Insights

Introduction

B2B cannabis platforms like Leaf Trade manage thousands of wholesale transactions daily between brands and dispensaries. For distributors, gaining visibility into inventory movements, product listings, and pricing trends on a daily basis is critical to optimize operations, forecasting, and sales outreach. iWeb Data Scraping partnered with a multi-state cannabis distributor to automate the daily scraping of product and inventory data from Leaf Trade, converting unstructured listings into actionable inventory intelligence.

banner
objectives

Objectives:

  • Extract daily product catalog data including product name, strain, brand, batch, inventory levels, and pricing.
  • Track stock changes, sold-out alerts, and new listings.
  • Deliver formatted inventory datasets for BI dashboards and CRM alerts.
  • Maintain compliance by accessing only publicly listed B2B marketplace data.

Challenges:

  • Leaf Trade UI is dynamically loaded and protected with login/auth-based workflows.
  • Inventory is highly volatile, with frequent updates across batch-level SKUs.
  • Some states use different interfaces or compliance portals.
the-challenges
iWeb Data Scraping’s Strategy

iWeb Data Scraping’s Strategy:

1. Secure Authenticated Access:

  • Session-based token authentication managed via automated headless browser login.
  • Data collected only from partner-permitted and public product listings.

2. Daily Product Feed Extraction:

  • Captured product-level details:
  • Product Name & Brand
  • Batch ID
  • Strain Type (Indica/Sativa/Hybrid)
  • Unit (e.g., 1g, 3.5g, Pack)
  • Available Inventory (Units / Weight)
  • Price per Unit (Wholesale)

3. Change Detection Engine

  • Inventory delta tracking:
  • Items newly listed
  • Out-of-stock flagged items
  • Price drop/increase alerts

Sample Output Table:

Product Name Brand Strain Batch ID Unit Qty Available Price/Unit Date Status
Mango Kush 3.5g GreenCo Hybrid B7892MK 3.5g 120 Packs $9.25 2025-06-06 New Listing
OG Diesel 1g Vape CloudX Sativa B561OG 1g 0 Units $16.00 2025-06-06 Out of Stock
Purple Haze 1g Vape CloudX Hybrid B561PH 1g 85 Units $15.50 2025-06-06 Price Drop

Results:

Tracked 3,500+ SKU Changes Per Day

  • Across multiple states and facility partners.

99% Accuracy in Product-Batch Matching

  • Ensured batch-level auditability with delta logs.

Improved Inventory Planning by 2 Days on Average

  • Provided early OOS and restock visibility.

Triggered 4x More Timely Sales Alerts

  • Reps notified within hours of new product listings.
result
Dashboards Delivered

Dashboards Delivered:

  • Daily Inventory Feed (CSV, JSON, API format)
  • Out-of-Stock Alerts by Brand & Region
  • Batch-Level Stock Movement Tracker
  • New Listing Notification Board

Technology Stack:

  • Languages: Python, JavaScript
  • Tools: Selenium, Playwright
  • Database: PostgreSQL, MongoDB
  • Scheduler: Cron + AWS Lambda (daily)
  • Delivery: REST API, Email, S3 Buckets
Technology Stack
Why-iWeb-Data-Scraping

Why iWeb Data Scraping?

  • B2B cannabis scraping experience with regulatory awareness
  • Custom batch- and brand-level analytics support
  • High data quality for inventory forecasting
  • Preferred partner for cannabis tech & wholesale teams

Client Testimonial

“Thanks to iWeb Data Scraping, we’re no longer guessing. Our inventory, pricing, and new batch insights are delivered daily and ready for action.”

— Regional Ops Lead, Multi-State Distributor

Next Steps:

  • Integrate sales velocity metrics and reorder thresholds.
  • Expand scraping to other B2B platforms like Jane Roots and IHeartJane.
  • Enable competitor catalog tracking for sales team targeting.
Next Steps

Conclusion

Leaf Trade’s dynamic B2B environment demands daily visibility. With iWeb Data Scraping’s automated inventory extraction system, cannabis distributors gain a competitive edge—making faster restock decisions, smarter pricing moves, and proactive sales engagement. In a space where freshness and availability matter, timing is everything.

Let’s Talk About Product

What's Next?

We start by signing a Non-Disclosure Agreement (NDA) to protect your ideas.

Our team will analyze your needs to understand what you want.

You'll get a clear and detailed project outline showing how we'll work together.

We'll take care of the project, allowing you to focus on growing your business.