rony2605

Chamar texto do html no site

Mar 14th, 2013
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data