Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.276 kb
#!/usr/bin/python
import sys
import urllib
url = sys.argv[1]
path = sys.argv[2]
print url
file = urllib.urlopen(url)
print 'Meta Information of The Link'
info = file.info()
print info
urllib.urlretrieve(url,path)
if info.gettype() == 'text/html':
text = file.read()
Jump to Line
Something went wrong with that request. Please try again.