From 095f0eaec95dfc95aa6b9dfa9a584945fdaa03bf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 27 Mar 2008 03:22:50 +0000 Subject: [PATCH] --- src/libprs500/web/feeds/recipes/atlantic.py | 6 ++++-- src/libprs500/web/feeds/recipes/bbc.py | 4 +++- src/libprs500/web/feeds/recipes/dilbert.py | 2 ++ src/libprs500/web/feeds/recipes/economist.py | 4 +++- src/libprs500/web/feeds/recipes/newsweek.py | 3 ++- src/libprs500/web/feeds/recipes/nytimes.py | 4 +++- src/libprs500/web/feeds/recipes/outlook_india.py | 4 +++- src/libprs500/web/feeds/recipes/portfolio.py | 4 +++- src/libprs500/web/feeds/recipes/usatoday.py | 2 +- src/libprs500/web/feeds/recipes/wsj.py | 2 ++ 10 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/libprs500/web/feeds/recipes/atlantic.py b/src/libprs500/web/feeds/recipes/atlantic.py index d2ffc66f38..063b39f991 100644 --- a/src/libprs500/web/feeds/recipes/atlantic.py +++ b/src/libprs500/web/feeds/recipes/atlantic.py @@ -10,7 +10,9 @@ from libprs500.web.feeds.news import BasicNewsRecipe class TheAtlantic(BasicNewsRecipe): - title = 'The Atlantic' + title = 'The Atlantic' + __author__ = 'Kovid Goyal' + description = 'Current affairs and politics focussed on the US' INDEX = 'http://www.theatlantic.com/doc/current' remove_tags_before = dict(name='div', id='storytop') @@ -49,4 +51,4 @@ class TheAtlantic(BasicNewsRecipe): }) - return [('Current Issue', articles)] \ No newline at end of file + return [('Current Issue', articles)] diff --git a/src/libprs500/web/feeds/recipes/bbc.py b/src/libprs500/web/feeds/recipes/bbc.py index 1924378477..c551f054be 100644 --- a/src/libprs500/web/feeds/recipes/bbc.py +++ b/src/libprs500/web/feeds/recipes/bbc.py @@ -10,6 +10,8 @@ from libprs500.web.feeds.news import BasicNewsRecipe class BBC(BasicNewsRecipe): title = u'The BBC' + __author__ = 'Kovid Goyal' + description = 'Global news and current affairs from the British Broadcasting Corporation' no_stylesheets = True remove_tags = [dict(name='div', attrs={'class':'footer'})] @@ -32,4 +34,4 @@ class BBC(BasicNewsRecipe): ] def print_version(self, url): - return url.replace('http://', 'http://newsvote.bbc.co.uk/mpapps/pagetools/print/') \ No newline at end of file + return url.replace('http://', 'http://newsvote.bbc.co.uk/mpapps/pagetools/print/') diff --git a/src/libprs500/web/feeds/recipes/dilbert.py b/src/libprs500/web/feeds/recipes/dilbert.py index 0f44c88ace..2c7737e830 100644 --- a/src/libprs500/web/feeds/recipes/dilbert.py +++ b/src/libprs500/web/feeds/recipes/dilbert.py @@ -12,6 +12,8 @@ from libprs500.ptempfile import PersistentTemporaryDirectory class Dilbert(CustomIndexRecipe): title = 'Dilbert' + __author__ = 'Kovid Goyal' + description = 'Daily dilbert comic (from the last five days)' timefmt = ' [%d %b %Y]' feeds = [('Dilbert', 'http://feeds.feedburner.com/tapestrydilbert')] diff --git a/src/libprs500/web/feeds/recipes/economist.py b/src/libprs500/web/feeds/recipes/economist.py index c3faff859f..79407c5c64 100644 --- a/src/libprs500/web/feeds/recipes/economist.py +++ b/src/libprs500/web/feeds/recipes/economist.py @@ -14,6 +14,8 @@ from urllib2 import quote class Economist(BasicNewsRecipe): title = 'The Economist' + __author__ = "Kovid Goyal" + description = 'Global news and current affairs from a European perspective' oldest_article = 7.0 needs_subscription = False # Strange but true INDEX = 'http://www.economist.com/printedition' @@ -61,4 +63,4 @@ class Economist(BasicNewsRecipe): feeds[key].append(article) ans = [(key, feeds[key]) for key in ans if feeds.has_key(key)] - return ans \ No newline at end of file + return ans diff --git a/src/libprs500/web/feeds/recipes/newsweek.py b/src/libprs500/web/feeds/recipes/newsweek.py index 9bfb20d0bd..0d30e14614 100644 --- a/src/libprs500/web/feeds/recipes/newsweek.py +++ b/src/libprs500/web/feeds/recipes/newsweek.py @@ -10,6 +10,7 @@ class Newsweek(BasicNewsRecipe): title = 'Newsweek' __author__ = 'Kovid Goyal' + description = 'Weekly news and current affairs in the US' no_stylesheets = True extra_css = '#content { font:serif 12pt; }\n.story {font:12pt}\n.HorizontalHeader {font:18pt}\n.deck {font:16pt}' @@ -88,4 +89,4 @@ class Newsweek(BasicNewsRecipe): img = soup.find('img', alt='Current Magazine') if img and img.parent.has_key('href'): return urlopen(img.parent['href']).read() - \ No newline at end of file + diff --git a/src/libprs500/web/feeds/recipes/nytimes.py b/src/libprs500/web/feeds/recipes/nytimes.py index 631b984609..23efd6eabd 100644 --- a/src/libprs500/web/feeds/recipes/nytimes.py +++ b/src/libprs500/web/feeds/recipes/nytimes.py @@ -10,7 +10,9 @@ from libprs500.web.feeds.recipes import BasicNewsRecipe class NYTimes(BasicNewsRecipe): - title = 'The New York Times' + title = 'The New York Times' + __author__ = 'Kovid Goyal' + description = 'Daily news from the New York Times' timefmt = ' [%a, %d %b, %Y]' needs_subscription = True diff --git a/src/libprs500/web/feeds/recipes/outlook_india.py b/src/libprs500/web/feeds/recipes/outlook_india.py index 5059ef52ad..021a7e9890 100644 --- a/src/libprs500/web/feeds/recipes/outlook_india.py +++ b/src/libprs500/web/feeds/recipes/outlook_india.py @@ -12,6 +12,8 @@ import re class OutlookIndia(BasicNewsRecipe): title = 'Outlook India' + __author__ = 'Kovid Goyal' + description = 'Weekly news magazine focussed on India.' recursions = 1 match_regexp = r'full.asp.*&pn=\d+' html2lrf_options = ['--ignore-tables'] @@ -79,4 +81,4 @@ class OutlookIndia(BasicNewsRecipe): for b in bad: b.extract() return soup - \ No newline at end of file + diff --git a/src/libprs500/web/feeds/recipes/portfolio.py b/src/libprs500/web/feeds/recipes/portfolio.py index 1d2aa0c572..dbc89e580f 100644 --- a/src/libprs500/web/feeds/recipes/portfolio.py +++ b/src/libprs500/web/feeds/recipes/portfolio.py @@ -11,6 +11,8 @@ from libprs500.web.feeds.news import BasicNewsRecipe class Portfolio(BasicNewsRecipe): title = 'Portfolio' + __author__ = 'JTravers' + description = 'Conde Nast Portfolio: For the businessman.' use_embedded_content = True timefmt = ' [%a, %b %d, %Y]' html2lrf_options = ['--ignore-tables'] @@ -30,4 +32,4 @@ class Portfolio(BasicNewsRecipe): ('Playbook', 'http://feeds.portfolio.com/portfolio/playbook'), ('Tech Observer', 'http://feeds.portfolio.com/portfolio/thetechobserver'), ('World According to ...', 'http://feeds.portfolio.com/portfolio/theworldaccordingto'), - ] \ No newline at end of file + ] diff --git a/src/libprs500/web/feeds/recipes/usatoday.py b/src/libprs500/web/feeds/recipes/usatoday.py index 3f853e31ef..530d110b1d 100644 --- a/src/libprs500/web/feeds/recipes/usatoday.py +++ b/src/libprs500/web/feeds/recipes/usatoday.py @@ -43,4 +43,4 @@ class USAToday(BasicNewsRecipe): def print_version(self, url): return 'http://www.printthis.clickability.com/pt/printThis?clickMap=printThis&fb=Y&url=' + url - \ No newline at end of file + diff --git a/src/libprs500/web/feeds/recipes/wsj.py b/src/libprs500/web/feeds/recipes/wsj.py index f9f9553c43..c91050fb85 100644 --- a/src/libprs500/web/feeds/recipes/wsj.py +++ b/src/libprs500/web/feeds/recipes/wsj.py @@ -9,6 +9,8 @@ import re, urlparse class WallStreetJournal(BasicNewsRecipe): title = 'The Wall Street Journal' + __author__ = 'JTravers' + description = 'News and current affairs.' needs_subscription = True max_articles_per_feed = 10 timefmt = ' [%a, %b %d, %Y]'