Abdalwahab
Jan 28, 2017 - 15:02
Hello are there a file downloader for Pythonista (for easily downloading from github )
Hello are there a file downloader for Pythonista (for easily downloading from github )
@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.
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")