Facility: 101646

IStorage

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
101646
Name
IStorage
URL
https://www.nsastorage.com/storage/texas/storage-units-houston/2915-Old-Spanish-Trl-499
Address
2915 Old Spanish Trl, Houston, TX 77054
Platform
custom_facility_101646
Parser File
src/parsers/custom/facility_101646_parser.py
Last Scraped
2026-03-27 13:42:29.949727
Created
2026-03-23 02:35:08.816820
Updated
2026-03-27 13:42:29.978272
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_101646_parser.py)
"""Parser for iStorage / NSA Storage facility 101646."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility101646Parser(BaseParser):
    """Extract storage units from NSA Storage (iStorage) facility pages.

    Units are in div.unit-select-item cards with dimension headings
    and prices in div.part_item_price.  Same platform layout as 017988.
    """

    platform = "custom_facility_101646"

    _SIZE_RE = re.compile(r"(\d+\.?\d*)\s*[xX×]\s*(\d+\.?\d*)")

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

        cards = soup.find_all(class_="unit-select-item")
        seen: set[tuple[str, str]] = set()

        for card in cards:
            heading = card.find(class_="unit-select-item-detail-heading")
            if not heading:
                continue
            size_text = heading.get_text(strip=True)
            if not self._SIZE_RE.search(size_text):
                continue

            price_div = card.find(class_="part_item_price")
            if not price_div:
                continue
            for sub in price_div.find_all("sub"):
                sub.decompose()
            price_text = price_div.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)

            in_store_price: float | None = None
            old_price_div = card.find(class_="part_item_old_price")
            if old_price_div:
                stroke = old_price_div.find(class_="stroke")
                if stroke:
                    in_store_price = self.normalize_price(stroke.get_text(strip=True))

            promo_spans = card.find_all(class_="part_badge")
            promo = "; ".join(
                s.get_text(strip=True) for s in promo_spans if s.get_text(strip=True)
            ) or None

            feature_items = card.find_all("li")
            desc = ", ".join(li.get_text(strip=True) for li in feature_items if li.get_text(strip=True))

            unit = UnitResult(
                size=size_text,
                price=price,
                sale_price=in_store_price,
                promotion=promo,
                description=desc or None,
            )
            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 NSA Storage unit-select-item cards")

        return result

Scrape Runs (3)

Run #1596 Details

Status
exported
Parser Used
Facility101646Parser
Platform Detected
ccstorage
Units Found
19
Stage Reached
exported
Timestamp
2026-03-27 13:42:23.071758
Timing
Stage Duration
Fetch4671ms
Detect47ms
Parse42ms
Export21ms

Snapshot: 101646_20260327T134227Z.html · Show Snapshot · Open in New Tab

Parsed Units (19)

5 x 4.9

$37.00/mo
Street: $24.00

5 x 4.9

$47.00/mo
Street: $30.00

5 x 5

$39.00/mo
Street: $25.00

5 x 5

$33.00/mo
Street: $21.00

5 x 7.5

$91.00/mo
Street: $59.00

5 x 10

$93.00/mo
Street: $60.00

5 x 10

$80.00/mo
Street: $52.00

5 x 10

$65.00/mo
Street: $42.00

7.5 x 10

$94.00/mo
Street: $61.00

7.5 x 10

$85.00/mo
Street: $55.00

10 x 10

$102.00/mo
Street: $66.00

10 x 10

$108.00/mo
Street: $70.00

10 x 12.5

$130.00/mo
Street: $84.00

10 x 15

$211.00/mo
Street: $137.00

10 x 15

$154.00/mo
Street: $100.00

10 x 20

$325.00/mo
Street: $211.00

10 x 20

$267.00/mo
Street: $173.00

10 x 20

$245.00/mo
Street: $159.00

10 x 25

$504.00/mo
Street: $327.00

← Back to dashboard