[Python] How to scrape a csv table contained within a JavaScript button using Python? [closed]

Discussão em 'Python' iniciado por Stack, Julho 8, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to pull a csv table from a webpage into a pandas dataframe within a Jupyter Notebook, a process I have successfully implemented several times for other websites in the past, but I am running into a challenge with this one.

    The table I am trying to pull is only available as a JavaScript response to a button click instead of being available at a specific URL.

    Here is the URL: https://ciffc.net/national // The table I am trying to scrape is contained within the Export (CSV) button in red.

    I have tried implementing a solution using pandas.read_csv, but I can't seem to point to the button in question.

    Of note, I am using Jupyter Notebooks within the ArcGIS Online environment.

    Thank you!

    Continue reading...

Compartilhe esta Página