From aa60f1e33f30e5cbe27edcd59567988d85c3ff24 Mon Sep 17 00:00:00 2001 From: Christoph Korn Date: Fri, 9 Nov 2012 19:29:04 +0100 Subject: [PATCH] the-powder-toy.py: Initial version Add an upstream watcher for the game "The Powder Toy". http://powdertoy.co.uk/ The download link does not contain the version. The version is only text on the page. This upstream watcher gets the version and creates a download link for it. This link does not exist so you get a 404. But at least you know where to look for the real download link because the version is prefixed with the homepage URL. --- the-powder-toy.py | 11 +++++++++++ update.sh | 1 + 2 files changed, 12 insertions(+) create mode 100644 the-powder-toy.py diff --git a/the-powder-toy.py b/the-powder-toy.py new file mode 100644 index 0000000..57a3e72 --- /dev/null +++ b/the-powder-toy.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +import re +import urllib2 +import sys +h=urllib2.urlopen("http://powdertoy.co.uk/").read() +v_finder=re.compile('