Facility: 092023

Your Extra Closet - Brookland

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
092023
Name
Your Extra Closet - Brookland
URL
https://www.yecstorage.com/location/USA/AR/Brookland/brookland/
Address
9447 US 49, Brookland, AR 72417, USA, Brookland, Arkansas 72417
Platform
custom_facility_092023
Parser File
src/parsers/custom/facility_092023_parser.py
Last Scraped
2026-03-27 13:42:10.386189
Created
2026-03-23 02:35:08.816820
Updated
2026-03-27 13:42:10.386189
Parser & Healing Diagnosis needs_fix
Parser Status
⚠ Needs Fix
Status Reason
Parser returned 0 units
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_092023_parser.py)
"""Parser for Your Extra Closet - Brookland."""

from __future__ import annotations

import json
import re

from bs4 import BeautifulSoup

from src.parsers.base import BaseParser, ParseResult


class Facility092023Parser(BaseParser):
    """Extract storage units from Your Extra Closet - Brookland.

    Uses The Storage Group (TSG) widget. Unit data is loaded via AJAX,
    so the static HTML only contains facility metadata in a JS variable.
    The actual unit listing requires JS execution. This parser extracts
    whatever is available from the static snapshot.
    """

    platform = "custom_facility_092023"

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

        # Try to extract facility metadata from inline script
        for script in soup.find_all("script"):
            text = script.get_text()
            if "const facility" in text:
                match = re.search(r"const facility\s*=\s*(\{.*?\});", text, re.DOTALL)
                if match:
                    try:
                        data = json.loads(match.group(1))
                        result.warnings.append(
                            f"TSG widget — facility '{data.get('facility_original_name', '')}' "
                            f"at {data.get('facility_address', '')}. "
                            "Unit data loaded via AJAX — not in static HTML."
                        )
                    except (json.JSONDecodeError, KeyError):
                        result.warnings.append(
                            "TSG widget found but could not parse facility JSON"
                        )
                    return result

        result.warnings.append(
            "TSG widget — unit data loaded dynamically via AJAX, not in static HTML"
        )

        return result

Scrape Runs (3)

Run #1588 Details

Status
exported
Parser Used
Facility092023Parser
Platform Detected
table_layout
Units Found
0
Stage Reached
exported
Timestamp
2026-03-27 13:42:02.237219
Timing
Stage Duration
Fetch6933ms
Detect34ms
Parse18ms
Export15ms

Snapshot: 092023_20260327T134209Z.html · Show Snapshot · Open in New Tab

No units found in this run.

All Failures for this Facility (3)

parse _WarningAsException scraper no_units_extracted warning Run #N/A | 2026-03-27 13:42:10.366196

No units extracted for 092023

Stack trace
src.reporting.failure_reporter._WarningAsException: No units extracted for 092023
parse _WarningAsException scraper no_units_extracted warning Run #N/A | 2026-03-27 13:42:09.276158

No units extracted for 092023

Stack trace
src.reporting.failure_reporter._WarningAsException: No units extracted for 092023
parse _WarningAsException scraper no_units_extracted warning Run #N/A | 2026-03-23 02:42:14.419697

No units extracted for 092023

Stack trace
src.reporting.failure_reporter._WarningAsException: No units extracted for 092023

← Back to dashboard