By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,045 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,045 IT Pros & Developers. It's quick & easy.

Grabbing data files from a website via C/C++/C#

P: 3
I'm trying to set up a program to automatically grab a few data files from a data provider on a daily basis. There are however, several obstacles to this:

1) The site requires a login / password, so it's not just a simple grab a page and parse it.
2) There's a lot of javascript involved, and in multiple frames on the page.
3) It doesn't simply just display the data on the page either. There's 2 options to retrieve the data that I can possibly use.
a) It will pop up a window displaying the data
b) (preferred method if possible to automate) It will start a file download for a .csv file containing the data.

On the off chance that someone has experience with this particular site, it's jpmorgan's dataquery service. Is there any way for me to hold a session and issue javascript commands and accept downloads, etc within a C#, C++, or C program just like internet explorer can (also note that this site doesn't work right in firefox, because it's a piece of crap). My preferred language would be C#, then C++, then C. If there's libraries out there for any of these, that'd be great, and if there's libraries out there for ANY language that can do something like this, I'll take what I can get.

I can provide copies of the site's javascript on request.
Aug 8 '07 #1
Share this Question
Share on Google+
4 Replies


drhowarddrfine
Expert 5K+
P: 7,435
this site doesn't work right in firefox, because it's a piece of crap
To the contrary, Firefox is the most standards compliant browser available while IE6/7 is nine years behind web standards. In particular, if you are using the DOM.

If it doesn't work in FF, then there is most likely something wrong with your code. Always use Firefox or Opera or Safari as your initial reference. Never, ever use IE as your initial test.
Aug 8 '07 #2

P: 3
To the contrary, Firefox is the most standards compliant browser available while IE6/7 is nine years behind web standards. In particular, if you are using the DOM.

If it doesn't work in FF, then there is most likely something wrong with your code. Always use Firefox or Opera or Safari as your initial reference. Never, ever use IE as your initial test.
No, I was saying the site is a piece of crap (which is why it's so hard to work with it).

It's not my site, I need to pull data FROM the site.
Aug 8 '07 #3

drhowarddrfine
Expert 5K+
P: 7,435
Heh. That is kind of funny.
Aug 9 '07 #4

P: 3
Wasn't my idea to use this data provider.. Just doing what I'm told to...
Aug 9 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.