From 4751919f5cb98734b7b06fda3b752523298d2df9 Mon Sep 17 00:00:00 2001 From: Christoph Korn Date: Sun, 18 Nov 2012 15:53:34 +0100 Subject: [PATCH] sandboxgamemaker.py: Initial version The download links of Platinum Arts Sandbox Free Game Maker just contain an incrementing number which has nothing to do with the actual version. This upstream watchers tries to find the version in the description of the download on the site. The generated link will 404 of course but will also give you the URL to the download site. --- sandboxgamemaker.py | 9 +++++++++ update.sh | 1 + 2 files changed, 10 insertions(+) create mode 100644 sandboxgamemaker.py diff --git a/sandboxgamemaker.py b/sandboxgamemaker.py new file mode 100644 index 0000000..eee8405 --- /dev/null +++ b/sandboxgamemaker.py @@ -0,0 +1,9 @@ +#!/usr/bin/python +import urllib2 +import re +h=urllib2.urlopen("http://www.sandboxgamemaker.com/free-game-maker-downloads").read() +f=re.compile("Platinum Arts Sandbox Free 3D Game Maker (?P[\d\.]+)") +m=f.finditer(h) +for x in m: + v = x.group("version") + print "%s"%(v,v) diff --git a/update.sh b/update.sh index 7fcb927..2b92670 100644 --- a/update.sh +++ b/update.sh @@ -9,3 +9,4 @@ python nikki.py > nikki.html 2> nikki.log python legends.py > legends.html 2> legends.log python the-powder-toy.py > the-powder-toy.html 2> the-powder-toy.log python tide.py > tide.html 2> tide.log +python sandboxgamemaker.py > sandboxgamemaker.html 2> sandboxgamemaker.log