New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

app-store-scraper

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-store-scraper - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

lib/developer.js

1

index.js

@@ -11,2 +11,3 @@ 'use strict';

search: require('./lib/search'),
developer: require('./lib/developer'),
suggest: require('./lib/suggest'),

@@ -13,0 +14,0 @@ similar: require('./lib/similar'),

2

lib/common.js

@@ -70,3 +70,3 @@ 'use strict';

const joinedIds = ids.join(',');
const url = `${LOOKUP_URL}?${idField}=${joinedIds}&country=${country}`;
const url = `${LOOKUP_URL}?${idField}=${joinedIds}&country=${country}&entity=software`;
return doRequest(url, {}, requestOptions)

@@ -73,0 +73,0 @@ .then(JSON.parse)

@@ -10,3 +10,3 @@ 'use strict';

const reviews = results.feed.entry || [];
return reviews.slice(1).map((review) => ({
return reviews.map((review) => ({
id: review.id.label,

@@ -13,0 +13,0 @@ userName: review.author.name.label,

@@ -39,3 +39,8 @@ 'use strict';

.then(R.pluck('id'))
.then((ids) => common.lookup(ids, 'id', opts.country, opts.requestOptions))
.then((ids) => {
if (!opts.idsOnly) {
return common.lookup(ids, 'id', opts.country, opts.requestOptions);
}
return ids;
})
.then(resolve)

@@ -42,0 +47,0 @@ .catch(reject);

{
"name": "app-store-scraper",
"version": "0.13.0",
"version": "0.14.0",
"description": "scrape data from the itunes app store",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,2 +16,3 @@ # app-store-scraper [![Build Status](https://secure.travis-ci.org/facundoolano/app-store-scraper.png)](http://travis-ci.org/facundoolano/app-store-scraper)

- [search](#search): Retrieves a list of apps that results of searching by the given term.
- [developer](#developer): Retrieves a list of apps by the given developer id.
- [suggest](#suggest): Given a string returns up to 50 suggestions to complete a search query term.

@@ -92,2 +93,3 @@ - [similar](#similar): Returns the list of "customers also bought" apps shown in the app's detail page.

those returned by the `app` method).
* `idsOnly`: (optional, defaults to `false`): skip extra lookup request. Search results will contain array of application ids.

@@ -142,2 +144,3 @@ Example:

* `lang`: language code for the result text. Defaults to `en-us`.
* `idsOnly`: (optional, defaults to `false`): skip extra lookup request. Search results will contain array of application ids.

@@ -178,2 +181,34 @@ Example:

### developer
Retrieves a list of applications by the give developer id. Options:
* `devId`: the iTunes "artistId" of the developer, for example `284882218` for Facebook.
* `country`: the two letter country code to get the app details from. Defaults to `us`. Note this also affects the language of the data.
Example:
```javascript
var store = require('app-store-scraper');
store.developer({devId: 284882218}).then(console.log).catch(console.log);
```
Results:
```js
[
{ id: 284882215,
appId: 'com.facebook.Facebook',
title: 'Facebook',
(...)
},
{ id: 454638411,
appId: 'com.facebook.Messenger',
title: 'Messenger',
(...)
},
(...)
]
```
### suggest

@@ -248,3 +283,3 @@

* `country`: the two letter country code to get the reviews from. Defaults to `us`.
* `page`: the review page number to retrieve. Defaults to `0`, maximum allowed is `9`.
* `page`: the review page number to retrieve. Defaults to `1`, maximum allowed is `10`.
* `sort`: the review sort order. Defaults to `store.sort.RECENT`, available options are `store.sort.RECENT` and `store.sort.HELPFUL`.

@@ -251,0 +286,0 @@

@@ -60,2 +60,15 @@ 'use strict';

});
it('should be able to retrieve array of application ids', (done) => {
store.search({
term: 'vr',
idsOnly: true
})
.then(res => {
assert.isArray(res);
assert.isTrue(res.every(item => typeof item === 'string'));
done();
})
.catch(done);
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc