archive.org module
This commit is contained in:
parent
b506c13bb2
commit
fdbf18980f
1 changed files with 10 additions and 0 deletions
10
ox/web/archive.py
Normal file
10
ox/web/archive.py
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue