Facility: 037932

Treasure State Storage

Stale Data Warning: This facility has not been successfully scraped in 30 days (threshold: 3 days). Data may be outdated.
Facility Information active
Facility ID
037932
Name
Treasure State Storage
URL
https://www.treasurestatestorage.com/sizingpricing/
Address
N/A
Platform
custom_facility_037932
Parser File
src/parsers/custom/facility_037932_parser.py
Last Scraped
2026-03-23 03:18:55.383909
Created
2026-03-06 23:45:35.865957
Updated
2026-03-23 03:18:55.391596
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_037932_parser.py)
"""Parser for Treasure State Storage (facility 037932).

This site uses a "GW Grid Options" WordPress plugin that renders unit pricing
as a grid of cards. Each card is a ``div.gw-go-col-wrap`` element containing:
- An ``h3`` with the size (e.g. "10 x 20")
- A ``span[data-id="amount"]`` with the monthly price as a plain integer
- ``li`` elements in ``ul.gw-go-body`` with plain-text descriptions
"""

from __future__ import annotations

from bs4 import BeautifulSoup

from src.parsers.base import BaseParser, ParseResult, UnitResult


class Facility037932Parser(BaseParser):
    """Extract storage units from Treasure State Storage.

    Unit cards use the GW Grid Options plugin structure:
        <div class="gw-go-col-wrap ...">
          <h3>10 x 20</h3>
          <span data-id="amount">100</span>
          <ul class="gw-go-body">
            <li>...</li>
          </ul>
        </div>
    """

    platform = "custom_facility_037932"

    def parse(self, html: str, url: str = "") -> ParseResult:
        soup = BeautifulSoup(html, "lxml")
        result = ParseResult(platform=self.platform, parser_name=self.__class__.__name__)

        containers = soup.select("div.gw-go-col-wrap")

        for container in containers:
            unit = UnitResult()

            # Extract size from h3
            size_el = container.select_one("h3")
            if size_el:
                size_text = size_el.get_text(strip=True)
                unit.size = size_text
                w, ln, sq = self.normalize_size(size_text)
                if w is not None:
                    unit.metadata = {"width": w, "length": ln, "sqft": sq}

            # Extract price from the first span[data-id="amount"] (front-face coin)
            price_el = container.select_one("span[data-id='amount']")
            if price_el:
                unit.price = self.normalize_price(price_el.get_text(strip=True))

            # Extract description from li body cells
            li_items = container.select("ul.gw-go-body li")
            desc_parts: list[str] = []
            for li in li_items:
                cell = li.select_one("div.gw-go-body-cell")
                if cell:
                    desc_parts.append(cell.get_text(separator=" ", strip=True))
            if desc_parts:
                unit.description = "; ".join(desc_parts)

            if unit.size or unit.price:
                result.units.append(unit)

        if not result.units:
            result.warnings.append("No units found on page")

        return result

Scrape Runs (5)

Run #1475 Details

Status
exported
Parser Used
Facility037932Parser
Platform Detected
storageunitsoftware
Units Found
7
Stage Reached
exported
Timestamp
2026-03-23 03:18:46.441947
Timing
Stage Duration
Fetch8857ms
Detect38ms
Parse22ms
Export5ms

Snapshot: 037932_20260323T031855Z.html · Show Snapshot · Open in New Tab

Parsed Units (7)

5 x 10

$55.00/mo

10 x 10

$75.00/mo

10 x 15

$85.00/mo

10 x 20

$100.00/mo

10 x 25

$115.00/mo

10 x 30

$140.00/mo

10 x 40

$160.00/mo

← Back to dashboard