-
-
Save pfcbenjamin/a3c355f6857a00f5b685 to your computer and use it in GitHub Desktop.
download-page.py
This file contains 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 urllib, webbrowser, clipboard, editor, os.path | |
url = clipboard.get() | |
page = urllib.urlopen(url) | |
content = page.read() | |
# Code below ripped from Ole Zorn's New from Gist script | |
from urlparse import urlparse | |
filename = os.path.split(urlparse(url).path)[1] | |
editor.make_new_file(filename, content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment