]> gitweb.pimeys.fr Git - today.git/blob - sagas.py
La futurs annivs affichés le sont sur un espace temporel connexe
[today.git] / sagas.py
1 #!/usr/bin/env python
2 # -*- encoding: utf-8 -*-
3
4 """ Récupération des sagas MP3 """
5
6 import urllib
7 import re
8
9 def last_xantah():
10 p = urllib.urlopen("http://www.adoprixtoxis.com/lite/download/xantah_downloads.php")
11 t = p.read()
12 ids = re.findall("""<div class="top">Xantah (.*?)</div>""", t)
13 ids = [int(i) for i in ids]
14 return max(ids)
15
16 functions = {
17 "xantah" : last_xantah
18 }