View Single Post
Old 08-21-2012, 04:53 AM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
easy reference. no answer yet sorry.

For the next person who may be able to help

The recipe
Spoiler:

Quote:
class AdvancedUserRecipe1345200993(BasicNewsRecipe):
title = u'Programmes TV-TNT'
oldest_article = 1
max_articles_per_feed = 100
auto_cleanup = True

feeds = [(u'PROGRAMMES TV - Orange', u'http://programme-tv.orange.fr/rss/fluxRssProgrammeSoiree.xml?hl=fr')]

def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return soup

def get_cover_url(self):
cover_url = 'http://img98.imageshack.us/img98/7048/coverbqw.jpg'
return cover_url


And a peek at the likely data
Spoiler:

Quote:
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<channel>
<title>Au programme ce soir sur les grandes chaines /TNT</title>
<link>http://programme-tv.orange.fr/</link>
<description><![CDATA[Retrouvez tous les programmes TV des grandes chaînes et de la TNT]]></description>
<language>fr</language>
<copyright>Orange</copyright>
<pubDate>Tue, 21 Aug 2012 01:16:24 +0200</pubDate>
<item>
<title><![CDATA[TF 1 - 20:50 - Arthur et la vengeance de Maltazard]]></title>
<category><![CDATA[Film D'aventures]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937496.jpg" type="image/jpeg" length="10325" />
<link>http://programme-tv.orange.fr/programme/tf-1/2012-08-21/arthur-et-la-vengeance-de-maltazard-68170133.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937496.jpg" width="95" height="74" align="left" border="0">&nbsp;Arthur peut enfin redescendre dans le monde des Minimoys. Il reçoit un message étrange sur un grain de riz, qui lui fait penser que Sélénia est en danger.]]></description>
<pubDate>Tue, 21 Aug 2012 20:50:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[TF 1 - 22:35 - New York unité spéciale]]></title>
<category><![CDATA[Série policière]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/36906338.jpg" type="image/jpeg" length="9469" />
<link>http://programme-tv.orange.fr/programme/tf-1/2012-08-21/new-york-unite-speciale-68170134.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/36906338.jpg" width="95" height="74" align="left" border="0">&nbsp;Une jeune fille est violée chez elle par un homme rencontré un soir dans l'ascenseur de son immeuble. Quelques jours plus tard, elle le revoit dans son quartier.]]></description>
<pubDate>Tue, 21 Aug 2012 22:35:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 2 - 20:35 - Secrets d'histoire]]></title>
<category><![CDATA[Magazine historique]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/40569343.jpg" type="image/jpeg" length="8818" />
<link>http://programme-tv.orange.fr/programme/france-2/2012-08-21/secrets-d-histoire-68170677.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/40569343.jpg" width="95" height="74" align="left" border="0">&nbsp;Le sultan Soliman a régné durant 46 ans sur l'empire ottoman, de 1520 à 1566. Il en a assuré l'expansion territoriale, au Moyen-Orient et en Europe, n'arrêtant ses armées qu'aux portes de Vienne. Il a donné à son empire un code civil et une armature législative qui devaient lui survivre à travers les siècles.]]></description>
<pubDate>Tue, 21 Aug 2012 20:35:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 2 - 22:20 - Le vilain]]></title>
<category><![CDATA[Film Comédie]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937527.jpg" type="image/jpeg" length="8835" />
<link>http://programme-tv.orange.fr/programme/france-2/2012-08-21/le-vilain-68170679.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/13937527.jpg" width="95" height="74" align="left" border="0">&nbsp;Un gangster n'a pas d'autre choix que de se réfugier chez sa mère, qu'il n'a pas vue depuis vingt ans, et qui décide de le ramener dans le droit chemin.]]></description>
<pubDate>Tue, 21 Aug 2012 22:20:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 3 - 20:35 - Jeu de dames]]></title>
<category><![CDATA[Série humoristique]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/40737126.jpg" type="image/jpeg" length="11084" />
<link>http://programme-tv.orange.fr/programme/france-3/2012-08-21/jeu-de-dames-68171324.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/40737126.jpg" width="95" height="74" align="left" border="0">&nbsp;Quatre femmes, qui ne se connaissent pas, se rencontrent lorsque leurs maris et le frère de l'une d'elles disparaissent mystérieusement. Elles décident d'enquêter.]]></description>
<pubDate>Tue, 21 Aug 2012 20:35:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[France 3 - 23:45 - Hilarmonic Show]]></title>
<category><![CDATA[Spectacle Humour]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/40980157.jpg" type="image/jpeg" length="9508" />
<link>http://programme-tv.orange.fr/programme/france-3/2012-08-21/hilarmonic-show-68171328.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/40980157.jpg" width="95" height="74" align="left" border="0">&nbsp;Le Paris Symphonic Orchestra]]></description>
<pubDate>Tue, 21 Aug 2012 23:45:00 +0200</pubDate>
</item>
<item>
<title><![CDATA[Canal+ - 20:50 - Omar m'a tuer]]></title>
<category><![CDATA[Film Thriller]]></category>
<enclosure url="http://media.programme-tv.orange.fr/Images/Programme/95x74/25711794.jpg" type="image/jpeg" length="8382" />
<link>http://programme-tv.orange.fr/programme/canal/2012-08-21/omar-m-a-tuer-67101674.html</link>
<description><![CDATA[<img src="http://media.programme-tv.orange.fr/Images/Programme/95x74/25711794.jpg" width="95" height="74" align="left" border="0">&nbsp;Omar Raddad, un jardinier, est arrêté et condamné en 1994 pour le meurtre de sa patronne, commis en 1991. Il a toujours clamé son innocence, mais en vain.]]></description>
<pubDate>Tue, 21 Aug 2012 20:50:00 +0200</pubDate>
</item>

Perhaps Kovid can have a look if he gets a chance.

Last edited by twobob; 08-21-2012 at 05:03 AM.
twobob is offline   Reply With Quote