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.


    Github

    Pythonista
    8
    11
    6179
    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.
    • polymerchm
      polymerchm last edited by

      I am struggling with downloading scripts from github that are not gists. How does one do that without going through things like goodreader and then cutting/pasting, but brings them directly into pythonista. The "New from Gist" tool only works for GISTs (that is: appropriate URL structure)

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

        You can use shellista with git clone url. Or you can download the files as a zip and unzip them in pythonista. You could also use wget in shellista to grab the zip then unzip it.

        shellista.py

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

          If you only want to get a single file, it should also be possible to simply copy-paste it directly from Safari. It may be necessary to go to the "raw" version of the script first. Safari's selection can also be somewhat problematic at times.

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

            Try my new github_download.py script.

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

              How is this method?

              display the source code that you want to download and change it to 'Raw' mode.
              copy 'URL'.
              start 'shellista'.
              carry out 'wget URL '


              As for this by reference.
              http://beer2011.hatenablog.com/entry/20140809/1407545770
              (Japanese HomePage, sorry...^^;;)

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

                Use the dev-modular shellista. Grab shellista.py it installs the rest. Use git clone url.git from it.
                https://github.com/transistor1/shellista/blob/dev-modular/shellista.py
                run shellista.py
                type plugin install git
                then make a folder with rm project name
                git clone url.git

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

                  A GUI tool that works like a dream for downloading GitHub repos is elliospizzaman's filedownloader.py.

                  With the two minor modification that I propose at the end of the comments section, I just go to the repo in question and tap the "Download ZIP" button at the lower right of the page and copy that URL to the clipboard (without performing the download).

                  Then I fire up filedownloader and tap the "Download" button, watch the progress bar do its thing, tap the "Yes" button to unzip the file and I have an appropriately named local directory with all of the repo' contents. Slick.

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

                    here is a script that allows you to skip a few steps in that process,
                    ....

                    this figures out the zip url from the user, repo, branch contained in the github url, then downloads and unzips.
                    You can also use the bookmarklet, see the Readme, similar to gistcheck, so you just go to a repo, click the bookmark, and pythonista is launched and the entire repo(branch) is downloaded.

                    I

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

                      GitHubGet works really well and is easy to use fro the actions menu. While Shellista's wget works as well, GitHubGet is a single click once u have a url copy pasted from the browser.

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

                        Nickster, if you have installed the bookmarklet, you don't even need to copy a url, you can click the bookmarklet directly from the github page of interest.

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

                          1. New branch is better. 2) duh, need .git on end of repository name. Operator error.
                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB Forums | Contributors