-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use DownGit with wget or curl? #42
Comments
If you want to use |
@MinhasKamal Could you please share an example code snippet for downloading a subdirectory of a github repo? Thank you. |
@sugatoray The code for downloading GitHub directories should be pretty straight-forward-
You will find many examples by Googling. Here is a python code I found- https://gist.github.com/pdashford/2e4bcd4fc2343e2fd03efe4da17f577d |
@MinhasKamal Thank you, for the examples. Much appreciated! |
@MinhasKamal Could you please activate the "discussion" tab, so if there are questions (which are not exactly issues), people can ask them under discussions? This will also keep the number of open issues low (hopefully). I have another question for you: Is the following link also equivalent to appending a .zip at the end? https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/sugatoray/latex-project-report-template I was trying to use downgit to open any folder in overleaf.com using their api. I know that this works. API: https://www.overleaf.com/dev However, I would like to use the path to any folder (not the just the entire branch). Any suggestions? |
No, you cannot use DownGit for this purpose. https://github.com/sugatoray/latex-project-report-template/archive/refs/heads/master.zip is a direct file/resource link. For your purpose, you have to use DownGit, or implement something like it on a server-side. I am actually an embedded-system developer, so my knowledge of web-app is very limited. |
@MinhasKamal Thank you, for the quick response. |
Hi MinhasKamal, would you explain a bit how the download link work please? I.e., since you're providing a download link functionality, why disabling For my case, I don’t want to download to my local drive but need a download link to do the download in my remote VPS instead. |
How to use DownGit generated URL with
wget
orcurl
? Since the url does not have any file extension, it creates anindex.html
file. Also, is there any way that I can use DownGit generated URL in python to download the zipped file?The text was updated successfully, but these errors were encountered: