import urllib.request page = urllib.request.urlopen("http://beans.itcarlow.ie/prices.html") text = page.read().decode("utf8") price = text.find(">$") start_of_price = price + 2 end_of_price = price + 6 preco = text[start_of_price:end_of_price] print(text) print(price) print(preco)