Sha256: 3f7ef9b9b064664cbb6ce36a0a5b8023bffb86dd2e415cfcf3476a4a4476ddca
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 Bytes
Contents
module MarketBot module Movie class SearchQuery < MarketBot::Movie::Leaderboard def initialize(query, options={}) super(query, nil, options) end def market_urls(options={}) results = [] min_page = options[:min_page] || 1 max_page = options[:max_page] || 25 country = options[:country] || 'us' (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=movies&start=#{start_val}&" url << "gl=#{country}&" url << "num=24&hl=en" results << url end results end end end end
Version data entries
4 entries across 4 versions & 1 rubygems