Facility: 6

9 and 30 Storage

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
6
Name
9 and 30 Storage
URL
https://9and30storage.com/
Address
N/A
Platform
custom_facility_6
Parser File
src/parsers/custom/facility_6_parser.py
Last Scraped
2026-03-23 03:16:06.153418
Created
2026-03-14 16:21:53.706708
Updated
2026-03-23 03:16:06.162796
Parser & Healing Diagnosis working
Parser Status
✓ Working
Status Reason
N/A
Last Healing Attempt
Not attempted
Parser Source (src/parsers/custom/facility_6_parser.py)
"""Parser for 9 and 30 Storage (Elementor price-list widget)."""

from __future__ import annotations

import re

from bs4 import BeautifulSoup

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


class Facility6Parser(BaseParser):
    """Extract storage units from 9 and 30 Storage.

    The site uses Elementor price-list widgets across multiple location
    sections. Each list item has a title (size), price, and description.
    """

    platform = "custom_facility_6"

    _PRICE_RE = re.compile(r"\$([\d,]+(?:\.\d+)?)")

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

        items = soup.select("li .elementor-price-list-item, li.elementor-price-list-item")
        if not items:
            # Try parent li elements containing price list items
            items = soup.select("ul.elementor-price-list > li")

        if not items:
            result.warnings.append("No Elementor price-list items found")
            return result

        for item in items:
            title_el = item.select_one(".elementor-price-list-title")
            price_el = item.select_one(".elementor-price-list-price")
            desc_el = item.select_one(".elementor-price-list-description")

            if not title_el:
                continue

            size_text = title_el.get_text(strip=True)
            price_text = price_el.get_text(strip=True) if price_el else ""
            desc_text = desc_el.get_text(strip=True) if desc_el else ""

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

            # Extract price from text like "$91 per month"
            price_match = self._PRICE_RE.search(price_text)
            if price_match:
                unit.sale_price = self.normalize_price(price_match.group(1))

            # Amenities from description
            combined = f"{desc_text} {size_text}".lower()
            meta = unit.metadata or {}
            if any(kw in combined for kw in ["climate", "heated", "cooled"]):
                meta["climateControlled"] = True
            if any(kw in combined for kw in ["drive-up", "drive up", "driveup"]):
                meta["driveUpAccess"] = True
            if meta:
                unit.metadata = meta

            if (unit.metadata and "width" in unit.metadata) or unit.sale_price:
                result.units.append(unit)

        if not result.units:
            result.warnings.append("Price-list items found but no units extracted")

        return result

Scrape Runs (3)

Run #1437 Details

Status
exported
Parser Used
Facility6Parser
Platform Detected
table_layout
Units Found
19
Stage Reached
exported
Timestamp
2026-03-23 03:16:03.559124
Timing
Stage Duration
Fetch2482ms
Detect56ms
Parse28ms
Export6ms

Snapshot: 6_20260323T031606Z.html · Show Snapshot · Open in New Tab

Parsed Units (19)

5x5

$27.00/mo

5x10

$41.00/mo

10x10

$61.00/mo

10x20

$91.00/mo

10x30

$128.00/mo

15x30

$174.00/mo

5x10

$70.00/mo

10x10

$105.00/mo

10x15

$134.00/mo

10x20

$150.00/mo

5x10

$38.00/mo

10x10

$54.00/mo

10x20

$81.00/mo

10x30

$107.00/mo

16x30

$123.00/mo

10x10

$61.00/mo

10x20

$91.00/mo

10x30

$128.00/mo

12x30

$158.00/mo

← Back to dashboard