Facility: 021871

Mckee Road Mini 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
021871
Name
Mckee Road Mini Storage
URL
http://mckeeroadministorage.com/
Address
2801 Mckee Rd, San Jose, CA 95127, USA, San Jose, California 95127
Platform
custom_facility_021871
Parser File
src/parsers/custom/facility_021871_parser.py
Last Scraped
2026-03-27 13:40:49.627085
Created
2026-03-23 02:35:08.816820
Updated
2026-03-27 13:40:49.655856
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_021871_parser.py)
"""Parser for McKee Road Mini Storage (Wix site, starting price only)."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility021871Parser(BaseParser):
    """Extract storage units from McKee Road Mini Storage.

    This Wix site only shows a starting price ($58.75) on the homepage.
    Unit sizes are on a separate page. We extract what is available.
    """

    platform = "custom_facility_021871"

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

        for tag in soup.find_all(["script", "style"]):
            tag.decompose()

        text = soup.get_text(separator="\n")

        # Try to find size x price patterns
        size_price_re = re.compile(
            r"(\d+)\s*['\u2019\u2032]?\s*[xX×]\s*(\d+)\s*['\u2019\u2032]?"
            r"[^\$]{0,80}"
            r"\$(\d[\d,.]*)",
            re.DOTALL,
        )
        for m in size_price_re.finditer(text):
            w, ln = float(m.group(1)), float(m.group(2))
            if w < 3 or ln < 3:
                continue
            unit = UnitResult()
            unit.size = f"{int(w)}x{int(ln)}"
            unit.price = self.normalize_price(m.group(3))
            unit.metadata = {"width": w, "length": ln, "sqft": w * ln}
            result.units.append(unit)

        # Extract the starting price if no full units found
        if not result.units:
            price_match = re.search(r"\$(\d+\.?\d*)", text)
            if price_match:
                price = self.normalize_price(price_match.group(1))
                if price and price > 10:
                    unit = UnitResult()
                    unit.price = price
                    unit.description = "Units starting at"
                    result.units.append(unit)

        if not result.units:
            result.warnings.append("No units found - limited pricing on homepage")

        return result

Scrape Runs (3)

Run #1039 Details

Status
exported
Parser Used
Facility021871Parser
Platform Detected
table_layout
Units Found
1
Stage Reached
exported
Timestamp
2026-03-23 02:40:34.748055
Timing
Stage Duration
Fetch2831ms
Detect33ms
Parse15ms
Export10ms

Snapshot: 021871_20260323T024037Z.html · Show Snapshot · Open in New Tab

Parsed Units (1)

Unknown Size

$58.75/mo

← Back to dashboard