from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
import time

chrome_options = Options()
# chrome_options.add_argument("--headless")  # Start without headless for now
driver = webdriver.Chrome(options=chrome_options)

driver.get("https://www.singaporepools.com.sg/en/product/Pages/4d_results.aspx")
time.sleep(5)  # Give it time to fully load

iframes = driver.find_elements(By.TAG_NAME, "iframe")
print(f"Found {len(iframes)} iframe(s).")
for i, iframe in enumerate(iframes):
    print(f"{i+1}: {iframe.get_attribute('src')}")

driver.quit()
