Last active
August 29, 2015 14:15
-
-
Save rmanly/b8ba77d42a36dfd6d4fe to your computer and use it in GitHub Desktop.
uses munkilib's fetch to dl a file via gurl via NSURL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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