0

I've checked out this here on Stack Overflow, but following what's outlined there, I'm still getting "not found" on pages that I know have releases.

For example, if I want to download the latest URL for something like https://github.com/storybookjs/storybook/releases, for a number of repositories dynamically, why do I get a 404 when I use https://github.com/storybookjs/storybook/releases/latest/download/package.zip

What am I missing here?

Thanks in advance!

anonymoose
  • 1,169
  • 2
  • 21
  • 62
  • 1
    Please share more details. Why do you assume that all releases are packaged into `package.zip`? – Nico Haase Jun 13 '21 at 14:51
  • @NicoHaase, Hi, thanks—I may have misunderstood, but at the article I link in my post, there's some discussion about how it should redirect – anonymoose Jun 13 '21 at 14:54
  • Have you checked that further? I would assume that this is a problem with that specific package – Nico Haase Jun 13 '21 at 14:56

1 Answers1

2

It might be easier to use GitHub's API for that, as documented for releases. The URL format is

https://api.github.com/repos/{owner}/{repo}/releases

For example, https://api.github.com/repos/symfony/symfony/releases lists all releases for a PHP package. The JSON node zipball_url contains a link to a ZIP package for each release.

Nico Haase
  • 11,420
  • 35
  • 43
  • 69