python-ox/ox/web/archive.py

11 lines
169 B
Python
Raw Normal View History

2012-01-13 13:52:55 +00:00
# -*- 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