Facility: 100558

Houston Self Storage

Stale Data Warning: This facility has not been successfully scraped in 26 days (threshold: 3 days). Data may be outdated.
Facility Information active
Facility ID
100558
Name
Houston Self Storage
URL
https://www.premiumspaces.com/storage-locations/tx/houston/215-wynne-st/
Address
215 Wynne St, Houston, TX 77009
Platform
custom_facility_100558
Parser File
src/parsers/custom/facility_100558_parser.py
Last Scraped
2026-03-27 13:42:16.468280
Created
2026-03-23 02:35:08.816820
Updated
2026-03-27 13:42:16.495263
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_100558_parser.py)
"""Parser for Premium Spaces storage facility 100558."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility100558Parser(BaseParser):
    """Extract storage units from Premium Spaces (se-vapor platform).

    Units are rendered in div.unit-item elements. Each contains:
    - div.unit-item__dimension: size text (e.g. "4.5' x 4.5'")
    - div.unit-item__category: category label
    - div.unit-item-price__web-rate: web rate price string (e.g. "$36.00")
    - div.unit-item__promotions span.unit-item-promotion: promo text
    """

    platform = "custom_facility_100558"

    _CLEAN_RE = re.compile(r"[^\d.]")

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

        seen: set[tuple[str, str]] = set()

        for card in soup.find_all(class_="unit-item"):
            # Skip nested sub-elements — only top-level unit-item containers
            if not card.get("data-unit-id"):
                continue

            # --- size ---
            dim_el = card.find(class_="unit-item__dimension")
            if not dim_el:
                continue
            size_text = dim_el.get_text(strip=True)
            # Remove span/state wrappers; keep just the text
            if not size_text:
                continue

            # --- price ---
            price_el = card.find(class_="unit-item-price__web-rate")
            if not price_el:
                continue
            # Remove the label span before extracting price text
            for label in price_el.find_all(class_="unit-item-price__label"):
                label.decompose()
            price_text = price_el.get_text(strip=True)
            price = self.normalize_price(price_text)
            if price is None:
                continue

            key = (size_text, price_text)
            if key in seen:
                continue
            seen.add(key)

            # --- promotion ---
            promo_el = card.find(class_="unit-item-promotion")
            promo = promo_el.get_text(strip=True) if promo_el else None

            # --- description (category + features) ---
            cat_el = card.find(class_="unit-item__category")
            desc = cat_el.get_text(strip=True) if cat_el else None

            unit = UnitResult(
                size=size_text,
                price=price,
                promotion=promo,
                description=desc,
            )
            w, ln, sq = self.normalize_size(size_text)
            if w is not None:
                unit.metadata = {"width": w, "length": ln, "sqft": sq}
            result.units.append(unit)

        if not result.units:
            result.warnings.append("No units found in Premium Spaces unit-item cards")

        return result

Scrape Runs (3)

Run #1591 Details

Status
exported
Parser Used
Facility100558Parser
Platform Detected
ccstorage
Units Found
7
Stage Reached
exported
Timestamp
2026-03-27 13:42:11.185436
Timing
Stage Duration
Fetch5015ms
Detect148ms
Parse57ms
Export18ms

Snapshot: 100558_20260327T134216Z.html · Show Snapshot · Open in New Tab

Parsed Units (7)

5' x 10'

$65.00/mo

6' x 15'

$91.00/mo

10' x 10'

$92.00/mo

10' x 15'

$170.00/mo

10' x 20'

$175.00/mo

10' x 30'

$284.00/mo

16' x 30'

$454.00/mo

← Back to dashboard