diff --git a/calibre.py b/calibre.py new file mode 100644 index 0000000..ec5c81d --- /dev/null +++ b/calibre.py @@ -0,0 +1,15 @@ +#!/usr/bin/python +import httplib + +def main(): + conn = httplib.HTTPConnection("status.calibre-ebook.com") + conn.request("HEAD", "http://status.calibre-ebook.com/dist/src") + res = conn.getresponse() + print ""%(res.status, res.reason) + h = res.getheaders() + for k,v in h: + if k == "location": + print "%(v)s"%locals() + +if __name__ == "__main__": + main() diff --git a/update.sh b/update.sh index 5733b4f..3ac075a 100644 --- a/update.sh +++ b/update.sh @@ -13,3 +13,4 @@ python sandboxgamemaker.py > sandboxgamemaker.html 2> sandboxgamemaker.log python codeslayer.py > codeslayer.html 2> codeslayer.log python marathon.py > marathon.html 2> marathon.log sh higan.sh > higan.html 2> higan.log +python calibre.py > calibre.hzml 2> calibre.loh