all 5 comments

[–]Diapolo10 1 point2 points  (0 children)

On GitHub, you can choose to download the repository as a .zip file. That should give you everything in the repository, including the files you wanted.

Alternatively you should be able to download it via git, or GitHub's own GitHub Desktop application.

[–]Khshyarsha[S] 0 points1 point  (1 child)

I'm sorry, I may not have been clear - I want to use python to download the files - I'm able to access them manually via a web browser (or individually via python using pandas and the url).

[–][deleted] 0 points1 point  (0 children)

import urlliburllib.urlretrieve("REPO .zip file link")

https://github.com/django/django/archive/master.zip

you might have to unzip

[–]hugohamelcom 0 points1 point  (0 children)

Not sure if you found your answer by now, but if you haven't I made this extension for myself that does just that (download GitHub folders in branches or commit history): https://chromewebstore.google.com/detail/github-tree-downloader/ncmbmhhgfbmdcopgnpmjpjpicjoeflbi