On Tue, 13 Sep 2022 18:05:23 +0200 Bastian Germann <b...@debian.org> wrote:
> Now the release pages of both Gitlab and GitHub generate their hrefs via 
> JavaScript which kills uscan for them.
> See #1019696. They should both have an API to handle this.

Github has such an API.

For instance, here's a call that retrieve the URLs of the last assets of 
libtommath on Github:

$ curl -q https://api.github.com/repos/libtom/libtommath/releases | jq 
'.[0].assets[] | select( .name | test("xz")) | .browser_download_url'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  180k  100  180k    0     0  1019k      0 --:--:-- --:--:-- --:--:-- 1021k
"https://github.com/libtom/libtommath/releases/download/v1.2.1/ltm-1.2.1.tar.xz";
"https://github.com/libtom/libtommath/releases/download/v1.2.1/ltm-1.2.1.tar.xz.asc";

Reply via email to