import asyncio
from playwright.async_api import async_playwright

sites = [
    ("othership", "https://www.theothership.com"),
    ("wim-hof", "https://www.wimhofmethod.com"),
    ("remedy-place", "https://remedyplace.com"),
]

async def capture():
    async with async_playwright() as p:
        browser = await p.firefox.launch()
        for name, url in sites:
            try:
                page = await browser.new_page(viewport={"width": 1440, "height": 900})
                await page.goto(url, timeout=20000)
                await page.wait_for_timeout(3000)
                await page.screenshot(
                    path=f"/home/sirdrez/arisingmedia-websites/bigbreathe.com/.planning/competitive/{name}.png",
                    full_page=False
                )
                print(f"Captured: {name}")
                await page.close()
            except Exception as e:
                print(f"Failed {name}: {e}")
        await browser.close()

asyncio.run(capture())
