Not sure what would cause that error.  My script just modifies the script
found in this article:
http://www.webupd8.org/2010/12/launchpad-finally-gets-ppa-usage-stats.html

I was hoping I could get rid of one of these PPAs, since they basically have
the same version of OpenShot in both of them.  But from the looks of the
numbers, lots of people use both PPAs.

Here is what I get when I run it:

---------------------------------------
         OPENSHOT'S PPA STATS
---------------------------------------

---------------------------------------
 Stats for: jonoomph/openshot-edge
---------------------------------------
openshot 1.3.1-lucid1 8444
openshot-doc 1.3.1-lucid1 8358
openshot 1.3.1-maverick1 7200
openshot-doc 1.3.1-maverick1 7156
openshot 1.3.1-natty1 15143
openshot-doc 1.3.1-natty1 15005

TOTAL Downloads (jonoomph/openshot-edge): 61306

---------------------------------------
 Stats for: openshot.developers/ppa
---------------------------------------
openshot 1.3.1-lucid1 6266
openshot-doc 1.3.1-lucid1 6197
openshot 1.3.1-maverick1 9848
openshot-doc 1.3.1-maverick1 9820
openshot 1.3.1-natty1 5974
openshot-doc 1.3.1-natty1 5895

TOTAL Downloads (openshot.developers/ppa): 44000

---------------------------------------
 Stats for: openshot.developers/daily
---------------------------------------
openshot 1.3.1+0+570+52~lucid1 1
openshot-doc 1.3.1+0+570+52~lucid1 1
openshot 1.3.1+0+570+52~maverick1 3
openshot-doc 1.3.1+0+570+52~maverick1 3
openshot 1.3.1+0+570+52~natty1 2
openshot-doc 1.3.1+0+570+52~natty1 2
openshot 1.3.1+0+570+52~oneiric1 2
openshot-doc 1.3.1+0+570+52~oneiric1 2

TOTAL Downloads (openshot.developers/daily): 16

Thanks!
-Jonathan

On Thu, Sep 15, 2011 at 5:39 PM, John Volk <[email protected]> wrote:

> 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 <[email protected]
> > 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     : [email protected]
>> Unsubscribe : https://launchpad.net/~openshot.developers
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~openshot.developers
> More help   : https://help.launchpad.net/ListHelp
>
>
_______________________________________________
Mailing list: https://launchpad.net/~openshot.developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openshot.developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to