diff --git a/the-powder-toy.py b/the-powder-toy.py index 0ed0793..257a598 100644 --- a/the-powder-toy.py +++ b/the-powder-toy.py @@ -2,10 +2,10 @@ import re import urllib2 import sys -h=urllib2.urlopen("https://github.com/FacialTurd/PowderToypp/tags").read() -v_finder=re.compile('Version (?P[\d\.]+) (?:.*)\(build (?P[\d]+)\)', re.M) +h=urllib2.urlopen("http://powdertoy.co.uk/Download.html").read() +v_finder=re.compile('Version (?P[\d\.]+) for (?:.*)', re.M) m=v_finder.finditer(h) if not m: sys.exit() for x in m: v=x.group("version") - print "%s"%(v,v) + print "%s"%(v,v)