Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Pega informacao do html no site
- import urllib.request
- page = urllib.request.urlopen("http://beans.itcarlow.ie/prices.html")
- text = page.read().decode("utf8")
- where = text.find('>$') #Busca a partir de $
- start_of_prince = where + 2 #casas de inicio
- end_of_prince = start_of_prince + 8 #casas fim
- prince = text[start_of_prince:end_of_prince]
- print(prince)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement