'How to scrape table from an interactive map website?

Im trying to extract a table from this car crash report website : https://www.arcgis.com/home/webmap/viewer.html?url=https%3A%2F%2Fgis.nevadadot.com%2Farcgis%2Frest%2Fservices%2FArcGISOnline%2FCrashData_OpenData%2FFeatureServer%2F0&source=sd

The table is accessed by clicking the table button on the left (under 'CrashData OpenData')so I think its loaded with js and my attempts at beautifulsoup and html_reader havent worked.

Any help scraping the table into a dataframe would be great!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source