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)
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.
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.
Try my new github_download.py script.
How is this method?
display the source code that you want to download and change it to 'Raw' mode.
carry out 'wget URL '
As for this by reference.
(Japanese HomePage, sorry...^^;;)
Use the dev-modular shellista. Grab shellista.py it installs the rest. Use git clone url.git from it.
type plugin install git
then make a folder with rm project name
git clone url.git
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.
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.
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.
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.
- New branch is better. 2) duh, need .git on end of repository name. Operator error.