title: How to download information from a website
body: <p>I'm trying to automatically download information from a website based on a few parameters. Essentially I want to specify the parameters of a search and have the function automatically navigate to the appropriate website and download the file. Note that all of the files are excel file, usually .csv.</p>
  
  <p>Here's the website:http://comtrade.un.org/db/</p>
  
  <p>NOTE: This websites address will be updated depending on the search, so, for instance, if you search trade from the united states to iran (The rest of the parameters are unspecified), the result is:</p>
  
  <p><a href="http://comtrade.un.org/db/dqBasicQueryResults.aspx?px=HS&amp;cc=TOTAL&amp;r=364&amp;p=842&amp;rg=1&amp;y=2010,2009,2008,2007,2006&amp;so=8" rel="nofollow">http://comtrade.un.org/db/dqBasicQueryResults.aspx?px=HS&amp;cc=TOTAL&amp;r=364&amp;p=842&amp;rg=1&amp;y=2010,2009,2008,2007,2006&amp;so=8</a></p>
  
  <p>More on this here: </p>
  
  <p><a href="http://unstats.un.org/unsd/tradekb/Knowledgebase/Data-Extraction-Using-Comtrade-Web-Service" rel="nofollow">http://unstats.un.org/unsd/tradekb/Knowledgebase/Data-Extraction-Using-Comtrade-Web-Service</a>
  Look under web service methods and parameters</p>
  
  <p>Two Question:</p>
  
  <p>1) How can I do this?</p>
  
  <p>2) What is the best language to do this in?</p>