Facility: 041936

Liberty Self Storage

Stale Data Warning: This facility has not been successfully scraped in 26 days (threshold: 3 days). Data may be outdated.
⚠ Unit Count Anomaly (Critical): Current run has 0 units, expected baseline is 11 (-100.0% change, delta: -11).
Facility Information active
Facility ID
041936
Name
Liberty Self Storage
URL
https://www.liberty-selfstorage.com/2208-mercer-butler-pike-grove-city-pa-16127
Address
8 Amsterdam Road, Grove City, PA 16127, USA, Grove City, Pennsylvania 16127
Platform
custom_facility_041936
Parser File
src/parsers/custom/facility_041936_parser.py
Last Scraped
2026-03-27 14:02:00.166128
Created
2026-03-14 16:21:53.706708
Updated
2026-03-27 14:02:00.166128
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_041936_parser.py)
"""Parser for Liberty Self Storage."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility041936Parser(BaseParser):
    """Extract storage units from Liberty Self Storage using table layout."""

    platform = "custom_facility_041936"

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

        table = soup.select_one("table._2QREMkZenGaFOjxHn8CDhU.table")
        if not table:
            # Fallback: find table with most price-containing rows
            tables = soup.find_all("table")
            best, best_count = None, 0
            for t in tables:
                c = sum(1 for r in t.find_all("tr") if "$" in r.get_text())
                if c > best_count:
                    best_count = c
                    best = t
            table = best

        if not table:
            result.warnings.append("No pricing table found")
            return result

        rows = table.find_all("tr")
        for row in rows:
            cells = row.find_all(["td", "th"])
            if len(cells) < 2:
                continue

            row_text = row.get_text()
            # Skip header rows
            if not re.search(r"\$\d+", row_text) and not re.search(r"\d+\s*[\'\'xX]\s*\d+", row_text):
                continue

            unit = UnitResult()

            # Extract size
            size_text = cells[1].get_text(strip=True)
            if size_text:
                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
            price_text = cells[2].get_text(strip=True)
            if price_text:
                # Try to find the price in this cell
                price_match = re.search(r"\$(\d[\d,.]*)", price_text)
                if price_match:
                    unit.price = self.normalize_price(price_match.group(1))

            unit.description = row.get_text(separator=" ", strip=True)

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

        if not result.units:
            result.warnings.append("No units found in table")

        return result

Scrape Runs (5)

Run #2071 Details

Status
exported
Parser Used
Facility041936Parser
Platform Detected
storageunitsoftware
Units Found
0
Stage Reached
exported
Timestamp
2026-03-27 14:01:56.395466
Timing
Stage Duration
Fetch3624ms
Detect47ms
Parse22ms
Export15ms

Snapshot: 041936_20260327T140200Z.html · Show Snapshot · Open in New Tab

No units found in this run.

All Failures for this Facility (2)

parse _WarningAsException scraper no_units_extracted warning Run #N/A | 2026-03-27 14:02:00.147744

No units extracted for 041936

Stack trace
src.reporting.failure_reporter._WarningAsException: No units extracted for 041936
parse _WarningAsException scraper no_units_extracted warning Run #N/A | 2026-03-27 14:01:59.182180

No units extracted for 041936

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

← Back to dashboard