Facility: 027575

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
027575
Name
IStorage
URL
https://www.nsastorage.com/storage/texas/storage-units-houston/3770-Center-St-498
Address
3770 Center St, Houston, TX 77007
Platform
custom_facility_027575
Parser File
src/parsers/custom/facility_027575_parser.py
Last Scraped
2026-03-27 13:41:02.593128
Created
2026-03-23 02:35:08.816820
Updated
2026-03-27 13:41:02.622168
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_027575_parser.py)
"""Parser for iStorage / NSA Storage facility 027575."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility027575Parser(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_027575"

    _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 #1042 Details

Status
exported
Parser Used
Facility027575Parser
Platform Detected
ccstorage
Units Found
17
Stage Reached
exported
Timestamp
2026-03-23 02:40:46.843044
Timing
Stage Duration
Fetch5875ms
Detect182ms
Parse70ms
Export6ms

Snapshot: 027575_20260323T024052Z.html · Show Snapshot · Open in New Tab

Parsed Units (17)

5 x 4.9

$57.00/mo
Street: $37.00

5 x 4.9

$54.00/mo
Street: $35.00

5 x 5

$59.00/mo
Street: $38.00

5 x 7.5

$91.00/mo
Street: $59.00

5 x 10

$108.00/mo
Street: $70.00

5 x 10

$93.00/mo
Street: $60.00

7.5 x 10

$185.00/mo
Street: $120.00

7.5 x 10

$133.00/mo
Street: $86.00

10 x 10

$204.00/mo
Street: $132.00

10 x 12.5

$250.00/mo
Street: $162.00

10 x 12.5

$239.00/mo
Street: $155.00

10 x 15

$271.00/mo
Street: $176.00

10 x 15

$240.00/mo
Street: $156.00

10 x 20

$424.00/mo
Street: $275.00

10 x 20

$345.00/mo
Street: $224.00

10 x 30

$574.00/mo
Street: $373.00

10 x 30

$460.00/mo
Street: $299.00

← Back to dashboard