View Single Post
Old 10-12-2010, 12:41 PM   #3
muwa
Junior Member
muwa began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Everything worked like a charm. Thanks a bunch!

Here is final code:
Spoiler:

class AdvancedUserRecipe1286819935(BasicNewsRecipe):
title = u'Novaya Gazeta'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
conversion_options = {'linearize_tables' : True}

feeds = [(u'Articles', u'http://www.novayagazeta.ru/rss_number.xml')]


def preprocess_html(self, soup):
for item in soup.findAll(attrs={'style':True}):
del item['style']
return soup

def print_version(self, url):
return url + '?print=true'
muwa is offline   Reply With Quote