2016-11-09 3 views
1

私は次のnode.js google-play-scraperリポジトリを使用しています:https://github.com/facundoolano/google-play-scraperGoogle Playのレビューをスクラップしている間に禁止されることを避けるにはどうすればよいですか?

私は約1500のレビューを掻き取った後禁止されています。最近では、Google Playのスロットル制限をヒットヒットしないようにするために、実装がスロットリングされています

var gplay = require('google-play-scraper'); 

gplay.reviews({ 
    appId: 'com.mojang.minecraftpe', 
    page: 0, 
    sort: gplay.sort.RATING 
}).then(function(apps){ 
    console.log('Retrieved ' + apps.length + ' reviews!'); 
}).catch(function(e){ 
    console.log('There was an error fetching the reviews!'); 
}); 

:私は、それが例に示されているかのようなスクリプトを使用しています。しかし、私は私の例でこれを使う方法を理解することができませんでした。

var gplay = require('google-play-scraper'); 

// the following method will perform batches of 10 requests per second 
gplay.search({term: 'panda', throttle: 10}).then(console.log); 

がgplay.reviewsのスロットルを()を使用する方法はあります:提供絞る例はgplay.search()のためにあるのですか?

答えて

関連する問題