Skip to content

Instantly share code, notes, and snippets.

@rmanly
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save rmanly/b8ba77d42a36dfd6d4fe to your computer and use it in GitHub Desktop.

Select an option

Save rmanly/b8ba77d42a36dfd6d4fe to your computer and use it in GitHub Desktop.
uses munkilib's fetch to dl a file via gurl via NSURL
import sys
sys.path.append('/usr/local/munki/munkilib')
import fetch
fetch.get_url('http://www.irs.gov/pub/irs-prior/f1040ez--2014.pdf', '/Users/ryan/Desktop/1040ez.pdf')
fetch.get_url('https://www.gnu.org/software/wget/index.html', '/Users/ryan/Desktop/index.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment