/google-screener

Ruby interface to Google Screener JSON

Primary LanguageRubyApache License 2.0Apache-2.0

Google Finance Screener
=======================

This is a Ruby interface to Google's Finance Screener.  It's completely unofficial.

http://www.google.com/finance/stockscreener

https://github.com/davidw/google-screener

Usage:

    gs = GoogleScreener.new(:min => {:MarketCap => 10_000_000, :Price52WeekPercChange => -100}, :max => {:PE => 10, :Price52WeekPercChange => -5}).sort_as("Price52WeekPercChange")
    gs.fetch
    gs.results.each { |res| puts "#{res.name} - #{res.values['QuoteLast']}"}

This code was extracted as part of this project:

http://www.underperformingstocks.com