Yes, I can. Sorry for that, I thought it was obviously because I use more than one newssource.
I need this for the "Neue Züricher Zeitung" and for the "Rheinische Post" and certainly for some more.
All those newssources should be collected in _one_ single EPUB File.
Quote:
Originally Posted by roedi06
Can you explain me what te point is of multiple "remove_tags_before" and "remove_tags_after".
|
"remove_tags" is quite good if you only want to remove some pics, or pic undertitle. It's a mess to substitute "remove_tags_after" and "remove_tags_before" with it.
Quote:
If you use more of those, you are basicly implementing "remove_tags".
|
That's exactly what I want and I want it depending on my current source, e.g. "remove_tags_before = dict(id='headline')" for the Rheinische Post and "remove_tags_before = dict(name='p', attrs={'class':'dachzeile'})" for the NZZ. And I don't want to have two recipes and two epub files.
Quote:
The functions "before" and "after" are a bonus to make life easier if you just want to keep a certain portion, without the hassle of removing every other tag. From withing those tags, you need to specify other remove_tags ofcourse.
|
Any ideas?