[Python] Python Beautiful Soup not loading table values

Discussão em 'Python' iniciado por Stack, Março 23, 2025.

  1. Stack

    Stack Membro Participativo

    I am unsure how to extract the 'Settle' column for each state (New South Wales, Victoria, Queensland, South Australia) from this website:

    https://www.asxenergy.com.au/futures_au

    It seems the numerical data isn't showing.

    My starting code is:

    from bs4 import BeautifulSoup
    from urllib.request import urlopen

    url = "https://www.asxenergy.com.au/futures_au"
    page = urlopen(url)
    html = page.read().decode("utf-8")
    soup = BeautifulSoup(html, "html.parser")
    print(soup.get_text())

    Continue reading...

Compartilhe esta Página