I'd like to know how many downloads of a given package in a PPA there have been since it was first published.
I remember there was a bug about it about getting these metrics on the web UI, but as far as I know, it never got implemented.
But I think the number of downloads can nevertheless be obtained via the Launchpad API if I'm the owner of that PPA. Any pointers?
Check out this script:
To use it:
You can generate an HTML report containing statistics and graphs about download counts of a PPA with ppastats (http://wpitchoune.net/blog/ppastats/).
Here is an example: http://wpitchoune.net/ppastats/ppa/otto-kesselgulasch/gimp/.
If you are using Ubuntu, you can install it by using the PPA ppa:jfi/ppastats:
Then to generate the HTML report:
From the
jfi/ppastats
package, I managed to figure out how the API worked, and I made a userscript (Greasemonkey/Tampermonkey), that will neatly list the download count next to your packages. Make sure to go to the "View all builds" view, to which there is two links added in your package details. Patches for improvements are welcome!There is another python script available at:
https://bugs.launchpad.net/launchpad/+bug/139855/comments/66
DL: https://bugs.launchpad.net/launchpad/+bug/139855/+attachment/3217345/+files/ppastats
usage: ppastat.py [-h] [--all] [--arch ARCH] user [ppa [ppa ...]]