Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request
- def get_prince():
- page = urllib.request.urlopen("http://beans.itcarlow.ie/prices.html")
- text = page.read().decode("utf8")
- where = text.find('>$')
- start_of_price = where + 2
- end_of_price = start_of_price + 4
- print(text[start_of_price:end_of_price])
- get_prince()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement