ホーム > 未分類 > rubyでiTunesStore検索

rubyでiTunesStore検索

iTunesStoreを検索するrubyスクリプトを作ってみました。
itunesstore.zip
使い方は、

  • 上記zipを展開し、lib/itunes_store.rbをロードパスに置いてください。
  • jsonライブラリに依存しているので、gemでインストールするなどしてください。
  • 以下のように記述することで、検索結果をHashの配列で取得できます。
    require 'itunes_store'
    itunes = ItunesStore::Search.new
    results = itunes.search('beatles', :media => ItunesStore::Media::MUSIC,
    			:entity => 'album')

お気づきの点などあればご指摘お願いします。

カテゴリー: 未分類 タグ: ,
  1. 2020 年 4 月 2 日 05:49 | #2

    Good article. I am facing a few of these issues as well..

  2. 2020 年 4 月 2 日 06:41 | #4

    Having read this I thought it was extremely enlightening. I appreciate you taking the time and effort to put this content together. I once again find myself personally spending way too much time both reading and posting comments. But so what, it was still worthwhile!

  3. 2020 年 4 月 2 日 06:57 | #5

    Very nice post. I definitely love this website. Stick with it!

  4. 2020 年 4 月 2 日 08:29 | #10

    Nice post. I learn something totally new and challenging on blogs I stumbleupon everyday. It’s always interesting to read articles from other writers and use a little something from other websites.

  5. 2020 年 4 月 2 日 09:43 | #13

    Very nice blog post. I definitely love this site. Keep writing!

  6. 2020 年 4 月 2 日 13:01 | #14

    I’m pretty pleased to find this website. I wanted to thank you for ones time due to this fantastic read!! I definitely loved every bit of it and i also have you book marked to see new information in your site.

  7. 2020 年 4 月 2 日 13:48 | #15

    This is a topic that’s near to my heart… Thank you! Exactly where are your contact details though?

  8. 2020 年 4 月 2 日 14:11 | #16

    Hi, I think your web site might be having web browser compatibility issues. When I take a look at your blog in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping issues. I just wanted to give you a quick heads up! Other than that, excellent blog!

コメントページ
1 23 24 25 6
  1. トラックバックはまだありません。