English 中文(简体)
How to extract data from Java web application?
原标题:

I need to extract data from a Java web application. To be specific I am looking to extract real time stock data from yahoo market tracker. Can anyone please suggest any method?

问题回答

I m not sure you can extract the data from Yahoo Market Tracker. Even if you can, you might not be allowed to - I can t see any obvious terms & conditions/licensing. I think (although I could be wrong, anyone got better info?) that you ll need to pay to get access to an API providing near realtime market data.

There is a HTTP-based Yahoo Stock Quote API you could use to get prices, described here. Very simple, returns a comma-separated list of attributes for one or more stock symbols, for example:

http://finance.yahoo.com/d/quotes.csv?s=MSFT&f=snd1l1yr

It might not be realtime enough, but it might be the best you can do for free.

You can use glorious HTTP protocol to do that. Use any language you are comfortable with (Java, C#, VB.NET, python, ruby, php) and crawl the website you are trying to get information from.

I need to extract data from a Java web application

From your standpoint, the fact that it is a Java Webapp or a PHP-one or static html pages doesn t change anything. It is not because Java is backing the webapp that suddenly you get a "Java-way" to extract the info.

Now in some cases there are APIs provided allowing you to interact with the data present on the website: but once again the fact that the Webapp is a Java one or not bears no importance.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签