<div dir="ltr"><div><div><div>Hi Eliot,<br><br></div>During the weekend I managed to get the latest version on bintray for my own projects (Woden) by using their REST API, without paying for the premium support. I wrote some Python scripts that works on Windows, Linux and Mac.<br><br></div><div>The attached Python script can be used to get the latest version of Cog available at bintray. Here are some examples of the script usage along with its output:<br><br><blockquote>ronie@ronie-asus:~/projects/woden-bintray$ python bintray_cog.py pharo.cog.spur_linux32x86<br>pharo.cog.spur_linux32x86_itimer_201803080952.tar.gz<br>pharo.cog.spur_linux32x86_201803080952.tar.gz<br><br>ronie@ronie-asus:~/projects/woden-bintray$ python bintray_cog.py -url pharo.cog.spur_linux32x86<br><a href="https://dl.bintray.com/opensmalltalk/vm/pharo.cog.spur_linux32x86_itimer_201803080952.tar.gz">https://dl.bintray.com/opensmalltalk/vm/pharo.cog.spur_linux32x86_itimer_201803080952.tar.gz</a><br><a href="https://dl.bintray.com/opensmalltalk/vm/pharo.cog.spur_linux32x86_201803080952.tar.gz">https://dl.bintray.com/opensmalltalk/vm/pharo.cog.spur_linux32x86_201803080952.tar.gz</a><br><br>ronie@ronie-asus:~/projects/woden-bintray$ python bintray_cog.py -download pharo.cog.spur_linux32x86<br>Download pharo.cog.spur_linux32x86_itimer_201803080952.tar.gz 100%[4544 / 4540 KB]<br>pharo.cog.spur_linux32x86_itimer_201803080952.tar.gz<br></blockquote><br></div>Best regards,<br></div>Ronie<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-18 13:41 GMT-03:00 Tobias Pape <span dir="ltr"><<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Eliot,<br>
<br>
<br>
> On 18.03.2018, at 17:10, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
> Hi Tim,<br>
<span class="">><br>
> On Mar 15, 2018, at 4:11 PM, tim Rowledge <<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>> wrote:<br>
><br>
>><br>
>><br>
>><br>
>>> On 15-03-2018, at 3:24 PM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
>>><br>
>>><br>
>>> This is easily parseable when fetched with curl/wget etc.  But when one tries to compose a URL giving just those files, e.g.<br>
>>><br>
>>> <a href="https://bintray.com/opensmalltalk/vm/cog/201803080952#files" rel="noreferrer" target="_blank">https://bintray.com/<wbr>opensmalltalk/vm/cog/<wbr>201803080952#files</a><br>
>>><br>
>>> one gets back javascript, not file names.  I urgently need a parseable link to a list of just the latest build, or a specific build, not the long list at <a href="https://dl.bintray.com/opensmalltalk/vm/" rel="noreferrer" target="_blank">https://dl.bintray.com/<wbr>opensmalltalk/vm/</a><br>
>><br>
>> Does this - <a href="https://bintray.com/docs/api/#_content_downloading" rel="noreferrer" target="_blank">https://bintray.com/docs/api/#<wbr>_content_downloading</a> - make any sense in this context?<br>
><br>
</span>> Thanks for the pointer.  No, it doesn't help; it has info on premium support options that we don't have.  However, this:<br>
><br>
> <a href="https://bintray.com/opensmalltalk/vm/cog/" rel="noreferrer" target="_blank">https://bintray.com/<wbr>opensmalltalk/vm/cog/</a><br>
><br>
> now has a Latest Version Badge that might work.  I committed a hack that finds the latest release from notifications (it's a hack because notifications has limited length and if it notifies other than successful builds it could end up containing no notifications for successful builds).  I'll take a look at the Latest Version Badge (& thanks to whoever provided it).<br>
<br>
That latest version badge points to: <a href="https://bintray.com/opensmalltalk/vm/cog/_latestVersion" rel="noreferrer" target="_blank">https://bintray.com/<wbr>opensmalltalk/vm/cog/_<wbr>latestVersion</a><br>
<br>
And if I HTTP HEAD that, I get:<br>
$ curl -I <a href="https://bintray.com/opensmalltalk/vm/cog/_latestVersion
HTTP/1.1" rel="noreferrer" target="_blank">https://bintray.com/<wbr>opensmalltalk/vm/cog/_<wbr>latestVersion<br>
HTTP/1.1</a> 302 Found<br>
Server: nginx<br>
Date: Sun, 18 Mar 2018 16:39:03 GMT<br>
Content-Length: 0<br>
Connection: keep-alive<br>
Location: <a href="https://bintray.com/opensmalltalk/vm/cog/201803080952" rel="noreferrer" target="_blank">https://bintray.com/<wbr>opensmalltalk/vm/cog/<wbr>201803080952</a><br>
X-Frame-Options: SAMEORIGIN<br>
Strict-Transport-Security: max-age=31536000; preload<br>
<br>
<br>
That is, it will redirect to the respective version, with which you can construct the DL path and the file name.<br>
<br>
Best regards<br>
        -Tobias<br>
<br>
><br>
> Eliot<br>
> _,,,^..^,,,_ (phone)<br>
<span class="">>><br>
>><br>
>> tim<br>
>> --<br>
>> tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
>> Unix love: unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep<br>
><br>
</span>> arch<br>
<br>
</blockquote></div><br></div>