View Single Post
Old 01-13-2011, 04:51 PM   #3
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
Ok, I've got an odd one... I redid the Tri-City Herald Mid-Columbia recipe to try to recover those images. And it worked, I got 'em. But they show up at the bottom of the article instead of under the headline with the caption. Is there a way to move the items within an article around, so I could either move the image up or put the caption down where it belongs?

Code:
class AdvancedUserRecipe1294886492(BasicNewsRecipe):
    title          = u'Tri-City Herald'
    description    = 'The Tri-City Herald Mid-Columbia.'
    __author__     = 'Laura Gjovaag'
    oldest_article        = 1.5
    max_articles_per_feed = 100
    no_stylesheets        = True
    remove_javascript     = True
    keep_only_tags = [
                      dict(name='div', attrs={'id':['story_header', 'cycleImageCaption', 'story_body']})
                      dict(name='img', attrs={'class':'imageCycle'}),
                      ]
    remove_tags    = [
                      dict(name='div', attrs={'id':'story_mlt'}),
                      dict(name='a', attrs={'id':'commentCount'}),
                      dict(name=['script', 'noscript', 'style'])]
    extra_css      = 'h1{font: bold 140%;} #cycleImageCaption{font: monospace 60%}'

    feeds          = [
                      (u'Tri-City Herald Mid-Columbia', u'http://www.tri-cityherald.com/901/index.rss')
                     ]
Tegan is offline   Reply With Quote