[xiphos-devel] download counts

Greg Hellings greg.hellings at gmail.com
Sat Aug 12 09:57:49 MST 2017


If you're not interested in breaking out each element, and only want a
total download count, you can use this filter, instead:

curl -X GET https://api.github.com/repos/crosswire/xiphos/releases | jq
'[.[0].assets[] | .download_count] | add'

--Greg

On Sat, Aug 12, 2017 at 12:43 PM, Greg Hellings <greg.hellings at gmail.com>
wrote:

> Doesn't look like they have a way on their UI to do it, but you can use
> this information for the purpose:
>
> https://help.github.com/articles/getting-the-download-
> count-for-your-releases/
>
> Processing this for the latest release can be done as follows:
> curl -X GET https://api.github.com/repos/crosswire/xiphos/releases | jq
> '.[0].assets[] | .name, .download_count'
>
> This requires the "jq" tool, which is similar to awk/sed/grep for
> processing JSON formatted data. It is a 0-depdendency C program available
> from Fedora repos. I get the following output for this command, at present:
>
> "xiphos-4.0.6-20170810-win32.exe"
> 4
> "xiphos-4.0.6-20170810-win64.exe"
> 6
> "xiphos-4.0.6-20170810.tar.gz"
> 16
> "xiphos-common-4.0.6-1xi.fc24.i686.rpm"
> 0
> "xiphos-common-4.0.6-1xi.fc24.x86_64.rpm"
> 3
> "xiphos-debuginfo-4.0.6-1xi.fc24.i686.rpm"
> 0
> "xiphos-debuginfo-4.0.6-1xi.fc24.x86_64.rpm"
> 0
> "xiphos-gtk2-4.0.6-1xi.fc24.i686.rpm"
> 0
> "xiphos-gtk2-4.0.6-1xi.fc24.x86_64.rpm"
> 0
> "xiphos-gtk3-4.0.6-1xi.fc24.i686.rpm"
> 0
> "xiphos-gtk3-4.0.6-1xi.fc24.x86_64.rpm"
> 3
> "xiphos.spec"
> 2
>
> --Greg
>
> On Sat, Aug 12, 2017 at 11:03 AM, Karl Kleinpaste <karl at kleinpaste.org>
> wrote:
>
>> SF provided histograms of download activity, providing useful indicators
>> of who looked for what.
>>
>> Does GH provide similar capability?
>>
>> _______________________________________________
>> xiphos-devel mailing list
>> xiphos-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/xiphos-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/xiphos-devel/attachments/20170812/00a3d139/attachment.html>


More information about the xiphos-devel mailing list