Skip to content

Commit

Permalink
tide.py: New upstream watcher for tIDE (a java IDE)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Christoph Korn committed Nov 17, 2012
1 parent 727bad3 commit 5a5a756
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tide.py
Original file line number Diff line number Diff line change
@@ -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<version>[\d\.]+)", re.M)
m=f.finditer(h)
for x in m:
v = x.group("version")
print "<a href='http://tide.olympe.in/%s'>%s</a>"%(v,v)

1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a5a756

Please sign in to comment.