Skip to content

Commit

Permalink
shinjiru.py: Add watcher for upstream releases
Browse files Browse the repository at this point in the history
The GitHub repository does not contain tags or releases.
There is a download link that contains a version
but it is somehow created with JavaScript.
  • Loading branch information
ckorn committed Nov 22, 2016
1 parent f8bfb0e commit bcb6849
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shinjiru.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/python
import urllib2
import re
h=urllib2.urlopen("http://shinjiru.me/home").read()
f=re.compile("ng-init=\"version='(?P<version>[\d\.]+)'\"", re.M)
m=f.finditer(h)
for x in m:
v=x.group("version")
print "<a href='https://github.com/Kazakuri/Shinjiru/%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 @@ -13,3 +13,4 @@ python marathon.py > marathon.html 2> marathon.log
python calibre.py > calibre.html 2> calibre.log
python pycharm.py > pycharm.html 2> pycharm.log
python xnviewmp.py > xnviewmp.html 2> xnviewmp.log
python shinjiru.py > shinjiru.html 2> shinjiru.log

0 comments on commit bcb6849

Please sign in to comment.