A certain state goverment web app uses Ifragistics igGrid to publish tables to a page, with a button to reveal a second table. Because its javascript is executed after you visit the page, easy page scraping methods (like pandas read_html) won't work. Instead, you have to imitate a browser and the clicking of a button. Fortunately, the Selenium Python bindings allow you to do all that. With a little help from Beautiful Soup 4 and pandas, the rest is history. This code was developed in a Jupyter notebook as part of a larger effort to help ordinary citizens leverage public data for the public good.
Here's the code, with comments:
# Import Selenium