minhaskamal / downgit Goto Github PK
View Code? Open in Web Editor NEWCreate GitHub Resource Download Link
Home Page: https://minhaskamal.github.io/DownGit
License: MIT License
Create GitHub Resource Download Link
Home Page: https://minhaskamal.github.io/DownGit
License: MIT License
Download this link:
https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/julmot/mark.js/tree/master/dist
The resulting folder is empty for me.
I was having issues with my file backup system and found the source of the error. It appears DownGit changes the file modification date, and for me, set it to a few hours in the future.
See an example below, first I downloaded a subset of a repo with DownGit and unzipped/
Then I downloaded the entire repo and looked at the same file, with it's modification date unchanged.
Downgit works wonderful, except for a folder structure named rfsa/adsp: e.g.:
https://github.com/TheMuppets/proprietary_vendor_lge/tree/lineage-15.1/msm8996-common/proprietary/vendor/lib/rfsa/adsp
Downloading this folder results in a 22 Byte small zip-file without any content. The files in rfsa/adsp are included in the "official" download provided by Github for the whole archive. Windows and Linux with Firefox 61, Chromium and Edge were the browsers I've tested, if that's helpful to you.
Keep up this great service :)
Hi,
First of all, thank you very much for this simple but useful tool.
I would like to address you this issue about a problem I'm having today: I'm trying to download a folder from a repository, every file downloads fine except for those uploaded with LFS (as they exceed 25MB) which get downloaded as a 133B file instead; this file contains a link to LFS, a code and the size of the file in bytes.
I tried to download these files singularly and it works fine, but it still doesn't work if I'm downloading the entire folder at once.
I'll link the (file which should be the) biggest one of them to this issue, it's displayed as a .jar file when downloaded but I just renamed it as a .txt file in order to upload it here, it contains only text information as I mentioned earlier.
Thank you very much for the patience you show in reading these issues!
P.S.: I'm the owner of the repository I'm downloading from so if there's any error in the way I uploaded the files or if you need any extra info don't hesitate to contact me, thank you again.
AmbientSounds_v3.1.4_mc1.16.4.txt
Example:
https://gist.githubusercontent.com/Bluscream/88135009829dbd140d285428507d71bf/raw/repair.bat
This would be great. Downloading the zip is useless right now as the resulting zip is not compressed anyway.
Is any way to download folder from private repository?
When repo contain characters outside ASCII character-set, the downloaded zip file's filename will not correct display, because of the working mechanism of the URL Encoding .
Such as download this repo's sub dir, it should named 计算机科学导论 but "%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%A7%91%E5%AD%A6%E5%AF%BC%E8%AE%BA".
It's good to add extensions for both Google Chrome and Mozilla Firefox!
Downloading the home directory (aka the master/main branch) of a repository with the &rootDirectory=false
flag gives you a zip where the root directory (named <repo>-<main/master>
) is still present. This is not the behavior I expected.
Example: https://minhaskamal.github.io/DownGit/#/home?url=https:%2F%2Fgithub.com%2FMinhasKamal%2FDownGit&rootDirectory=false returns a zip file with the DownGit-master
root directory still present.
Is this a known limitation of this tool? Is this feature only available for sub-folders in the repository?
If the address of the folder to be downloaded is provided with the slash at the end, like upperfolder/foldername/, then the name of all the downloaded files in the foldername do not have the initial symbol, i.e. file.py
becomes ile.py
, etc.
How to use DownGit generated URL with wget
or curl
? Since the url does not have any file extension, it creates an index.html
file. Also, is there any way that I can use DownGit generated URL in python to download the zipped file?
In #27 , I said I encountered the same problem as that guy. Actually, as I observe, it seems a little different. When my download progress is stuck, I can see this in F12:
Its response:
{
"message": "API rate limit exceeded for 45.32.27.8. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
"documentation_url": "https://developer.github.com/v3/#rate-limiting"
}
Your program requests too frequently but won't retry when failing. Therefore the download will fail even if only one error occurs. I suggest retrying for 3 times at least or set a button.
When I tried to use downgit with:
https://github.com/analogdevicesinc/arduino/tree/master/Arduino%20Uno%20R3/examples/CN0216_example
I get the url:
which gives me a zip file, which includes the three files included in the git directory that I'm pointing to, but the names have all changed.
Files:
get changed into:
https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/SimpleTaskSystem-Core
Create Download LinkDownload
Failed to load resource: the server responded with a status of 403 (Forbidden)
{ "message": "API rate limit exceeded for N.N.N.N. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)", "documentation_url": "https://developer.github.com/v3/#rate-limiting" }
And maybe allow authentication
Cant get the root folder not to show. Testing link is
Also cant get the naming feature to work with this.
First of all, thanks a lot for this useful tool!
Opening a DownGit link triggers a warning in chrome, e.g. https://minhaskamal.github.io/DownGit/#/home?url=https:%2F%2Fgithub.com%2Fhello%2Ftest
This happens (in Chrome) for all links I try to open in DownGit.
I am unsure why this is triggered, but sort of get it, as a shortened DownGit link could theoretically be misued to get someone who clicks on it to download (not execute) almost anything from GitHub (but then again, so could GitHubs own "download repo as zip" link, so is it really as bad?...).
I could not find out why this is the case specifically (i.e. what those cases were that Chrome claims were abusing the site to have people harmful things).
Trying to download anything with a space or a non-standard unicode character in its name will download a file with html's code format instead. For example.
I need to zoom in when open with mobile
Try add this tag inside head tag
<meta name="viewport" content="width=device-width, initial-scale=1">
Sometimes, especially if it seems more convenient to do so, some may wish to validate their URLs, and oftentimes for DownGit this means immediately preparing files for download, rather than adding in the additional step of validating if the link points to something which exists.
For convenience, and to save you bandwidth, it may be in your interest to add a check routine which can be triggered separate from the download routine, so people who are editing DownGit URLs by hand can check to see if their addresses are valid, rather than going through the process of preparing an archive such users would not intend to download.
Hi, I downloaded the file used the DownGit. But the xxx.zip file need password.
What is the password for unzip?
Thanks
because the weak front-end,so I can not understand the specific implementation 。Can you tell me, how you got the original address of the file through the file link?
Try out with this repo, it will silently fail https://github.com/aresrpg/resourcepacks
directory with custom zip file name: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&fileName=DownGitImage
directory without root directory: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&rootDirectory=false
directory with custom root directory: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/tree/master/res/images&rootDirectory=AllImages
file (image): https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/blob/master/res/images/downgit.png
entire repo: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit
directory contains empty file [↗]: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/roca/GO/tree/master/pluralsight/go-concurrent-programming/4-go-concurrent-programming-m4-exercise-files/1/ConcurrentGo
directory has a sub-directory with same name [↗]: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/iluwatar/java-design-patterns/tree/master/flyweight
directory has a sup-directory with same name [↗]: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/iluwatar/java-design-patterns/tree/master/flyweight/src/main/java/com/iluwatar/flyweight
directory name containing dot (.) [↗]: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/SharePoint/PnP/tree/master/Solutions/Provisioning.UX.App/Provisioning.UX.App
file name containing no dot (.): https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/MinhasKamal/DownGit/blob/master/LICENSE
Can this in some way be disabled and/or removed? I need to download the file itself for a proxy tool but it downloads the file inside a .zip instead.
For example: https://github.com/MinhasKamal/DownGit/tree/master/app
Developer console showed that the requests after clicking "Download" returned 403 status code
for example, after i download :
https://github.com/Mi5Devs/proprietary_vendor_xiaomi/tree/lineage-16.0/msm8996-common
and then i want to download :
https://github.com/TheMuppets/proprietary_vendor_xiaomi/tree/lineage-16.0/msm8996-common
on this part, the downgit website will down.
When I had downloaded folder by this link https://github.com/xamarin/ios-samples/tree/master/WatchKit/WatchKitCatalog output archive is damaged.
Is it possible to use the download link in a shell ? Something alike :
curl -L https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/CIRB/devbox/tree/v3/user/config
Thanks for building this handy tool.
Unfortunately it is not working for me. Pasted link of URL (https://github.com/SharePoint/PnP/tree/master/Solutions/Provisioning.UX.App) and started downloading. At 254 files it stopped and nothing happened and I got no downloaded files. [Source: SO Comment]
Hi,
Is there a way to create a zip archive that does not contain a subfolder, but only the contents of that folder directly at the root level of the archive? And is there a way to give the archive a specific name?
I have a github repository with a directory https://github.com/jan-gerard/EV3_GyroBlox/zipball/master/unzipped, and I would like to create a link that downloads the contents of that folder as a zip file without a sub-folder, with a specific name (EV3_GyroBlox.ev3s) and extension, which is not zip.
Hi @MinhasKamal,
It would be nice if multiple folders or folders and files from different URLs can be combined into single zip-file.
Please, consider it as a feature request.
Thanks.
Issue Description:
Upon inserting a GitHub repository link and clicking the "download" button, an error message is shown and the repository is not downloaded.
I tried using different repository links from various public GitHub projects and the error still persisted.
DownGit seems to work fine though for just individual files, but not directory links from public GitHub repositories.
https://cdn.rawgit.com/Stuk/jszip/v3.0.0/dist/jszip.min.js
The link of this resource failed, causing the download project to fail.
Git submodules seem to not be supported by DownGit.
Examples:
The webpage says "Downloading X of X files" but seems to be stucked because it never proposes a file to download.
However the submodule can be downloaded separately without problem: https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/Altium-Designer-addons/scripts-libraries/tree/master/BetterRevertVCS
No problem when a repo does not contain any submodule.
Can you consider adding the support of the submodules inside DownGit?
I don't know why but this appears each time that I use the webpage
try with this link: https://github.com/iluwatar/java-design-patterns/tree/master/flyweight
inside the src/main/java/com/iluwatar/flyweight
suppose to have files like java codes, but only sub-folders are download and archived.
Not sure if this is a current limitation you can bypass with more code, but I am trying to provide a directory with section signs (§
) and they end up being butchered into some weird HTML notation.
In my specific use case, it's for Minecraft resource packs since colour information can be added into file names (from §0
to §f
) but I could imagine special symbols used in different written languages would also suffer from this horrible fate.
Users can now use: bit.ly/downgit
(consider adding to readme as the original url is hard to remember)
Keep up the good work!
not sure where it comming from. amd i have literally tried all possible best to find remedy to the problem but all effort seems aborted
Hi @MinhasKamal - first of all - thanks for this wonderful tool! I find it extremely useful!
I'm using this link to download a zipped folder for iDempiere translation in German:
The file returned is perfect for what is required to import the translation in the program.
The problem I see is that the ZIP is using compression level 0, this is, not compressing at all, the files weight 5.3MB, and is the same size of the zip file, at compression level 1 the file size is reduced to 799KB, with level 9 is 666KB.
Is it possible to add a flag maybe for the desired compression level, or compress by default in some useful level?
Regards,
Carlos Ruiz
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.