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 #1563 Details

Status
exported
Parser Used
Facility027575Parser
Platform Detected
ccstorage
Units Found
18
Stage Reached
exported
Timestamp
2026-03-27 13:40:57.546777
Timing
Stage Duration
Fetch4260ms
Detect121ms
Parse53ms
Export20ms

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

Parsed Units (18)

5 x 4.9

$57.00/mo
Street: $37.00

5 x 4.9

$54.00/mo
Street: $35.00

5 x 5

$65.00/mo
Street: $42.00

5 x 7.5

$99.00/mo
Street: $64.00

5 x 10

$127.00/mo
Street: $82.00

5 x 10

$100.00/mo
Street: $65.00

7.5 x 10

$202.00/mo
Street: $131.00

7.5 x 10

$148.00/mo
Street: $96.00

10 x 10

$222.00/mo
Street: $144.00

10 x 10

$216.00/mo
Street: $140.00

10 x 12.5

$271.00/mo
Street: $176.00

10 x 12.5

$260.00/mo
Street: $169.00

10 x 15

$305.00/mo
Street: $198.00

10 x 15

$262.00/mo
Street: $170.00

10 x 20

$467.00/mo
Street: $303.00

10 x 20

$379.00/mo
Street: $246.00

10 x 30

$625.00/mo
Street: $406.00

10 x 30

$502.00/mo
Street: $326.00

← Back to dashboard