Newbies RobertD Posted April 21, 2006 Newbies Posted April 21, 2006 I do not even know if there is way to script up code that will go out to yahoo and download into to a temp file, daily stock historical data. Can anyone help? Robert
Krioni Posted April 21, 2006 Posted April 21, 2006 Well, on Mac OS X you could use AppleScript code that calls a built-in command line utility called curl. On Windows XP, there may be some software you can run using the Send Event script step. If not, you can supposedly write your own code in BASIC or C and call that. There are also third-party plugins that allow you to call URLs (which is what you need) and put the resulting HTML code into a FileMaker field. You could then parse the code for just the piece you want.
Newbies RobertD Posted April 22, 2006 Author Newbies Posted April 22, 2006 Krioni, Thanks for the reply that's part of the answer I needed. I did not realize that the question was incomplete util I read your answer. I also need to know what to send i.e. string to Yahoo to get the info I need and what is Yahoo going to send me back and in what order etc... I can't find a Yahoo address on their site to send this kind of question. Any ideas? Robert
Krioni Posted April 22, 2006 Posted April 22, 2006 I also need to know what to send i.e. string to Yahoo to get the info I need and what is Yahoo going to send me back and in what order etc... I can't find a Yahoo address on their site to send this kind of question. Any ideas? Well, Yahoo isn't going to help you. You can look at the source code of their page to determine what info you need to send, in either an http GET or POST request (what web browsers do when you click a link). I've got a somewhat detailed explanation of how to post http forms on my website. Check it out and see if that gives you enough to do what you need. It's written for FileMaker and AppleScript, but the explanation should help, regardless of the tools you use.
Søren Dyhr Posted April 22, 2006 Posted April 22, 2006 Just a notice, CURL comes in almost every flavour thinkable in operatingsystem's including Windows: http://curl.haxx.se/download.html One big difference between OS X and Windows is that, while you via applescripts can get access to fields, scripts etc. are you forced to make temporary files that filemaker then imports from, to make the same thing happen. But I believe that this is ment to deal with this problem: http://www.troi.com/software/urlplugin.html ...the stockquotes are actually mentioned for areas to utilize it. --sd
Recommended Posts
This topic is 6852 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now