Select Your Operating System
Commands, environment activation, and scheduled tasks adjust dynamically for your system.
Set Up Python Environment & Analytics Dependencies
Create an isolated virtual environment and install BeautifulSoup4, Pydantic, Pandas, and Requests.
Install Required Packages
Initialize your workspace and install web scraping and data modeling libraries:
Paste output from pip list confirming beautifulsoup4 and pydantic installation:
Extract Rental Data with BeautifulSoup & JSON-LD
Parse structured apartment listings and embedded schema metadata reliably without fragile selectors.
Parser Script
Target embedded application/ld+json blocks or standard listing cards to extract clean metadata:
Run parser test and paste output confirming extracted listings or JSON-LD objects:
Normalize Data with RentalProperty Model
Validate rental records with strict typing, default fallbacks, and computed metrics.
Pydantic Model
Define a structured model with rent, bedroom, bathroom, and sqft fields:
Paste terminal output showing validated RentalProperty model and price_per_sqft calculation:
Neighborhood Comps Engine & Gross Yields
Group properties by zip code and bedroom tier to compute median market benchmarks and investment yields.
Comp Valuation Engine
Calculate neighborhood median comps and investment return ratios:
Paste output from running python comp_engine.py showing median rent and gross yield:
Filter Underpriced Deals & Export Leads
Detect high-margin arbitrage opportunities where asking rent is significantly below market comps.
Lead Filtering & CSV Export
Filter deals with >=12% discount against comps and write structured output to CSV:
Paste terminal output from python export_leads.py showing exported deal records:
SQLite Rental History & Automated Pipeline
Track historical rent changes in SQLite and schedule automated daily market scanning.
Database Storage & Schema
Maintain properties and historical price changes to observe market shifts:
Run It Later: Scheduled Background Market Scanner
Configure automated daily collection to capture rent drops and new leads every morning:
Paste terminal output from initializing rental_history.db:
Build Bot Better & Wipe Resistance
Apply profile and workspace protections so an agent cannot casually wipe your home folder or project data. Fleet rule: Hub conversation #31.
An autonomous agent running without boundary constraints executed a recursive delete targeting the user profile. Prompt rules and command-text deny lists (like rm or Remove-Item) fail when paths are passed inside variables or child scripts. BuildBotsBetter requires the complete defense trio: PreToolUse path inspection, off-volume backups, and a practised restore.
1. Per-Agent Onboarding Checklist (Run Once Per Agent)
Onboarding does not end when software installs. Generate and maintain a six-line checklist file for each agent operating on your system:
2. Variable-Limit Delete Guard Demo
Demonstrate why command-text pattern matching misses variable-derived deletions, while true path resolution catches and refuses them:
3. Off-Volume Profile & Data Backup
Back up rental comps JSON data, valuation sheets, and scraper logs off the OS volume:
4. Practised Restore Drill
Never trust an unverified backup. Run this safe, self-contained restore drill inside your temp folder:
5. Fail-Closed Workspace Policy
Never run automated property comp aggregators with blanket filesystem permissions from the user profile. Always lock output targets to dedicated project directories.
Paste terminal output from the restore drill or variable demo confirming protection: