Elixir module to scrape data from Itunes App Store.
Gradually porting it from app-store-scraper
NodeJS module.
First, add appstore
to your list of dependencies in mix.exs
:
def deps do
[{:appstore, "~> 0.2.0"}]
end
and run $ mix deps.get
Available modules:
Handles API calls directly related to an application.
Retrieves the full detail of an application. Options:
bundleId
: the Itunes bundleId. This parameter must be provided.country
: the two letter country code to get the app from. Defaults tous
.
Example:
{:ok, app} = AppStore.App.get_details "com.midasplayer.apps.candycrushsaga"
app.sellerName
#"King.com Limitied"
Allow users to search throughout App Store.
Retrieves a list of apps searched by a given term.
Method Signature: by_keyword(term, device, num, country)
Options:
term
: a term to search for. Required.device
: a device to filter for. Defaults tosoftware
, which brings all devices. Other options areiPadSoftware
andmacSoftware
.num
: the quantity of apps to be retrieved. Defaults to50
. Max should be250
, there's no validation so far, though. (TODO
).country
: the two letter country code to get the list from. Defaults tous
.
Example:
{:ok, apps} = AppStore.Search.by_keyword("deutschland", "software", 20, "de")
apps
#[ {...}, {...} ] a list of apps.
This module is quite new, and there's a lot to be improved and implemented.
I intend to put here on docs a complete todo list soon, but meanwhile I don't do this, check out the app-store-scraper
to have a good reference and idea of what the module should offer.
Feel free to fork it, enhance and send a PR.