For the last couple of years we have been able to download a FedACH file from Federal Reserve website (frbservices.org) using the wget utility. The link below provided the original solution:
wget how to download file from a web page that prompts you to click on "Agree" condition
get the cookies:
wget --post-data="agreementValue=Agree" https://frbservices.org/EPaymentsDirectory/submitAgreement --save-cookies cookie.txt --keep-session-cookies --delete-afterdownload the file:
wget --load-cookies=cookie.txt 'https://frbservices.org/EPaymentsDirectory/FedACHdir.txt?AgreementSessionObject=Agree'
Using this wget commands just downloads https://www.frbservices.org/EPaymentsDirectory/download.html because the website is requesting that a popup form be filled in after clicking the “Agree” button now. Is there some way to just close the form using wget?
In IE and Chrome, the steps below were executed to download the desired file:
Go to URL: https://www.frbservices.org/EPaymentsDirectory/FedACHdir.txt
Click Agree button.
Form is displayed requesting organization information.
Click Close button on form (I did not fill in any information).
Go to URL: https://www.frbservices.org/EPaymentsDirectory/FedACHdir.txt
File downloads successfully.