I'm trying to scrape some information from the United States Postal Service's Every Door Direct Mail service. The service is straightforward. On the USPS EDDM website, a user enters a ZIP code, e.g. 10030, clicks the search button, and that displays a map. That call is easy to capture in a browser developer console. That's just a GET request like this:
https://gis.usps.com/arcgis/rest/services/EDDM/selectZIP/GPServer/routes/execute?f=json&env:outSR=102100&ZIP=10030&Rte_Box=R&UserName=EDDM
The problem, though, is trying to capture the table or the textual information displayed on the right of the page. The "Show Table" option:
displays output like this, at which point you can click "Select All (10 routes)" and it will show you something like on the right side of the page:
How do I capture this set of Javascript "button-click" requests? For now I'm just trying to capture these requests so I can replicate them programmatically (in Python, but that's not strictly relevant here).


