Skip to content

Commit

Permalink
Add upstream watcher for jwltief
Browse files Browse the repository at this point in the history
The download page just uses id's in the link.
The version is only shown as text. Parse this version
and add it to the URL of the download page.
This will 404 but you will be on the right way.
  • Loading branch information
Christoph Korn committed Nov 15, 2013
1 parent 6aea19e commit 69edfee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jwltief.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/python
import urllib2
import re

r=urllib2.urlopen("http://games.aleva.com.br/jwltief/")
html=r.read()

finder=re.compile('(?:.*)<a href="(?:[^"]+)">Jwltief (?P<version>[\d\.]+) Linux \(Debian/Ubuntu\)</a>(?:.*)', re.DOTALL)
m=finder.match(html)
if m:
v=m.group('version')
print "<a href='http://games.aleva.com.br/jwltief/%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 @@ -4,6 +4,7 @@ python warsow.py > warsow.html 2> warsow.log
python snowstorm.py > snowstorm.html 2> snowstorm.log
python wakeonplan.py > wakeonplan.html 2> wakeonplan.log
python jag.py > jag.html 2> jag.log
python jwltief.py > jwltief.html 2> jwltief.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
Expand Down

0 comments on commit 69edfee

Please sign in to comment.