Advertisement
rony2605

Chamar texto do html no site

Mar 14th, 2013
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. import urllib.request
  2.  
  3. page = urllib.request.urlopen("http://www.pendrivelinux.com/")
  4. text = page.read().decode("utf8")
  5.  
  6. prince = text[1:9]
  7. print(prince)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement