Facility: 017988
IStorage
- Facility ID
- 017988
- Name
- IStorage
- URL
- https://www.nsastorage.com/storage/texas/storage-units-houston/224-W-Gray-St-495
- Address
- 224 W Gray Street, Houston, TX 77019
- Platform
- custom_facility_017988
- Parser File
- src/parsers/custom/facility_017988_parser.py
- Last Scraped
- 2026-03-27 13:40:46.679718
- Created
- 2026-03-23 02:35:08.816820
- Updated
- 2026-03-27 13:40:46.707036
- Parser Status
- ✓ Working
- Status Reason
- N/A
- Last Healing Attempt
- Not attempted
Parser Source (src/parsers/custom/facility_017988_parser.py)
"""Parser for iStorage / NSA Storage on W Gray St (facility 017988)."""
from __future__ import annotations
import re
from bs4 import BeautifulSoup
from src.parsers.base import BaseParser, ParseResult, UnitResult
class Facility017988Parser(BaseParser):
"""Extract storage units from NSA Storage (iStorage) facility pages.
The NSA Storage platform renders unit cards in `div.unit-select-item` elements.
Each card contains a heading with the dimension (e.g. "5 x 5") and a price
in `div.part_item_price`. An optional strikethrough in-store price appears
in `div.part_item_old_price span.stroke`. Promotional badges are listed in
`div.part_badges`.
"""
platform = "custom_facility_017988"
_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:
# --- size ---
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
# --- web price ---
price_div = card.find(class_="part_item_price")
if not price_div:
continue
# Strip the <sub>/mo</sub> tag and get raw text
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 (original / strikethrough) price ---
# NSA shows the promotional/web rate in part_item_price and the
# full in-store rate in part_item_old_price (with a .stroke span).
# price = promotional web rate (what the customer pays online)
# sale_price = full in-store rate (the crossed-out reference price)
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))
unit_price = price
unit_sale = in_store_price
# --- promotion ---
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
# --- description (features) ---
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=unit_price,
sale_price=unit_sale,
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 #1554 Details
- Status
- exported
- Parser Used
- Facility017988Parser
- Platform Detected
- ccstorage
- Units Found
- 14
- Stage Reached
- exported
- Timestamp
- 2026-03-27 13:40:41.388596
Timing
| Stage | Duration |
|---|---|
| Fetch | 4197ms |
| Detect | 40ms |
| Parse | 41ms |
| Export | 19ms |
Snapshot: 017988_20260327T134045Z.html · Show Snapshot · Open in New Tab
Parsed Units (14)
5 x 5
$79.00/mo
Street: $51.00
5 x 5
$57.00/mo
Street: $37.00
5 x 7.5
$90.00/mo
Street: $58.00
5 x 10
$130.00/mo
Street: $84.00
5 x 10
$105.00/mo
Street: $68.00
7.5 x 10
$157.00/mo
Street: $102.00
7.5 x 10
$127.00/mo
Street: $82.00
8 x 10
$128.00/mo
Street: $83.00
10 x 10
$157.00/mo
Street: $102.00
10 x 12.5
$276.00/mo
Street: $179.00
10 x 12.5
$200.00/mo
Street: $130.00
10 x 15
$234.00/mo
Street: $152.00
10 x 20
$287.00/mo
Street: $186.00
10 x 25
$356.00/mo
Street: $231.00