Facility: 42

Store Acacia

Stale Data Warning: This facility has not been successfully scraped in 30 days (threshold: 3 days). Data may be outdated.
Facility Information active
Facility ID
42
Name
Store Acacia
URL
https://storeacacia.com/
Address
N/A
Platform
custom_facility_42
Parser File
src/parsers/custom/facility_42_parser.py
Last Scraped
2026-03-23 03:15:37.917716
Created
2026-03-14 16:21:53.706708
Updated
2026-03-23 03:15:37.926139
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_42_parser.py)
"""Parser for Acacia Storage (Ripon, CA)."""
from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility42Parser(BaseParser):
    """Extract storage units from storeacacia.com.

    Built with a website builder (x.com/Duda). Sizes are displayed as ``<h4>``
    elements (e.g. ``5x10``) followed by a sibling ``<div>`` with price
    (e.g. ``$120/mo``).
    """

    platform = "custom_facility_42"

    _SIZE_RE = re.compile(r"^(\d+)\s*x\s*(\d+)$", re.IGNORECASE)
    _PRICE_RE = re.compile(r"\$([\d,.]+)")

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

        # Find all h4 tags with size text like "5x10"
        for h4 in soup.find_all("h4"):
            text = h4.get_text(strip=True)
            size_match = self._SIZE_RE.match(text)
            if not size_match:
                continue

            width = float(size_match.group(1))
            length = float(size_match.group(2))

            # Look for price in next sibling div
            price = None
            next_div = h4.find_next_sibling("div")
            if next_div:
                price_text = next_div.get_text(strip=True)
                price_match = self._PRICE_RE.search(price_text)
                if price_match:
                    price = self.normalize_price(price_match.group(1))

            unit = UnitResult(
                size=f"{int(width)}x{int(length)}",
                sale_price=price,
                description=f"{text} - {next_div.get_text(strip=True)}" if next_div else text,
                metadata={"width": width, "length": length, "sqft": width * length},
            )
            result.units.append(unit)

        if not result.units:
            result.warnings.append("No size headings found on page")

        return result

Scrape Runs (3)

Run #485 Details

Status
exported
Parser Used
Facility42Parser
Platform Detected
table_layout
Units Found
7
Stage Reached
exported
Timestamp
2026-03-14 16:47:08.944589
Timing
Stage Duration
Fetch2227ms
Detect19ms
Parse7ms
Export14ms

Snapshot: 42_20260314T164711Z.html · Show Snapshot · Open in New Tab

Parsed Units (7)

5x5

$70.00/mo

5x10

$120.00/mo

5x15

$155.00/mo

10x15

$235.00/mo

10x10

$185.00/mo

10x20

$265.00/mo

10x25

$310.00/mo

← Back to dashboard