X-Git-Url: http://gitweb.pimeys.fr/?p=today.git;a=blobdiff_plain;f=sagas.py;fp=sagas.py;h=9e05694b1ab6085132dfc82b7ad35d430126d605;hp=0000000000000000000000000000000000000000;hb=498e92a26ccd83ce1cca487308b4351c1a37d7ce;hpb=f858db9ed9baa860032d2777838aa029c0cb99b9 diff --git a/sagas.py b/sagas.py new file mode 100644 index 0000000..9e05694 --- /dev/null +++ b/sagas.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +""" Récupération des sagas MP3 """ + +import urllib +import re + +def last_xantah(): + p = urllib.urlopen("http://www.adoprixtoxis.com/lite/download/xantah_downloads.php") + t = p.read() + ids = re.findall("""
Xantah (.*?)
""", t) + ids = [int(i) for i in ids] + return max(ids) + +functions = { + "xantah" : last_xantah + }