Excerpt filters and feedburner.

Sam Ruby rubys at intertwingly.net
Fri Jun 13 18:07:56 EST 2008


On Thu, Jun 12, 2008 at 8:11 PM, Lech <unattended at gmail.com> wrote:
> So I'm still trying to wrap my head around python a bit but have
> managed to dig around and get some of the filters working after
> looking through the examples (why are some of these in the /examples/
> directory?). The only two I'm having issues with at the moment are SED
> and Excerpt filters.

Not all of the filters were created by the same person, so there may
not always be consistency in where they were placed.  The example
filters tend not to be ones that can be used "as is" but require
tailoring.

> From what I can tell, the SED filters are pretty straight forward
> regexp. However it seems that the regexp used is a bit outdated for
> the feedburner advert filter and I can't seem to be able to scrub the
> "digg this" and other images properly out of feeds. I'll play around
> with this a little more on my own, but if anyone already has a
> solution an update would be awesome.

Example feed with the data you want scrubbed?

> Also, how exactly do I utilize and properly the excerpt.py filter
> within my configs to strip images down?

Add something like the following to your config.ini:

http://www.intertwingly.net/code/venus/tests/data/filter/excerpt-images.ini

And then try the 'mobile' theme provided with Venus as a starting point.

- Sam Ruby


More information about the devel mailing list