← Back to team overview

openshot.developers team mailing list archive

Re: PPA Statistics Script

 

Didn't work for me. this is all I got. hope this helps. John
---------------------------------------
         OPENSHOT'S PPA STATS
---------------------------------------

---------------------------------------
 Stats for: jonoomph/openshot-edge
---------------------------------------
Traceback (most recent call last):
  File "ppastats.py", line 24, in <module>
    for individualarchive in
archive.getPublishedBinaries(status='Published',distro_arch_series=desired_dist_and_arch
% (os, arch)):
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py",
line 558, in __call__
    url, in_representation, http_method, extra_headers=extra_headers)
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/_browser.py",
line 281, in _request
    raise error
lazr.restfulclient.errors.BadRequest: HTTP Error 400: Bad Request
Response headers:
---
connection: close
content-length: 92
content-type: text/plain;charset=utf-8
date: Thu, 15 Sep 2011 22:37:02 GMT
server: zope.server.http (HTTP)
status: 400
vary: Accept,Accept-Encoding
via: 1.1 api.launchpad.net
x-lazr-notifications: []
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
distro_arch_series: No such object "
https://api.edge.launchpad.net/devel/ubuntu/lucid/i386";.
---



On Thu, Sep 15, 2011 at 6:18 PM, Jonathan Thomas
<jonathan.oomph@xxxxxxxxx>wrote:

> Hi everyone,
> I just wrote a script that prints out the PPA download statistics for our 3
> PPAs.  I'm not sure exactly how accurate these numbers are, but I wanted to
> share the script with everyone.
>
>  *Step 1)* Extract ppastats.zip (assuming it lets me email this to the
> mailing list)
> *Step 2) *sudo apt-get install python-launchpadlib
> *Step 3)* python ppastats.py
>
> Enjoy!
> -Jonathan
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers
> Post to     : openshot.developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openshot.developers
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References