Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request
- import io
- u = urllib.request.urlopen('http://www.python.org')
- f = io.TextIOWrapper(u, encoding='utf-8')
- texto = f.read()
- print(texto)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement