from playwright.sync_api import sync_playwright
URL='https://uk.investing.com/news/transcripts'
with sync_playwright() as p:
    browser = p.chromium.launch(headless=False, executable_path='/usr/bin/chromium-browser', args=['--no-sandbox'])
    page = browser.new_page(viewport={'width': 1400, 'height': 1200})
    page.goto(URL, wait_until='domcontentloaded', timeout=120000)
    page.wait_for_timeout(8000)
    print('TITLE:', page.title())
    print('URL:', page.url)
    txt = page.locator('body').inner_text()[:5000]
    print(txt)
    browser.close()
