View Single Post
Old 09-20-2012, 09:30 AM   #3
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
May be this will work for you:

Spoiler:
Code:
class anan(BasicNewsRecipe):

    title = 'Anandtech'
    description = 'comprehensive Hardware Tests'
    __author__ = 'Oliver Niesner' # 2012-09-20 AGE: update
    use_embedded_content   = False
    language = 'en'
    timefmt = ' [%d %b %Y]'
    max_articles_per_feed = 40
    no_stylesheets = True
    remove_javascript = True
    encoding = 'utf-8'
# 2012-09-20 AGE: remove this section
#    remove_tags=[
#        dict(name='a', attrs={'style':'width:110px; margin-top:0px;text-align:center;'}),
#        dict(name='a', attrs={'style':'width:110px; margin-top:0px; margin-right:20px;text-align:center;'}),
#        {'attrs':{'class':['article_links', 'header', 'body_right']}},
#        {'id':['crumbs']},
#        ]

    keep_only_tags = [{'class':'subbox'}] # 2012-09-20 AGe add
     
    feeds =  [ ('Anandtech', 'http://www.anandtech.com/rss/')]

    def print_version(self,url):
        return url.replace('/show/', '/print/')


Let me know.
Attached Files
File Type: rar AnandTech_upd_AGe_2012-09-20.rar (644 Bytes, 127 views)
Divingduck is offline   Reply With Quote