Sha256: aa238f10ead68d01557af596d43e2cf881a813092c913c280820b284d66e10db
Contents?: true
Size: 693 Bytes
Versions: 2
Compression:
Stored size: 693 Bytes
Contents
module MarketBot module Android # Search query pages are extremely similar to leaderboard pages. # Amazingly, this inheritence hack works! class SearchQuery < MarketBot::Android::Leaderboard def market_urls(options={}) results = [] min_page = options[:min_page] || 1 max_page = options[:max_page] || 25 (min_page..max_page).each do |page| start_val = (page - 1) * 24 url = "https://play.google.com/store/search?" url << "q=#{URI.escape(identifier)}&" url << "c=apps&start=#{start_val}&" url << "num=24" results << url end results end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
market_bot-0.6.1 | lib/market_bot/android/search_query.rb |
market_bot-0.6.0 | lib/market_bot/android/search_query.rb |