Read remote content
1 2 from urllib import * 3 url = 'http://example.com/index.html' 4 html = urlretrieve(url).read()
DZone Snippets > korakot > urllib
13483 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Korakot Chaovavanich http://korakot.stumbleupon.com
1 2 from urllib import * 3 url = 'http://example.com/index.html' 4 html = urlretrieve(url).read()