Files
homeproz/contract/Contracts/WordPress-Website/_scratch/agent_scrape/screenshot-landproz.js
T
Hanson.xyz Dev ef12be70ca Add Agent CPT with single-agent profile template
- Created Agent custom post type with ACF fields (phone, email, website, title, license, bio, gallery, social links repeater)
- Added single-agent.php template with modern profile layout: header with photo/contact buttons/social links, biography section, photo gallery, current listings, sidebar contact card
- Created single-agent.scss with responsive styling matching HomeProz dark theme
- Updated single-property.php sidebar: moved property header widget, added document downloads with primary button styling
- Imported 4 agents from homeprozrealestate.com with profile images
- Added agent scrape scripts for reference

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-30 18:38:49 -06:00

34 lines
938 B
JavaScript

const { chromium } = require('playwright');
const path = require('path');
async function main() {
const browser = await chromium.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
});
const context = await browser.newContext({
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36',
viewport: { width: 1440, height: 900 }
});
const page = await context.newPage();
console.log('Loading LandProz agent page...');
await page.goto('https://landproz.com/agent/?id=11', {
waitUntil: 'domcontentloaded',
timeout: 30000
});
await page.waitForTimeout(2000);
await page.screenshot({
path: path.join(__dirname, 'landproz-agent-screenshot.png'),
fullPage: true
});
console.log('Screenshot saved: landproz-agent-screenshot.png');
await browser.close();
}
main().catch(console.error);