From fdbf18980f0f611cb36938647666c6f630cee397 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 13 Jan 2012 19:22:55 +0530 Subject: [PATCH] archive.org module --- ox/web/archive.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ox/web/archive.py diff --git a/ox/web/archive.py b/ox/web/archive.py new file mode 100644 index 0000000..54c45a4 --- /dev/null +++ b/ox/web/archive.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 + + +def getId(url): + return url.split("/")[-1] + +def getUrl(id): + return "http://www.archive.org/details/%s" % id +