From bcb684928eeacb88519404d9c82a89d74eac684a Mon Sep 17 00:00:00 2001 From: Christoph Korn Date: Tue, 22 Nov 2016 22:02:53 +0100 Subject: [PATCH] shinjiru.py: Add watcher for upstream releases 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. --- shinjiru.py | 9 +++++++++ update.sh | 1 + 2 files changed, 10 insertions(+) create mode 100644 shinjiru.py diff --git a/shinjiru.py b/shinjiru.py new file mode 100644 index 0000000..43a1ea1 --- /dev/null +++ b/shinjiru.py @@ -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[\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 35659de..e2eadd5 100644 --- a/update.sh +++ b/update.sh @@ -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