Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Re: Yahoo Currency Exchange Interface

by cacharbe (Curate)
on Dec 14, 2001 at 02:05 UTC ( #131787=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Yahoo Currency Exchange Interface
in thread Yahoo Currency Exchange Interface

Lastly, because pjf, in all his glory, is parsing HTML by hand in his Finance Packages with regards to Yahoo (and if Yahoo changes the output *BAM*), instead of using the raw CSV generator, which I describe in my notes.

While I am trying to find the time to offer a re-write to him, I'm figuring out how best to do that by using it in implementations like this.

C-.


Comment on Re: Re: Re: Re: Yahoo Currency Exchange Interface
Re: Re: Re: Re: Re: Yahoo Currency Exchange Interface
by rob_au (Abbot) on Dec 14, 2001 at 08:48 UTC
    Lastly, because pjf, in all his glory, is parsing HTML by hand in his Finance Packages with regards to Yahoo (and if Yahoo changes the output *BAM*), instead of using the raw CSV generator, which I describe in my notes.

    I too noticed this about the Finance::Quote packages and mentioned it to Paul - The module that is Finance::Quote now is more the product of a lot of code that he inherited with the package than anything else. I had looked at helping out a bit and rewriting some code to make use of HTML::TokeParser but just haven't had the time.

    I will however direct Paul's attention to this thread and see what he thinks of the idea of making use of the CSV exports rather than the HTML pages with regard to Yahoo conversion figures - I can't however see any objections which he would have to such a change.

     

    perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'

      jryan and I have talked about me approaching Paul a couple times, but I would want to offer him more than "you're doing it wrong"

      This means that I'll have to reassemble and translate all of my notes about the "switches" that the server uses to offer data for the currency data, the exchange data AND the stock data. I might be able to read them and decipher them, but I wouldn't wish that on anyone.

      C-.

Re (5): Yahoo Currency Exchange Interface
by pjf (Curate) on Dec 14, 2001 at 15:31 UTC
    G'day cacharbe,

    pjf here, in all his glory. *grin* I didn't actually realise that Yahoo provided a CSV of stock-quotes, although it's certainly not surprising. I agree that using a CSV interface is far superior to dissecting the HTML.

    I actually owe Finance::Quote a couple of good solid weeks of testing, applying patches, and making everything well and whole again.

    For what it's worth, I have a couple of patches that have been submitted which should remove F::Q's reliance upon Yahoo for currency information. This is a very good thing, as you may have noticed that Yahoo forbid you re-distributing their information to third parties by, say, putting it on a web-page. ;)

    For the record, I have no problems whatsoever in other people figuring out the best way to do things for my benefit. :)

    All the very best,

    Paul Fenwick
    Perl Training Australia

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://131787]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-08-30 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls