Facility: 003819
Alpine Storage
- Facility ID
- 003819
- Name
- Alpine Storage
- URL
- http://www.alpinestorage.com/
- Address
- 113 Aspen Rd, Rifle, CO 81650, USA, Rifle, Colorado 81650
- Platform
- custom_facility_003819
- Parser File
- src/parsers/custom/facility_003819_parser.py
- Last Scraped
- 2026-03-27 13:40:18.063840
- Created
- 2026-03-23 02:35:08.816820
- Updated
- 2026-03-27 13:40:18.063840
- Parser Status
- ⚠ Needs Fix
- Status Reason
- Parser returned 0 units
- Last Healing Attempt
- Not attempted
Parser Source (src/parsers/custom/facility_003819_parser.py)
"""Parser for Alpine Storage (Divi-based WordPress site)."""
from __future__ import annotations
import re
from bs4 import BeautifulSoup
from src.parsers.base import BaseParser, ParseResult, UnitResult
class Facility003819Parser(BaseParser):
"""Extract storage units from Alpine Storage location pages.
Page structure (Divi builder):
- Each unit is in an ``et_pb_row`` with a 1/4-1/2-1/4 column layout.
- Middle column ``<h3>`` contains the size (e.g. "3×5 Climatized", "12×24").
- Last column contains the price in ``<p>$NNN/Month</p>``.
- A "Reserve Unit!" button links to ``/reserve/?size=WxH``.
"""
platform = "custom_facility_003819"
# Matches sizes like "3×5", "12x24", "8X12" (unicode × or ascii x/X)
_SIZE_RE = re.compile(r"(\d+)\s*[xX\u00d7\u2715]\s*(\d+)")
# Matches price like "$37/Month", "$103/Month"
_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__)
seen: set[tuple[str, str]] = set()
# Find all Divi rows
rows = soup.find_all("div", class_=re.compile(r"et_pb_row"))
for row in rows:
# Look for an <h3> containing a size pattern
h3_tags = row.find_all("h3")
size_match = None
h3_text = ""
for h3 in h3_tags:
h3_text = h3.get_text(strip=True)
size_match = self._SIZE_RE.search(h3_text)
if size_match:
break
if not size_match:
continue
width_str = size_match.group(1)
length_str = size_match.group(2)
size_text = f"{width_str}x{length_str}"
# Extract features from h3 text (e.g. "Climatized")
features = self._SIZE_RE.sub("", h3_text).strip()
# Look for price in the row
price = None
for text_div in row.find_all("div", class_="et_pb_text_inner"):
div_text = text_div.get_text(strip=True)
price_match = self._PRICE_RE.search(div_text)
if price_match and "month" in div_text.lower():
price = self.normalize_price(price_match.group(1))
break
# Deduplicate by size + price
key = (size_text, str(price))
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 = price
# Build description
desc_parts = [size_text]
if features:
desc_parts.append(features)
if price is not None:
desc_parts.append(f"${price}/mo")
unit.description = " - ".join(desc_parts)
if unit.size or unit.price:
result.units.append(unit)
if not result.units:
result.warnings.append("No units found in Divi layout")
return result
Scrape Runs (3)
Run #1031 Details
- Status
- exported
- Parser Used
- Facility003819Parser
- Platform Detected
- table_layout
- Units Found
- 0
- Stage Reached
- exported
- Timestamp
- 2026-03-23 02:39:48.230171
Timing
| Stage | Duration |
|---|---|
| Fetch | 13747ms |
| Detect | 40ms |
| Parse | 20ms |
| Export | 4ms |
Snapshot: 003819_20260323T024001Z.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:40:18.046722
No units extracted for 003819
Stack trace
src.reporting.failure_reporter._WarningAsException: No units extracted for 003819
parse
_WarningAsException
scraper
no_units_extracted
warning
Run #N/A | 2026-03-27 13:40:17.936447
No units extracted for 003819
Stack trace
src.reporting.failure_reporter._WarningAsException: No units extracted for 003819
parse
_WarningAsException
scraper
no_units_extracted
warning
Run #N/A | 2026-03-23 02:40:02.061193
No units extracted for 003819
Stack trace
src.reporting.failure_reporter._WarningAsException: No units extracted for 003819