diff --git a/src/libprs500/web/feeds/recipes/__init__.py b/src/libprs500/web/feeds/recipes/__init__.py index a8c3c517b6..2fef100e68 100644 --- a/src/libprs500/web/feeds/recipes/__init__.py +++ b/src/libprs500/web/feeds/recipes/__init__.py @@ -7,6 +7,7 @@ Builtin recipes. recipes = [ 'newsweek', 'atlantic', 'economist', 'dilbert', 'portfolio', 'nytimes', 'usatoday', 'outlook_india', 'bbc', 'greader', 'wsj', + 'wired', ] import re, imp, inspect, time diff --git a/src/libprs500/web/feeds/recipes/wired.py b/src/libprs500/web/feeds/recipes/wired.py new file mode 100644 index 0000000000..9bfbefa2bb --- /dev/null +++ b/src/libprs500/web/feeds/recipes/wired.py @@ -0,0 +1,52 @@ +#!/usr/bin/env python +__license__ = 'GPL v3' +__docformat__ = 'restructuredtext en' + +import re + +from libprs500.web.feeds.news import BasicNewsRecipe + +class Wired(BasicNewsRecipe): + + title = 'Wired.com' + __author__ = 'David Chen DaveChenorg>' + description = 'Technology news' + timefmt = ' [%Y%b%d %H%M]' + no_stylesheets = True + + preprocess_regexps = [(re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in + + [ + + ## Remove any banners/links/ads/cruft before the body of the article. + (r')|(