Facility: 003434
Airport Rent-A-Space
- Facility ID
- 003434
- Name
- Airport Rent-A-Space
- URL
- http://www.airportrentaspace.com/index-3.html
- Address
- 11100 Airport Hwy, Swanton, OH 43558, USA, Swanton, Ohio 43558
- Platform
- custom_facility_003434
- Parser File
- src/parsers/custom/facility_003434_parser.py
- Last Scraped
- 2026-03-27 13:56:04.076212
- Created
- 2026-03-14 16:21:53.706708
- Updated
- 2026-03-27 13:56:04.103788
- Parser Status
- ✓ Working
- Status Reason
- N/A
- Last Healing Attempt
- Not attempted
Parser Source (src/parsers/custom/facility_003434_parser.py)
"""Parser for Airport Rent-A-Space."""
from __future__ import annotations
import re
from bs4 import BeautifulSoup
from src.parsers.base import BaseParser, ParseResult, UnitResult
class Facility003434Parser(BaseParser):
"""Extract storage units from Airport Rent-A-Space."""
platform = "custom_facility_003434"
_UNIT_RE = re.compile(
r"(\d+\s*[\'\'\u2032]?\s*[xX\u00d7]\s*\d+\s*[\'\'\u2032]?)"
r"[^\$]{0,120}"
r"\$(\d[\d,.]*)",
re.DOTALL,
)
_PRICE_SIZE_RE = re.compile(
r"\$(\d[\d,.]*)"
r".{0,120}"
r"(\d+\s*[\'\'\u2032]?\s*[xX\u00d7]\s*\d+\s*[\'\'\u2032]?)",
re.DOTALL,
)
_SIZE_ONLY_RE = re.compile(
r"(\d+\s*[\'\'\u2032]?\s*[xX\u00d7]\s*\d+\s*[\'\'\u2032]?)"
)
def parse(self, html: str, url: str = "") -> ParseResult:
soup = BeautifulSoup(html, "lxml")
result = ParseResult(platform=self.platform, parser_name=self.__class__.__name__)
for tag in soup.find_all(["script", "style"]):
tag.decompose()
body_text = soup.get_text(separator="\n")
seen: set[tuple[str, str]] = set()
# Try size-then-price pattern
for m in self._UNIT_RE.finditer(body_text):
size_text = m.group(1).strip()
price_text = m.group(2).strip()
key = (size_text, price_text)
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 = self.normalize_price(price_text)
unit.description = m.group(0).strip()[:200]
if unit.size or unit.price:
result.units.append(unit)
# Try price-then-size pattern if no results
if not result.units:
for m in self._PRICE_SIZE_RE.finditer(body_text):
price_text = m.group(1).strip()
size_text = m.group(2).strip()
key = (size_text, price_text)
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 = self.normalize_price(price_text)
unit.description = m.group(0).strip()[:200]
if unit.size or unit.price:
result.units.append(unit)
# Fallback: extract sizes without prices
if not result.units:
seen_sizes: set[str] = set()
for m in self._SIZE_ONLY_RE.finditer(body_text):
size_text = m.group(1).strip()
if size_text in seen_sizes:
continue
w, ln, sq = self.normalize_size(size_text)
if w is None or w < 3 or ln < 3:
continue
seen_sizes.add(size_text)
unit = UnitResult()
unit.size = size_text
unit.metadata = {"width": w, "length": ln, "sqft": sq}
result.units.append(unit)
if not result.units:
result.warnings.append("No units found via regex")
return result
Scrape Runs (5)
-
exported Run #19212026-03-27 13:56:01.550110 | 13 units | Facility003434Parser | View Data →
-
exported Run #19202026-03-27 13:56:01.542551 | 13 units | Facility003434Parser | View Data →
-
exported Run #12232026-03-23 02:57:14.139912 | 13 units | Facility003434Parser | View Data →
-
exported Run #7302026-03-21 18:48:51.403289 | 13 units | Facility003434Parser | View Data →
-
exported Run #2792026-03-14 16:30:28.237698 | 13 units | Facility003434Parser | View Data →
Run #730 Details
- Status
- exported
- Parser Used
- Facility003434Parser
- Platform Detected
- table_layout
- Units Found
- 13
- Stage Reached
- exported
- Timestamp
- 2026-03-21 18:48:51.403289
Timing
| Stage | Duration |
|---|---|
| Fetch | 2201ms |
| Detect | 10ms |
| Parse | 6ms |
| Export | 7ms |
Snapshot: 003434_20260321T184853Z.html · Show Snapshot · Open in New Tab
Parsed Units (13)
5' X 6'
No price
5' X 10'
No price
8' X 7'
No price
6' X 10'
No price
8' X 12'
No price
10' X 10'
No price
10' X 20'
No price
10' X 24'
No price
6' X 10'
No price
9' X 11'
No price
4' X 8'
No price
12' X 24'
No price
10' x 25'
No price