-def last_dtc():
- """Vérifie si il y a des quotes DTC non lues"""
- return dtc.last_inserted()
-
-def last_xkcd():
- p = urllib.urlopen("http://xkcd.com")
- t = p.read()
- current_id = int(re.findall("Permanent link to this comic: http://xkcd.com/(.*?)/", t)[0])
- return current_id
-
-def last_xantah():
- p = urllib.urlopen("http://www.adoprixtoxis.com/lite/download/xantah_downloads.php")
- t = p.read()
- ids = re.findall("""<div class="top">Xantah (.*?)</div>""", t)
- ids = [int(i) for i in ids]
- return max(ids)
-
-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
-