Popular recipes tagged "forex"http://code.activestate.com/recipes/tags/forex/popular/2011-12-09T07:32:23-08:00ActiveState Code RecipesForeign Exchange Rate Alert, CSV version ($CAD<->$USD) (Python) 2011-12-09T07:32:23-08:00Victor Yanghttp://code.activestate.com/recipes/users/627255/http://code.activestate.com/recipes/252546-foreign-exchange-rate-alert-csv-version-cad-usd/ <p style="color: grey"> Python recipe 252546 by <a href="/recipes/users/627255/">Victor Yang</a> (<a href="/recipes/tags/forex/">forex</a>, <a href="/recipes/tags/web/">web</a>). Revision 11. </p> <ul> <li>The following code snippet can be used as daily crontab or windows scheduled task to watch the foreign exchange rate from BankOfCanada web site. </li> <li><p>The file format is not fancy XML but a simple CSV for noon rate for last 5 days. </p></li> <li><p>urllib2.urlopen is used as it can auto detect the proxy if it is used. </p></li> <li>The default url connnect timeout is 60 seconds here.</li> </ul>