RodeoRamsey
RodeoRamsey

Reputation: 506

Viewing raw RSS feed?

I use WordPress for several websites. I want to customize one of the RSS feeds and create a template for the outputted data but everytime I click on the feed link (myurl.com/feed) it takes me to a Google page to add it to my Google Reader. I use Google Reader and normally want everything else to default to that, but how can I override it this one time so I can see the raw xml/rss feed? Thanks.

Upvotes: 6

Views: 12944

Answers (5)

Eoin
Eoin

Reputation: 1515

Change the browser settings for your feed initially - you can change it back afterwards. Once done...

View the RSS feed, it will show you a pretty version. Then view the source code. You'll see the raw feed. No different browsers, no CURL, no WGET.

Upvotes: 0

RodeoRamsey
RodeoRamsey

Reputation: 506

I used a combination of several different browsers to test how each RSS feed was displayed, then I customized my stylesheet based on the output.

Upvotes: -5

dburke
dburke

Reputation: 1256

A solution that doesn't require using different browsers:

In Firefox preferences, select Applications and search for "Web Feeds." Changing the action to "Preview in Firefox" allows Firefox to load the feed itself, instead of google reader. It has a "gussied up" display of the feed in the browser, but you can also view the source to see the actual text of the feed.

Upvotes: 3

Punit Vora
Punit Vora

Reputation: 5188

You can use a difference broswer, though most browsers will apply an xsl stylesheet to raw feed data by detecting that its a feed using the http response content type header. I know that Google Chrome shows some kind of raw data for rss feeds though its not exactly pure xml.

You can Use Fiddler to see the response. Or use some other http sniffer tool.

Upvotes: 2

Gipetto
Gipetto

Reputation: 1048

The best way to view raw RSS is with CURL over the command line. Browsers can alter the source (firefox in particular) when showing it to you so the best thing is to get it unfiltered from curl.

Upvotes: 7

Related Questions