Facility: 004604

Metro Park 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
004604
Name
Metro Park Mini Storage
URL
https://metroparkministorage.storageunitsoftware.com/pages/rent
Address
1172 Whigham Pl, Tuscaloosa, AL 35405, USA, Tuscaloosa, Alabama 35405
Platform
custom_facility_004604
Parser File
src/parsers/custom/facility_004604_parser.py
Last Scraped
2026-03-27 13:59:15.173521
Created
2026-03-14 16:21:53.706708
Updated
2026-03-27 13:59:15.199912
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_004604_parser.py)
"""Parser for Metro Park Mini Storage (StorageUnitSoftware platform)."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility004604Parser(BaseParser):
    """Extract storage units from Metro Park Mini Storage.

    The site uses the StorageUnitSoftware Bootstrap card layout.
    Each unit is rendered inside ``div.card.rounded-0`` with an
    ``h4.primary-color`` heading for the size label and a
    ``strong.price.primary-color`` element for the monthly rate.
    """

    platform = "custom_facility_004604"

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

        cards = soup.select("div.card.rounded-0")
        for card in cards:
            heading = card.select_one("h4.primary-color")
            price_el = card.select_one("strong.price")
            if not heading:
                continue

            label = heading.get_text(strip=True)

            # Parse size from heading, e.g. "10x10 (10 x 10 x 10)"
            size_text = label.split("(")[0].strip() if "(" in label else label

            unit = UnitResult()
            unit.size = size_text
            w, ln, sq = self.normalize_size(size_text)
            if w is not None:
                unit.metadata = {"width": w, "length": ln, "sqft": sq}

            # Extract price
            if price_el:
                # Check for strikethrough (street rate) + discounted pattern
                struck = price_el.select_one("s")
                if struck:
                    unit.price = self.normalize_price(struck.get_text(strip=True))
                    price_span = price_el.select_one("span")
                    if price_span:
                        span_text = re.sub(r"/\s*month", "", price_span.get_text(strip=True)).strip()
                        unit.sale_price = self.normalize_price(span_text)
                else:
                    price_text = re.sub(r"/\s*month\*?", "", price_el.get_text(strip=True)).strip()
                    unit.price = self.normalize_price(price_text)

            # Availability from button text
            card_text = card.get_text(separator=" ", strip=True).lower()
            if "rent now" in card_text:
                unit.scarcity = "Available"
            elif "waiting list" in card_text or "waitlist" in card_text:
                unit.scarcity = "Waitlist"
            elif "sold out" in card_text or "no units" in card_text:
                unit.scarcity = "Unavailable"

            unit.description = label
            if unit.size or unit.price:
                result.units.append(unit)

        if not result.units:
            result.warnings.append("No unit cards found on page")

        return result

Scrape Runs (5)

Run #1264 Details

Status
exported
Parser Used
Facility004604Parser
Platform Detected
storageunitsoftware
Units Found
1
Stage Reached
exported
Timestamp
2026-03-23 03:00:42.084271
Timing
Stage Duration
Fetch2418ms
Detect0ms
Parse12ms
Export6ms

Snapshot: 004604_20260323T030044Z.html · Show Snapshot · Open in New Tab

Parsed Units (1)

10x10

$0.00/mo
Street: $85.00
Available

← Back to dashboard