omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    file downloader ?

    Pythonista
    3
    3
    3173
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Abdalwahab
      Abdalwahab last edited by

      Hello are there a file downloader for Pythonista (for easily downloading from github ) 
      
      1 Reply Last reply Reply Quote 0
      • bennr01
        bennr01 last edited by 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.

        1 Reply Last reply Reply Quote 0
        • lachlantula
          lachlantula last edited by

          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")
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors