class NatGeoMag(BasicNewsRecipe): title = 'National Geographic Magazine' __author__ = 'Diniz Bortolotto' description = 'The National Geographic Magazine' publisher = 'National Geographic' oldest_article = 1 max_articles_per_feed = 30 category = 'geography, magazine' language = 'en_US' publication_type = 'magazine' use_embedded_content = False no_stylesheets = True remove_javascript = True feeds = [('National Geographic Magazine', 'http://feeds.nationalgeographic.com/ng/NGM/NGM_Magazine')] def print_version(self,url): segments = url.split('/') printURL = '/'.join(segments[0:3]) + '/print/' + '/'.join(segments[3:]) return printURL remove_tags = [dict(id='global_footer')]