View Single Post
Old 03-01-2009, 05:30 PM   #309
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Newstimes recipe:

Code:
class NewsTimes(BasicNewsRecipe):
    title                 = 'Newstimes'
    __author__            = 'Darko Miletic'
    description           = 'news from USA'    
    oldest_article        = 1
    max_articles_per_feed = 100
    no_stylesheets        = True
    use_embedded_content  = False
    encoding              = 'utf-8'
    remove_javascript     = True

    keep_only_tags = [
                         dict(name='h1', attrs={'id':'articleTitle'})
                        ,dict(name='div', attrs={'id':['articleByline','articleDate','articleBody']})
                     ]
    remove_tags = [
                    dict(name=['object','link'])
                   ,dict(name='div', attrs={'class':'articleEmbeddedAdBox'})
                  ]

    
    feeds = [ 
              (u'Latest news'    , u'http://feeds.newstimes.com/mngi/rss/CustomRssServlet/3/201071.xml' )
            ]
kiklop74 is offline