X-Git-Url: http://gitweb.pimeys.fr/?p=today.git;a=blobdiff_plain;f=today_server.py;h=7e31652e9d049afb771de33c3857478d499db901;hp=598a421fad662ec52baac72f42786947ef21c305;hb=745bc217569cf2f81ecb74708c725b4ab53cdc25;hpb=b51baa9dd11477238323855734eeefd82145d5e5 diff --git a/today_server.py b/today_server.py index 598a421..7e31652 100755 --- a/today_server.py +++ b/today_server.py @@ -139,6 +139,14 @@ def last_grenier(): titles = parse_youtube("joueurdugrenier") return len(titles) +def last_jl8(): + rss = urllib.urlopen("http://limbero.org/jl8/rss/") + t = rss.read() + x = etree.fromstring(t) + links = x.xpath("//link") + maxnum = links[1].text.split("/")[-1] + maxnum = int(maxnum) + return maxnum def get_file(): """Récupère la liste des derniers ids de chaque truc, stockée dans le fichier.""" @@ -164,6 +172,7 @@ FETCHS = { "norman" : last_norman, "cyprien" : last_cyprien, "grenier" : last_grenier, + "dc" : last_jl8, } def fetch_all():