View Single Post
Old 07-14-2011, 12:50 AM   #2
Bortolotto
Member
Bortolotto began at the beginning.
 
Bortolotto's Avatar
 
Posts: 15
Karma: 14
Join Date: Jun 2011
Location: Brazil
Device: Kindle
Lightbulb NatGeoMag recipe

Hi Gnome!

Here is it! I hope you like it!

By the way: I like KDE!

Spoiler:
Code:
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')]
Attached Files
File Type: txt NatGeoMag.txt (904 Bytes, 217 views)
File Type: epub NatGeoMag.epub (162.4 KB, 207 views)
Bortolotto is offline   Reply With Quote