View Single Post
Old 10-16-2010, 03:30 PM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by PipSqueak View Post
Can anyone help me fix this recipe?
You don't need to use obfuscated_article as far as I can tell.
Try this to start:
Spoiler:

Code:
class Star_Malaysia(BasicNewsRecipe):
    title          = u'The Star Malaysia'
    __author__          = 'Starson17'
    oldest_article = 20
    max_articles_per_feed = 10
    keep_only_tags     = [dict(name='div', attrs={'id':'story_main'})]

    remove_tags_after = dict(name='div', attrs={'id':'story_content'})

    feeds          = [(u'Nation News', u'http://thestar.com.my/rss/nation.xml'), (u'Business News', u'http://thestar.com.my/rss/business.xml'), (u'Technology News', u'http://thestar.com.my/rss/technology.xml'), (u'World Updates', u'http://thestar.com.my/rss/worldupdates.xml'), (u'Sports News', u'http://thestar.com.my/rss/sports.xml'), (u'Columnists', u'http://thestar.com.my/rss/columnists.xml'), (u'Opinions', u'http://thestar.com.my/rss/opinion.xml')]
Starson17 is offline   Reply With Quote