Skip to content

Instantly share code, notes, and snippets.

@joneskoo
Created March 6, 2011 12:00
Show Gist options
  • Save joneskoo/857233 to your computer and use it in GitHub Desktop.
Save joneskoo/857233 to your computer and use it in GitHub Desktop.
urllib example in python3
#!/usr/bin/env python3.1
import urllib.request
opener = urllib.request.FancyURLopener()
f = opener.open('https://localhost/url')
print(f.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment