A simple Ruby module to fetch app information from Apple's App Store.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
README.md
app_store.rb

README.md

A simple Ruby module to fetch app information from Apple's App Store.

Depends on mechanize

require 'app_store'

# fetch a single App if you have the item-id
my_app = AppStore.fetch_app_by_id('317468456')
my_app.class
=> App
my_app.title
=> "Stick It - iPhone Sticky Notes"
my_app.price
=> 0.99
my_app.methods - Object.methods
=> ["title", "url", "icon_url", "price", "release_date", "item_id"]

# or fetch an array of apps matching a search term
app_list = AppStore.search('notes')
app_list.class
=> Array
app_list.first.class
=> App