Rewriting a URL in an RSS feed for autoblogged

379 views Asked by At

I pull images from my Pinterest feed to put on my photography blog. The rss address of my board is http://pinterest.com/bokehphotos/test/rss

If you stick that in a rss validator (http://feedvalidator.org/check.cgi?url=http%3a%2f%2fpinterest.com%2fbokehphotos%2ftest%2frss), you'll see that the img scrs you get all end in _b.jpg, like this: "media-cache-ec4.pinterest.com/upload/80290805828015284_SNRmbshz_b.jpg"

Change that _b to a _c, like this media-cache-ec4.pinterest.com/upload/80290805828015284_SNRmbshz_c.jpg, and you get the full size image, rather than the thumbnail with the _b.jpg

What I need to do is rewrite the URL in the feed before autoblogged grabs it.

I can add custom values and custom fields, and also do a search and replace on the feed using regular expression.

The only thing I have managed to do so far is change the name of the file autoblogged uploads from ending in b.jpg to c.jpg, but not the actual url in the feed!

I have been pulling my hair out over this for nearly two days now, and any help would be hugely appreciated.

Thanks very much, Leo

1

There are 1 answers

2
Callum On

Leo, have you investigated Yahoo Pipes? Quite a lot of tutorials on Youtube... sorry I can't be specific but I've used it in the past to achieve similar feed rewrites.