[Python] Unable to read table from website using Beautifulsoup

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to read a website's content using below code.

    import requests
    from bs4 import BeautifulSoup

    url = "https://chartink.com/screener/test-121377"
    r = requests.get(url)
    data = r.text
    soup = BeautifulSoup(data,"html.parser")

    print(soup)


    In the result, I am unable to see the the table which I could see when I do "Inspect" element manually in the browser.

    [​IMG]

    Using selenium could be one solution. But I am looking for some other alternate solutions, if possible.

    Any idea on how to read the data from underlying script in HTML?

    Continue reading...

Compartilhe esta Página