From 5a5a7565e045bcf82ea0d438762bf7d66a55c19d Mon Sep 17 00:00:00 2001 From: Christoph Korn Date: Sat, 17 Nov 2012 23:15:36 +0100 Subject: [PATCH] tide.py: New upstream watcher for tIDE (a java IDE) The site http://tide.olympe.in/main.htm announces the new release with a version but this version is not part of the download link. The link just points to a tide.jar. So this watcher gets the version and appends it to "http://tide.olympe.in/". Again this gives a 404 but you will have the place to look for the download link. --- tide.py | 11 +++++++++++ update.sh | 1 + 2 files changed, 12 insertions(+) create mode 100644 tide.py diff --git a/tide.py b/tide.py new file mode 100644 index 0000000..47379e9 --- /dev/null +++ b/tide.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +import urllib2 +import re + +h=urllib2.urlopen('http://tide.olympe.in/main.htm').read() +f=re.compile("\[version (?P[\d\.]+)", re.M) +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 0b1518f..7fcb927 100644 --- a/update.sh +++ b/update.sh @@ -8,3 +8,4 @@ python jag.py > jag.html 2> jag.log 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