项目作者: jcoynel

项目描述 :
Swift Package to download user reviews from the Apple App Store.
高级语言: Swift
项目地址: git://github.com/jcoynel/app-store-reviews-swift.git
创建时间: 2021-01-30T15:18:46Z
项目社区:https://github.com/jcoynel/app-store-reviews-swift

开源协议:MIT License

下载


Swift 5.3
CI
codecov
SPM compatible

About AppStoreReviews

AppStoreReviews is a Swift Package to download user reviews from the iTunes Store and the Mac App Store.

It supports:

  • All countries
  • All apps on the iTunes Store
  • All apps on the Mac App Store

This module uses the public feed to customer reviews: https://itunes.apple.com/rss/customerreviews/page=1/id=1510826067/sortby=mostrecent/json?l=en&cc=gb

Installation

Swift Package Manager

Adding AppStoreReviews as a dependency is as easy as adding it to the dependencies value of your Package.swift.

  1. dependencies: [
  2. .package(url: "https://github.com/jcoynel/app-store-reviews-swift.git", .upToNextMajor(from: "1.0.0")),
  3. ]

Mint

  1. $ mint install jcoynel/app-store-reviews-swift

Usage

As a command line tool when installed with Mint

app-store-reviews includes several subcommands and options:

  1. OVERVIEW: Fetch user reviews from the Apple App Stores.
  2. USAGE: app-store-reviews [--version] <subcommand>
  3. OPTIONS:
  4. -v, --version Print the version and exit.
  5. -h, --help Show help information.
  6. SUBCOMMANDS:
  7. reviews Fetch all the reviews from the App Store Reviews feed for the provided app ID and territory.
  8. page Fetch the App Store Reviews feed page for the provided app ID, territory and page number.
  9. territories Print the list of territories reviews can be fetched for.
  10. See 'app-store-reviews help <subcommand>' for detailed help.

territories

  1. OVERVIEW: Print the list of territories reviews can be fetched for.
  2. USAGE: app-store-reviews territories
  3. OPTIONS:
  4. -h, --help Show help information.

Examples:

  1. $ app-store-reviews territories

reviews

  1. OVERVIEW: Fetch all the reviews from the App Store Reviews feed for the provided app ID and territory.
  2. USAGE: app-store-reviews reviews <app-id> <territory> <file-output>
  3. ARGUMENTS:
  4. <app-id> The ID of the app.
  5. <territory> App Store country or region.
  6. <file-output> The reviews file output.
  7. OPTIONS:
  8. -h, --help Show help information.

Examples:

  1. $ app-store-reviews reviews 555731861 GB reviews_555731861_GB.json
  2. $ app-store-reviews reviews 497799835 US reviews_497799835_US.json

page

  1. OVERVIEW: Fetch the App Store Reviews feed page for the provided app ID, territory and page number.
  2. USAGE: app-store-reviews page <app-id> <territory> <page> <file-output>
  3. ARGUMENTS:
  4. <app-id> The ID of the app.
  5. <territory> App Store country or region.
  6. <page> The page number.
  7. <file-output> The reviews file output.
  8. OPTIONS:
  9. -h, --help Show help information.

Examples:

  1. $ app-store-reviews page 555731861 GB 1 page_555731861_1_GB.json
  2. $ app-store-reviews page 497799835 US 1 page_497799835_1_US.json
  3. $ app-store-reviews page 497799835 US 5 page_497799835_5_US.json

As a library

Add the following to your Package.swift file’s dependencies:

  1. .package(url: "https://github.com/jcoynel/app-store-reviews-swift.git", .upToNextMajor(from: "1.0.0")),

And then import wherever needed:

  1. import AppStoreReviews