Skip to content

Instantly share code, notes, and snippets.

@ktl014
Created May 25, 2018 19:11
Show Gist options
  • Save ktl014/b711b06773d0878a24cdb61d52fcc6a2 to your computer and use it in GitHub Desktop.
Save ktl014/b711b06773d0878a24cdb61d52fcc6a2 to your computer and use it in GitHub Desktop.
how to open urls with urllib
from urllib.request import urlopen
html = urlopen("http://www.google.com/")
print(html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment