Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 999 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 999 Bytes

Fetch iTunes App Store reviews for each application, across all country stores. Reads rating, author, subject and review body.

Refactored from Jeremy Wohl's script -> Derived from Erica Sadun's scraper

required gems: hpricot httparty

Example

You can find an app's ID in iTunes Connect, or at the end of its App Store url:

http:// itunes.apple.com/us/app/italk-recorder-premium/id296271871?mt=8

require 'appstore-scraper'

apps = {
	'iTalk' => 296271871,
}

stores = [
	'United States',
	'France',
]

scraper = AppstoreScraper.new
scraper.fetch_latest_version_only = true
scraper.max_reviews = 10
scraper.sort_order = AppstoreScrapper::SortOrders::MOST_RECENT

reviews = []
begin
	apps.each_value do |app|
		stores.each do |store|
			scraper.set_store(store)
			reviews << scraper.fetch_reviews(app)
		end
	end
rescue => e
	puts e.message
end