View Single Post
Old 06-01-2011, 06:37 PM   #2
bowbow
Member
bowbow began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2011
Device: kindle 3
I managed to get a decent, very clean recipe for the free section, with the help of the tagesschau.de-recipe:

Code:
class AdvancedUserRecipe1306964283(BasicNewsRecipe):
    title          = u'ChangeX'
    oldest_article = 7
    max_articles_per_feed = 100

    cover_url = 'https://7012901881146393470-a-1802744773732722657-s-sites.googlegroups.com/site/banglabeltze/Home/changex.png?attachauth=ANoY7coFJ1S94rp0tfSsNy40Vkvjz8v2yvVH6ivi5d_wHHwGKbwT9x3wTDGE-SNvpHN9dCG7oC6vEvGFZz7Z75qO5Ho_iXE2_Fr7jqzCBP8kmfRwmGkUlGJMCnQKO52m3u12QHbzEaydSpELKDDc_tKHnOj6OZ-ZRCLuiJYUBM4xYVX43sIh9hvp9mGrlvzPc6mWOYPQAOhmu1p28mLRDOASkEUG9ZZc0w%3D%3D&attredirects=1'


    remove_tags = [
dict(name='div', attrs={'class':['right','optionbox']}),
dict(name='div', attrs={'id':['header','footer']}),
dict(name='a', attrs={'class':['top']}),
]

# entfernen aller hotlinks
    def preprocess_html(self, soup):
        for alink in soup.findAll('a'):
            if alink.string is not None:
               tstr = alink.string
               alink.replaceWith(tstr)
        return soup

    feeds          = [(u'XPartner', u'http://www.changex.de/Feed/Partnerforum/RSS20')]

Any help on the subscription part is highly appreciated, I may also help with a (temporary) login!

Cheers!
bowbow is offline   Reply With Quote