question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use DownGit with wget or curl?

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
MinhasKamalcommented, Jul 28, 2021

@sugatoray The code for downloading GitHub directories should be pretty straight-forward-

  1. take the GutHub directory link
  2. hit the GitHub API (manual- https://docs.github.com/en/rest)
  3. search through the directory and download all files

You will find many examples by Googling. Here is a python code I found- https://gist.github.com/pdashford/2e4bcd4fc2343e2fd03efe4da17f577d

1reaction
MinhasKamalcommented, Apr 12, 2021

If you want to use wget, curl, or python, then you don’t need DownGit. You can directly call GitHub API and download the files.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download directory from private github repo using wget
Using this data, the script can recursively go through all content in the target folder, create folders for nested folders, and download all...
Read more >
How to Download Files Using wget and curl - The Geek Stuff
Answer: On a high-level, both wget and curl are command line utilities that do the same thing. They both can be used to...
Read more >
How to download a GitHub repo as .zip using command line
Using cURL. curl -L https://github.com/<user>/<repo>/archive/<branch>.zip. cURL's -L flag follows redirects - it's a default in wget.
Read more >
Download Releases from Github using Curl and Wget
Find out how to donwload GitHub releases using Curl and Wget on your linux systems.
Read more >
Changelog for git-annex-6.20180626 - Hackage
Windows: Remove wget from bundle; it needs libraries that are not included, and git for windows includes curl which git-annex will use instead....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found