[GNC] How to get mutual fund quotes with Finance::Quote::GoogleWeb.pm

Ken Farley farleykj at gmail.com
Mon Apr 15 22:02:53 EDT 2024


Once I sent the last message and had a bit of time to think about it, I 
realized I could try something, and it worked.

There's a line in the module that uses a few exchange names to find the 
correct data on the HTML page:

       $taglink = $tree->look_down(_tag => 'a', href => 
qr!^./quote/$ucstock:(NYSE|NASDAQ|NYSEAMERICAN)!);

Changing this to add the mutual fund exchange makes it work:

       $taglink = $tree->look_down(_tag => 'a', href => 
qr!^./quote/$ucstock:(NYSE|NASDAQ|NYSEAMERICAN|MUTF)!);

What a fun bit of detective work that was.


More information about the gnucash-user mailing list