Facility: 102575

FLEX 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
102575
Name
FLEX STORAGE
URL
https://www.flexstorage.com/al/self-storage-clay.php
Address
6401 Old Springville Rd, Pinson, AL 35126, USA, Pinson, Alabama 35126
Platform
custom_facility_102575
Parser File
src/parsers/custom/facility_102575_parser.py
Last Scraped
2026-03-27 14:06:17.354884
Created
2026-03-14 16:21:53.706708
Updated
2026-03-27 14:06:17.383330
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_102575_parser.py)
"""Parser for FLEX STORAGE."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility102575Parser(BaseParser):
    """Extract storage units from FLEX STORAGE using regex fallback."""

    platform = "custom_facility_102575"

    _UNIT_RE = re.compile(
        r"(\d+\s*[\'\'\u2032]?\s*[xX\u00d7]\s*\d+\s*[\'\'\u2032]?)"
        r"[^\$]{0,100}"
        r"\$(\d[\d,.]*)",
        re.DOTALL,
    )

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

        # Remove script/style noise
        for tag in soup.find_all(["script", "style"]):
            tag.decompose()

        body_text = soup.get_text(separator="\n")

        seen = set()
        for m in self._UNIT_RE.finditer(body_text):
            size_text = m.group(1).strip()
            price_text = m.group(2).strip()

            key = (size_text, price_text)
            if key in seen:
                continue
            seen.add(key)

            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}
            unit.price = self.normalize_price(price_text)
            unit.description = m.group(0).strip()[:200]

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

        if not result.units:
            result.warnings.append("No units found via regex")

        return result

Scrape Runs (5)

Run #1352 Details

Status
exported
Parser Used
Facility102575Parser
Platform Detected
storageunitsoftware
Units Found
18
Stage Reached
exported
Timestamp
2026-03-23 03:08:42.726227
Timing
Stage Duration
Fetch3649ms
Detect91ms
Parse51ms
Export9ms

Snapshot: 102575_20260323T030846Z.html · Show Snapshot · Open in New Tab

Parsed Units (18)

5′ x 10′

$46.00/mo

10′ x 10′

$155.00/mo

10′ x 10′

$148.00/mo

10′ x 15′

$181.00/mo

10′ x 15′

$170.00/mo

12′ x 14′

$187.00/mo

10′ x 17′

$227.00/mo

10′ x 20′

$208.00/mo

10′ x 20′

$300.00/mo

10′ x 20′

$240.00/mo

10′ x 20′

$265.00/mo

10′ x 25′

$287.00/mo

10′ x 25′

$275.00/mo

10′ x 25′

$369.00/mo

15′ x 20′

$432.00/mo

15′ x 20′

$316.00/mo

20′ x 20′

$438.00/mo

20′ x 25′

$548.00/mo

← Back to dashboard