Google Finance Lock Out – Robot


So I have run into the issue of getting data from Google Finance. They have an html access system that you can use to access webpages that give stock data in simple text format (ideal for minimizing parsing). However, if you access this service too frequently, Google locks you out and you need to enter a captcha. I currently have a list of about 50 stocks and I want to update my price data every 15 seconds, but I soon get locked out (after about 3-4 minutes).

Does anyone have any solutions to this/understand the nature of how often is the max I could ping Google for this information?

Not sure why a feature like this would be on a service designed to give data like this… but similar alternative services with realtime data would also be accepted.

Asked By: user3142330



Probably because your usage is not what they intended. Every 40x every 15 seconds seems a bit excessive. They had an API that got discontinued some years ago, and there’s another SO question with some available alternatives which is probably also a bit out of date.

From google, there is also it’s Finance service with getStockInfo which allows to query its database but read their warnings.

Answered By: carandraug

Yahoo YQL works fairly well, but throws numerous HTTP 500 errors that need to be handled, they are all benign. TradeKing is an option, however, the oauth2 package is required and that is very difficult to install properly

Answered By: user3142330