Quote:
Originally Posted by poloman
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>
|
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