[moneydance] python modules urllib
Patrick Wagstrom
patrick at wagstrom.net
Thu Sep 6 09:53:15 EDT 2007
Brock Palen wrote:
> Is there a way to get all the python modules in money dance?
> I was making a script that grabs TIAA-CREF daily values form their
> website, but when i try to run it under moneydance i get
>
> importError: no module named urllib
>
> etc, so i cant scrape their website, I am new to python (perl is my
> comfort zone) so if I am missing something forgive my ignorance.
> How do others get daily values of TIAA-CREF variable annuities?
The problem is that you're not really programming in Python, rather what
you're using is Jython, a java based implementation of python. While
the syntax is the same, many of the standard libraries that ship with
cpython are not available. Fortunately, you can use Java libraries in
the same way you'd use cpython libraries. For example:
import javax.swing
Will give you access to the swing widgets. So, it's a matter of looking
up some of the stuff on how to handle URLs in java and then calling the
Java methods.
--Patrick
More information about the moneydance-info
mailing list