From 5f93eb14a1998e8ebffd87b85c55cea9d79a0c7a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 Jul 2010 09:09:51 -0600 Subject: [PATCH] ... --- resources/recipes/singtao_daily.recipe | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/resources/recipes/singtao_daily.recipe b/resources/recipes/singtao_daily.recipe index 4146231d7d..f25014ed9a 100644 --- a/resources/recipes/singtao_daily.recipe +++ b/resources/recipes/singtao_daily.recipe @@ -31,13 +31,19 @@ class AdvancedUserRecipe1278063072(BasicNewsRecipe): def parse_index(self): feeds = [] for title, url in [ - ('Editorial', 'http://news.singtao.ca/toronto/editorial.html'), - (u'Toronto \xe5\x9f\x8e\xe5\xb8\x82/\xe7\xa4\xbe\xe5\x8d\x80', 'http://news.singtao.ca/toronto/city.html'), - (u'Canada \xe5\x8a\xa0\xe5\x9c\x8b', 'http://news.singtao.ca/toronto/canada.html'), - ('Entertainment', 'http://news.singtao.ca/toronto/entertainment.html'), - ('World', 'http://news.singtao.ca/toronto/world.html'), - (u'Finance \xe5\x9c\x8b\xe9\x9a\x9b\xe8\xb2\xa1\xe7\xb6\x93', 'http://news.singtao.ca/toronto/finance.html'), - ('Sports', 'http://news.singtao.ca/toronto/sports.html'), + ('Editorial', + 'http://news.singtao.ca/toronto/editorial.html'), + ('Toronto \xe5\x9f\x8e\xe5\xb8\x82/\xe7\xa4\xbe\xe5\x8d\x80'.decode('utf-8'), + 'http://news.singtao.ca/toronto/city.html'), + ('Canada \xe5\x8a\xa0\xe5\x9c\x8b'.decode('utf-8'), + 'http://news.singtao.ca/toronto/canada.html'), + ('Entertainment', + 'http://news.singtao.ca/toronto/entertainment.html'), + ('World', + 'http://news.singtao.ca/toronto/world.html'), + ('Finance \xe5\x9c\x8b\xe9\x9a\x9b\xe8\xb2\xa1\xe7\xb6\x93'.decode('utf-8'), + 'http://news.singtao.ca/toronto/finance.html'), + ('Sports', 'http://news.singtao.ca/toronto/sports.html'), ]: articles = self.parse_section(url) if articles: