How to count published Actions on Google using puppeteer

この記事には日本語版があります。

Introduction

The number of Alexa skills can be checked in the "Newest Arrivals" category in the Alexa app. On the other hand, no way was found to count published Actions on Google. So I counted them using puppeteer. The result was 700 for Japanese AoG, 3421 for US AoG As of November 28, 2018.

In this article, I will show you how to count published AoG using puppeteer.

Steps

mkdir count-aog
cd count-aog
npm i puppeteer
curl https://gist.githubusercontent.com/mayosuke/45f40eae39389720845c1945646482f5/raw/d8f4cab872e33a9f0dc4deb16d278eb23e9f0488/count-aog.js -o count-aog.js
node count-aog.js ja-JP | sort | uniq | wc -l
  • The different locale can be counted by changing the argument 'ja-JP' for count-aog.js to other local
  • count-aog.js takes about 10 minutes for Japanese AoG, about 15 minutes for US AoG

Environment

  • OS: macOS Mojave 10.14.1
  • node: 8.11.1
  • npm: 6.4.1
  • puppeteer: 1.10.0

Conclusion

How to count the number of AoG using puppeteer was introduced. Please be aware that there is a possibility that this method will become unusable in the future due to the structure change of the AoG site and so on.

Thank you for reading until the end. I would be happy if you could share this article with SNS. I'm waiting for comments too!

References