Unable to download snap package from my private repository?

I want to download docker.snap file from my private repository using python code ,but some how i am not able to do it .

Can somebody help out from it


What is the snap package? A Docker package published on GitHub Packages in your private repository, or an asset of the release in your private repository?

If the snap package is on GitHub Packages, you need to log into the GitHub Packages to download it.

If it is an asset of the release, you can use the curl command to download it.

curl -O -L -u <user>:<password> https://github.com/<owner>/<repo>/releases/download/<tag-version>/<filename>.zip

You just need to import the related libraries (e.g. import subprocess) that allow you execute these commands in the Python code.