Google Playのランキング取得 メモ

Google Playのランキングサイトを作りたいので、メモ。

参考サイト
Google Playのアプリ情報をスクレイピングで取得「Android Market API」

bearstouch/android_market_api

インストール方法
sudo gem install android_market_api


urlをどう変更すればいいのか。
編集箇所
vim /Library/Ruby/Gems/1.8/gems/android_market_api-0.3.2/lib/android_market_api/android_market_application.rb

url="https://play.google.com/store/apps?id="+@package+"&hl="+language


vim /Library/Ruby/Gems/1.8/gems/android_market_api-0.3.2/lib/android_market_api/android_market.rb

def AndroidMarket.get_overall_top_selling_free_app(position,language='en')


vim top_selling.rb
require 'rubygems'
require 'android_market_api'

#Overall Position 15 Free Apps
app=AndroidMarket.get_overall_top_selling_free_app(15)