473,800 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

3 New Member
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
4 2075
drhowarddrfine
7,435 Recognized Expert Expert
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
sgjwm
3 New Member
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
7,435 Recognized Expert Expert
Heh. That is kind of funny.
Aug 9 '07 #4
sgjwm
3 New Member
Wasn't my idea to use this data provider.. Just doing what I'm told to...
Aug 9 '07 #5

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

Similar topics

5
2598
by: Joe | last post by:
I need to connect to 10 web sites to grab content from them. I would like to connect to each site simultaneously so that I can obtain the data as fast as possible. I am familar doing this with perl by using parallel sockets or the module LWP-Parallel. So what would be the best method to do this in php? Sockets, forks? Also, if possible, could someone provide me with a good reference site that will help me accomplish this?
1
1889
by: Aliza Klein | last post by:
Hi. A client of mine has a website with a standard "Contact Us" form page with name, address etc. The information is currently sent via email to the client and is then data entered into their Access (2000) system. I am sure there is a better way of doing this.
6
1497
by: Jesse Engle | last post by:
i'm working on two client and server programs that send and recieve files using sockets. i saw a c++ example using csockets, and thought i could use the basic idea of what the code was doing to form my own c program. i have an idea of how to send binary files via sockets, but the problem is that to use send() i need to know the size (in bytes) of the file i want to send. any ideas on how to accomplish this?
4
1607
by: bwalke | last post by:
Help Needed Please!!! With a VB.NET web application, I am trying to save pictures and files to a directory on the web server. However, the web server is not grabbing the Posted Files. For example: File1.PostedFile Is Nothing = True. Like it always seems to go, this page and the File1.PostedFile method works perfectly fine on my development machine(XP Pro, VS.NEt, .Net 1.1). Is there any causes or reason why the web server(2000 Server,...
2
1357
by: Jonathan Wood | last post by:
Hi, I'd like to build a .NET Website that has any number of documents that visitors can read. In addition to the documents, I may have one or two downloads associated with each document. I'm trying to figure out the best way of storing these files and documents (database vs. Web pages). I asked this once before and got some comments about using both. And, in fact, I've just been able to confirm that this is what sites like Code...
4
2872
by: Sarah Marriott | last post by:
Our website contains session variables that are used to validate if a user is logged in etc. We have found that these variables are randomly lost while navigating the website. We set up some basic code (as shown below) which used a meta tag to refresh an aspx page every second. It tests whether there is any content in a session variable, if not then it writes a timestamp to a text file, recreates the data in the variable and continues....
5
2732
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or more documents to share/use during a meeting presentation. What would be the most efficient way to approach this? This is the logic I'm currently considering: Page 1: Meeting Information input with link to a document upload page (this page...
29
3155
by: Amer Neely | last post by:
I've got a dynamically built form with checkboxes for each element ( a list of file names in a directory). I need to grab only those checkboxes that are checked, so I can then delete those files. Does each checkbox name have to be unique? I was hoping to just group them under one name, and select from that array. PHP is not my native language - I'm coming at this from Perl, so bear with me, things are a little different in that country.
8
2917
by: darrel | last post by:
I've decided that instead of doing an XSLT transformation on a file, I might be better off bringing it in as a dataset and having a bit more direct control over it at that point. The question I have is if one can determine the node depth as they import the XML. I could, obviously, just put the node depth in as another xml element at the time of creation, which really isn't a big deal, but thought I'd see if I could do it on the import...
0
9694
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10509
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9095
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7584
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6824
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5477
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4152
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2953
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.