Update .net magazine

This commit is contained in:
Kovid Goyal 2013-05-28 07:28:12 +05:30
parent 542ced3b83
commit ebf397dece

View File

@ -3,7 +3,7 @@ import re
class dotnetMagazine (BasicNewsRecipe):
__author__ = u'Bonni Salles'
__version__ = '1.0'
__version__ = '1.1'
__license__ = 'GPL v3'
__copyright__ = u'2013, Bonni Salles'
title = '.net magazine'
@ -11,6 +11,7 @@ class dotnetMagazine (BasicNewsRecipe):
no_stylesheets = True
encoding = 'utf8'
use_embedded_content = False
# recursion = 1
language = 'en'
remove_empty_feeds = True
extra_css = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} '
@ -33,5 +34,14 @@ class dotnetMagazine (BasicNewsRecipe):
]
feeds = [
(u'net', u'http://feeds.feedburner.com/net/topstories')
(u'net', u'http://feeds.feedburner.com/net/topstories?format=xml')
]
def skip_ad_pages(self, soup):
text = soup.find(text='click here to continue to article')
if text:
a = text.parent
url = a.get('href')
if url:
return self.index_to_soup(url, raw=True)