Ubuntu – How to download table from a website using wget/curl?

command linecurlwget

http://www.dgda.gov.bd/index.php/manufacturers/allopathic

I want to download the table from this site.

Best Answer

This will download the json data that fill the table:

curl --data "action=getDrugCompanyDatabaseData" http://www.dgda.gov.bd/administrator/components/com_jcode/source/serverProcessing.php

Or save it to a file

curl --data "action=getDrugCompanyDatabaseData" http://www.dgda.gov.bd/administrator/components/com_jcode/source/serverProcessing.php > output.json