Scrapes daily installation metrics for a public WordPress plugin hosted on WordPress.org (for use with cron)
Scrapes and saves the following info:
date
: The current dateversion
: The most recent plugin versioninstallsActive
: The current number of installs (rounded to 100's)downloadsYesterday
: The number of yesterday's new downloadsdownloadsTotal
: The number of total downloadsissuesMonthTotal
: The number of support issues reported in the last monthissuesMonthResolved
: The number of resolved support issues in the last month
The script is based on PhantomJS. On Linux:
apt-get install phantomjs
phantomjs wordpress-plugin-stats-scraper.js <plugin_slug> [<output_file.csv>]
- To see usage instructions
phantomjs wordpress-plugin-stats-scraper.js
- To save today's statistics for plugin with slug
akismet
phantomjs wordpress-plugin-stats-scraper.js akismet
The above will write or append to akismet-installs.csv
in the current working directory.
- To save today's statistics for plugin with slug
akismet
to file/home/user/akismet-statistics.csv
:
phantomjs wordpress-plugin-stats-scraper.js akismet /home/user/akismet-statistics.csv
- PhantomJS - Scriptable Headless Browser
This project is licensed under the WTFPL License - see the LICENSE.md file for details
- A big thank you to the nice people at WordPress.org and to the PhantomJS developers!