google API, captcha, credentials

Closed Posted Apr 3, 2012 Paid on delivery
Closed Paid on delivery

I need this in 24 hours.

I have code that connects to Google's API. It works, it seems in Eclipse but when I run it from the command line I sometimes get an error about "captcha credentials". I need this to run without any user interaction because this code needs to run on a Windows scheduler. In fact I will be running 30 slight variations of this code 30 times a day and without user interaction.

I have run the code that connects to the API in Eclipse and I can get it to write the results of connecting to the API, but I cannot get it to run in the command prompt and when I use in my code as an instantiation of the class. (see error below).

I cannot use Eclipse. I need a solution that I can compile myself from the command prompt. I only know how to use the 'java' command and the 'javac' command so I need your solution to be in a format that will allow just these two commands. Also, the solution should be a separate class that I can instantiate in my main code (as is already done).

In order to do this project you must create your own google finance account. This is easy and takes not more than 2 minutes to do. Of course it is free. I describe what you need to do below.

Here is the error message:

C:\Users\Bill\Desktop\test bed\bin>java -cp .\;[url removed, login to view];.\[url removed, login to view];.\gd

[url removed, login to view];.\[url removed, login to view];.\[url removed, login to view];.\[url removed, login to view];

.\[url removed, login to view];.\[url removed, login to view];.\[url removed, login to view];.\google-collect

[url removed, login to view];.\[url removed, login to view];.\[url removed, login to view];.\[url removed, login to view] JavaWekaJ48TestTrainPredSQL_updated5

Invalid Credentials!

[url removed, login to view]$CaptchaRequiredException: Captcha required

at [url removed, login to view](GoogleAuthTokenFa

[url removed, login to view])

at [url removed, login to view](GoogleAuthTokenFactor

[url removed, login to view])

at [url removed, login to view](GoogleAuthToken

[url removed, login to view])

at [url removed, login to view]([url removed, login to view])

at [url removed, login to view]([url removed, login to view])

at [url removed, login to view]([url removed, login to view])

at [url removed, login to view]([url removed, login to view]

)

at finance.google.FinancePortfoliosClient.<init>([url removed, login to view])

at [url removed, login to view]([url removed, login to view]

va:63)

NOTE: YOU NEED TO REGISTER FOR GOOGLE FINANCE AND CREATE A PORTFOLIO. THIS IS EASY. IT TAKES 2 MINUTES TO DO.

To use Google Finance you just need a Google account and then go to the Finance page and create a portfolio. A portfolio just consists of one or more stocks. You just enter the stock symbol (like COKE for Coca-cola, F for Ford, DIS for Disney) and then you have Coca-cola in your portfolio, Ford, Disney in your portfolio and that is all you need. Google will then show you info about your stocks. In particular it will show Symbol Last price Change Mkt cap Volume Open High Low. I just need to access LAST PRICE field for each stock in my portfolio. I don't need to write to the portfolio. I just need to acccess these fields.

You need to fill in the username etc in TestFinanceModule.java. The instantiation of the class occurs on lines 59 to 61 of the main code which is in a file called [url removed, login to view] (note I have removed my passwords from this file).

Code is attached

Java

Project ID: #1542754

About the project

3 proposals Remote project Active May 4, 2012

3 freelancers are bidding on average $85 for this job

IMSeriousBidder

Hello, I can do this project very quickly please check your PM Thanks

$85 NZD in 0 days
(60 Reviews)
6.7
buzzcoder

Hi,kindly check your pm,thanks.

$85 NZD in 0 days
(41 Reviews)
5.5
diamond1027

Hi, I can start right it now. I have experience on your project. Regards.

$50 NZD in 1 day
(15 Reviews)
3.8
VeH9X52mK

Pls check PMB.

$85 NZD in 1 day
(0 Reviews)
0.0