View Single Post
Old 09-09-2010, 11:44 AM   #2673
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Quote:
Originally Posted by poloman View Post
edit: bringing it back on topic - I (lazily) added a simple feed for slashdot (http://rss.slashdot.org/Slashdot/slashdot) as I didn't want all the comments - the prospect of getting banned using the built in recipe deterred me from using it, and it takes a long time to run.

However, the simple feed results, when it appears on the kindle, shows the article summary fine in the sections view (ie the article title and the beginnings of the article), but when i click to read it, the article and header are not there - just the comments.

Is there a simple solution, or a recipe that solves this? I tried making one that keeps only the artle section, but didnt have much luck: <annoyingly, i seem to have deleted it - but have this one which shows the general idea>

Spoiler:

Code:
    keep_only_tags = [
                 dict(name='div',attrs={'class':'body'})
    ]
change it to look like this
[spoiler]
Code:
keep_only_tags = [
                    dict(name='a', attrs={'class':'datitle'}),
                    dict(name='span', attrs={'class':'date'}),
                    dict(name='div',attrs={'class':'body'})
                   ]
you will get the title then date next to each other. In that case you would probably wanna do a preprocess_html and insert a <br> somehow another. I haven't mastered the inserting part yet
TonytheBookworm is offline