Forum Archive

file downloader ?

Abdalwahab
Hello are there a file downloader for Pythonista (for easily downloading from github ) 
bennr01

@Abdalwahab You can use StaSh for downloading files or cloning repositories. To download a file in StaSh, use the command wget url_here. To clone a repository, use git clone url_to_repo_here.

lachlantula

What @bennr01 said is probably the best choice, but if you ever want to download something else, use:

import urllib.request
urllib.request.urlretrieve("direct link to file", "filename.extension")