archive.org module

This commit is contained in:
j 2012-01-13 19:22:55 +05:30
parent b506c13bb2
commit fdbf18980f

10
ox/web/archive.py Normal file
View file

@ -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