[Python] Web Scraping Table from 'Dune.com' with Python3 and bs4

Discussão em 'Python' iniciado por Stack, Agosto 24, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to web scrape table data from Dune.com (https://dune.com/queries/1144723). When I 'inspect' the web page, I am able to clearly see the <table></table> element, but when I run the following code I am returned None results.

    import bs4
    import requests

    data = []

    r=requests.get('https://dune.com/queries/1144723/1954237')
    soup=bs4.BeautifulSoup(r.text, "html5lib")

    table = soup.find('table')


    How can I successfully find this table data?

    Continue reading...

Compartilhe esta Página