Facility: 037475
B & J Storage
- Facility ID
- 037475
- Name
- B & J Storage
- URL
- http://www.bjstorage.com/
- Address
- 620 S Main St, Elk City, OK 73644, USA, Elk City, Oklahoma 73644
- Platform
- custom_facility_037475
- Parser File
- src/parsers/custom/facility_037475_parser.py
- Last Scraped
- 2026-03-27 14:01:42.611089
- Created
- 2026-03-14 16:21:53.706708
- Updated
- 2026-03-27 14:01:42.639413
- Parser Status
- ✓ Working
- Status Reason
- N/A
- Last Healing Attempt
- Not attempted
Parser Source (src/parsers/custom/facility_037475_parser.py)
"""Parser for B & J Storage."""
from __future__ import annotations
import re
from bs4 import BeautifulSoup
from src.parsers.base import BaseParser, ParseResult, UnitResult
class Facility037475Parser(BaseParser):
"""Extract storage units from B & J Storage."""
platform = "custom_facility_037475"
def parse(self, html: str, url: str = "") -> ParseResult:
soup = BeautifulSoup(html, "lxml")
result = ParseResult(platform=self.platform, parser_name=self.__class__.__name__)
containers = soup.select("div.carousel-inner")
for container in containers:
unit = UnitResult()
text = container.get_text(separator=" ", strip=True)
# Extract size
size_el = container.select_one("h2.animated.fadeInUp")
size_text = size_el.get_text(strip=True) if size_el else None
if not size_text:
# Fallback: regex on full text
m = re.search(r"(\d+\s*[\'\'\u2032]?\s*[xX\u00d7]\s*\d+\s*[\'\'\u2032]?)", text)
if m:
size_text = m.group(1)
if size_text:
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}
# Extract price
price_el = None
price_text = price_el.get_text(strip=True) if price_el else None
if not price_text:
# Fallback: regex on full text
pm = re.search(r"\$(\d[\d,.]*)", text)
if pm:
price_text = pm.group(0)
if price_text:
pm = re.search(r"\$(\d[\d,.]*)", price_text)
if pm:
unit.price = self.normalize_price(pm.group(1))
unit.description = text[:200]
if unit.size or unit.price:
result.units.append(unit)
if not result.units:
result.warnings.append("No units found")
return result
Scrape Runs (5)
-
exported Run #20652026-03-27 14:01:39.095433 | 3 units | Facility037475Parser | View Data →
-
exported Run #20642026-03-27 14:01:38.747728 | 1 units | Facility037475Parser | View Data →
-
exported Run #12982026-03-23 03:03:32.644426 | 3 units | Facility037475Parser | View Data →
-
exported Run #8052026-03-21 18:55:14.502332 | 3 units | Facility037475Parser | View Data →
-
exported Run #3542026-03-14 16:35:38.339686 | 3 units | Facility037475Parser | View Data →
Run #805 Details
- Status
- exported
- Parser Used
- Facility037475Parser
- Platform Detected
- table_layout
- Units Found
- 3
- Stage Reached
- exported
- Timestamp
- 2026-03-21 18:55:14.502332
Timing
| Stage | Duration |
|---|---|
| Fetch | 4163ms |
| Detect | 48ms |
| Parse | 23ms |
| Export | 6ms |
Snapshot: 037475_20260321T185518Z.html · Show Snapshot · Open in New Tab
Parsed Units (3)
OK Corral
No price
5X12
No price
5X12
No price