Facility: 23
A1 Storage America - Canton
- Facility ID
- 23
- Name
- A1 Storage America - Canton
- URL
- https://www.a1storageamerica.com/pages/canton
- Address
- N/A
- Platform
- custom_facility_23
- Parser File
- src/parsers/custom/facility_23_parser.py
- Last Scraped
- 2026-03-23 03:14:36.152039
- Created
- 2026-03-14 16:21:53.706708
- Updated
- 2026-03-23 03:14:36.162244
- Parser Status
- ✓ Working
- Status Reason
- N/A
- Last Healing Attempt
- Not attempted
Parser Source (src/parsers/custom/facility_23_parser.py)
"""Parser for A1 Storage America facilities (Canton, Sylva, Franklin, Waynesville).
These SUS-hosted sites display pricing as plain text lines in a widget column
rather than structured unit cards. Format:
4 x12 Starting at $50 / month
10x10 Starting at $70 / month
10x25: $50 / month
"""
from __future__ import annotations
import re
from bs4 import BeautifulSoup
from src.parsers.base import BaseParser, ParseResult, UnitResult
class Facility23Parser(BaseParser):
"""Extract storage units from A1 Storage America text-based listings."""
platform = "custom_facility_23"
# "4 x12 Starting at $50 / month" or "10x10 Starting at $70 / month"
_UNIT_RE = re.compile(
r"(\d+(?:\.\d+)?)\s*[xX\u00d7]\s*(\d+(?:\.\d+)?)"
r"[:\s]*(?:Starting\s+at\s+)?"
r"\$\s*([\d,]+(?:\.\d+)?)"
r"\s*/\s*month",
re.IGNORECASE,
)
def parse(self, html: str, url: str = "") -> ParseResult:
soup = BeautifulSoup(html, "lxml")
result = ParseResult(platform=self.platform, parser_name=self.__class__.__name__)
# Look for the content area with pricing text
text = soup.get_text(separator="\n", strip=True)
for match in self._UNIT_RE.finditer(text):
width = float(match.group(1))
length = float(match.group(2))
price_str = match.group(3).replace(",", "")
price = float(price_str)
unit = UnitResult(
size=f"{int(width)}x{int(length)}",
sale_price=price,
description=match.group(0).strip(),
metadata={"width": width, "length": length, "sqft": width * length},
)
result.units.append(unit)
if not result.units:
result.warnings.append("No unit pricing lines found in page text")
return result
Scrape Runs (3)
Run #468 Details
- Status
- exported
- Parser Used
- Facility23Parser
- Platform Detected
- storageunitsoftware
- Units Found
- 7
- Stage Reached
- exported
- Timestamp
- 2026-03-14 16:46:10.602752
Timing
| Stage | Duration |
|---|---|
| Fetch | 2252ms |
| Detect | 10ms |
| Parse | 4ms |
| Export | 14ms |
Snapshot: 23_20260314T164612Z.html · Show Snapshot · Open in New Tab
Parsed Units (7)
4x12
$50.00/mo
5x10
$50.00/mo
10x10
$70.00/mo
12x12
$75.00/mo
10x20
$100.00/mo
12x20
$105.00/mo
10x25
$50.00/mo