[Python] Getting data from dynamic generated stockist widget with playwright

Discussão em 'Python' iniciado por Stack, Maio 3, 2025.

  1. Stack

    Stack Membro Participativo

    When I run

    browser = p.chromium.launch(headless=False, slow_mo=100)
    context = browser.new_context()
    page = context.new_page()


    page.goto(url)
    page.wait_for_selector(".stockist-result", timeout=30000)


    page_title = page.title()
    page_source = page.content()


    In the browser UI the page loads completely with the map and requested data however page.content(), does not return the dynamically generated stockist data

    I have tried time.sleep, I have tried waiting for the selector with different selectors.

    Continue reading...

Compartilhe esta Página