Help us understand the problem. What is going on with this article?

各国のAppStoreの売上TOP5を取得するRubyスクリプト

More than 3 years have passed since last update.

ひと月前のAppAnnieのブログ

これによると、「アメリカ、日本、中国、イギリス、オーストラリア」がアプリの売上の上位国らしい。

ってことで、各国でどんなアプリがランクインしてるのか気になったので調べてみた。

require 'rss'

country_table = { 'us' => 'アメリカ',
                  'jp' => '日本',
                  'cn' => '中国',
                  'gb' => 'イギリス',
                  'at' => 'オーストラリア' }

country_table.each do |country, country_name|
  url = "https://itunes.apple.com/#{country}/rss/topgrossingapplications/limit=10/xml"
  rss = RSS::Parser.parse(url)
  p country_name
  rss.entries.take(5).each.with_index(1) do |entry, i|
    title = entry.title.content
    p "#{i}. #{title}"
  end
end

出力した結果を整形

(2015/05/11(月)23:28現在)

アメリカ

  1. Clash of Clans - Supercell
  2. Game of War - Fire Age - Machine Zone, Inc
  3. HBO NOW - HBO
  4. Pandora Radio - Pandora Media, Inc.
  5. Candy Crush Saga - King.com Limited

日本

  1. モンスターストライク - mixi, Inc
  2. パズル&ドラゴンズ - GungHo Online Entertainment, Inc.
  3. LINE:ディズニー ツムツム - LINE Corporation
  4. ドラゴンクエストモンスターズ スーパーライト - SQUARE ENIX INC
  5. 白猫プロジェクト - COLOPL, Inc.

中国

  1. 梦幻西游-2015国民手游 人人都玩 不玩才怪 - 网易移动游戏
  2. 全民突击-全球第一真人实时对战FPS枪战手游 - Shenzhen Tencent Computer Systems Company Limited
  3. 神武 - Hero Network
  4. 魔龙与勇士(DNW)-腾讯第一实时PK格斗手游 - Shenzhen Tencent Computer Systems Company Limited
  5. 刀塔传奇--亿万玩家实时PK 跨服激战! - 龙图游戏

イギリス

  1. Clash of Clans - Supercell
  2. Spotify Music - Spotify Ltd.
  3. Game of War - Fire Age - Machine Zone, Inc
  4. Candy Crush Saga - King.com Limited
  5. Candy Crush Soda Saga - King.com Limited

オーストラリア

  1. Clash of Clans - Supercell
  2. Hearthstone: Heroes of Warcraft - Blizzard Entertainment, Inc.
  3. LOVOO - People like you. Deine Chat App für Interessen, Live Fotos & Events deiner Freunde - LOVOO GmbH apps
  4. Hay Day - Supercell
  5. Candy Crush Saga - King.com Limited

雑感

  • どの国もゲームばっかり
  • SupercellとKingがつおいね(・∀・)
  • アメリカとイギリスで音楽関係あるから、これからはもうそういう時代なのかな

関連

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away