Excerpt filters and feedburner.

Lech unattended at gmail.com
Fri Jun 13 22:55:59 EST 2008


On 6/13/08, Sam Ruby <rubys at intertwingly.net> wrote:
> 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.

Ahh, alright. I was just curious why they were split up. Initially it
seems like they serve as some type of secondary (don't move these or
you'll destroy the world) type of filters. Maybe just moving them into
the main filters directory and sticking a readme file warning of
needed tweaking would clear this up in the future. No big deal though.

>  > 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?
>

I've been toying around and attempting to scrub the "feedflare" (digg
this/reddit) adverts from a friends feedburner feed located here:
http://feeds.feedburner.com/Bdetails using the feedburner.sed filter.
I've tried a number of methods but nothing seems to work.

>  > 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.
>

Hmm, odd. I've been using a copy of the classic_fancy theme and have
exactly that in my config but it's not working as expected either. :F
and debug isn't showing me anything out of the ordinary when I run
Venus.

-Lech


More information about the devel mailing list