On https://www.meinfluessiggas.de one has to click a tank size button (section “Behältergröße”) and fill in a postal code (section “PLZ Behälterstandort”) for the price to appear on the right. I want to automate this in a bash
script but struggle on retrieving the correct information:
wget https://www.meinfluessiggas.de
loads the page source correctly, but it doesn't contain the price information. I found out that there are some javascript functions that load the price information, so following the approach in SU: Command line browser with js support I tried
phantomjs save_page.js https://www.meinfluessiggas.de > page.html
and it retrieves the source code including some price information, but unfortunately just for the smallest tank size, the button which is selected by default.
Assuming
tank=2700 # or 1.2, or 12, whatever is the simplest
postal=88448
how can I retrieve the price information from this website in a bash
script?