Giter Club home page Giter Club logo

downgit's People

Contributors

minhaskamal avatar parsa2820 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

downgit's Issues

Should not alter 'file modification date'

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.

screen shot 2017-12-27 at 18 39 31

Empty folder when downloading files from a folder structure named rfsa/adsp

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 :)

LFS files don't get downloaded as they should

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

Gist support

Example:

https://gist.githubusercontent.com/Bluscream/88135009829dbd140d285428507d71bf/raw/repair.bat

Private repo

Is any way to download folder from private repository?

Recommendation!

It's good to add extensions for both Google Chrome and Mozilla Firefox!

Downloading main/master branch of a repo with &rootDirectory=false still contains root directory

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?

slash in the address after the foldername

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 with wget or curl?

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?

Download stuck when a request fails

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:

image

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.

files inside zip renamed?

When I tried to use downgit with:

https://github.com/analogdevicesinc/arduino/tree/master/Arduino%20Uno%20R3/examples/CN0216_example

I get the url:

https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/analogdevicesinc/arduino/tree/master/Arduino%20Uno%20R3/examples/CN0216_example

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:

  • AD7791.cpp
  • AD7791.h
  • CN0216_example.ino

get changed into:

  • 91.cpp
  • 91.h
  • 16_example.ino

Trap API rate limit error

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

Blocked in Chrome as "contains harmful programs"

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

image

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).

viewport for mobile

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">

Request: Add link validation feature

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.

Favicon Dark mode request

The favicon is almost invisible in dark backgrounds.

image
image

I suggest having an icon similar to that of Github to make it visible in dark backgrounds?

Download File from GitHub

Hi, I downloaded the file used the DownGit. But the xxx.zip file need password.
What is the password for unzip?
Thanks

file address counseling

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?

Regular And Exceptional Test Cases

General

Exceptional

Downloads file as zip

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.

Using the download link with curl

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.

Download without folder inside archive

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.

Error Server Failure for Directory Links Containing Many Files

image

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.

Support for git submodules

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?

Special symbols in directory names aren't given as-is

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.

Compression level zero

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:

https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/bxservice/tbayen.translations/tree/master/data/de_DE&fileName=de_DE&rootDirectory=false

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.