Skip to content

Instantly share code, notes, and snippets.

@blachniet
Last active December 17, 2015 17:09
Show Gist options
  • Select an option

  • Save blachniet/5644165 to your computer and use it in GitHub Desktop.

Select an option

Save blachniet/5644165 to your computer and use it in GitHub Desktop.
Python - Get http stream data from url
import urllib2
url = "http://google.com"
usock = urllib2.urlopen(url)
data = usock.read()
usock.close()
print data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment