yesthattom: (Default)
[personal profile] yesthattom
I have an RSS feed (actually, a URL to a RDF file). I want to get the contents, transform it to a bit of simple HTML that someone could #include or <iframe>, and save it to disk.

For example, both My Yahoo and Google Personalized Home let you "add content" by specifying an RSS feed URL. Then magically the content (or at least the headlines and maybe a tiny bit more) appear in a box on my homepage. I want to provide that kind of thing.

I'm sure Perl has a CPAN module for this. Oh, Lazyweb, won't you help me?

Date: 2006-05-05 07:41 pm (UTC)
From: [identity profile] nulldevice.livejournal.com
Well...RSS is just XML, so there's more than likely an XSLT transform that does what you want it to do already in existence. From there there's like 8,000,000 little scripts in Perl, PHP, Python, VB, C#, Java, Ruby, yadda yadda yadda that apply XSLT to XML.

http://manalang.com/archives/2004/06/17/xslts-for-rss-and-atom-feeds

Date: 2006-05-05 08:23 pm (UTC)
From: [identity profile] yesthattom.livejournal.com
Bah! XSLT would require too much thinking.

Date: 2006-05-06 03:49 pm (UTC)
From: [identity profile] cpj.livejournal.com
I agree with the XSLT solution. :P

Date: 2006-05-05 08:04 pm (UTC)
From: [identity profile] awfief.livejournal.com
um, you work for google, can't you just ask?

But yah, nulldevice is correct. The only reason my blog shows up nicely in my browser is because I have style sheets and stuff that tell the XML to show up nicely.

Date: 2006-05-05 08:25 pm (UTC)
From: [identity profile] yesthattom.livejournal.com
Bah! Double-bah!

I found this tutorial which I ignored, found the perl script at the end, and ran it. I'll fix up the CSS later.

Date: 2006-05-05 08:52 pm (UTC)
From: [identity profile] ljtourist.livejournal.com
My goodness, you are channeling [livejournal.com profile] jwz, aren't you? ;-)

Date: 2006-05-06 12:48 pm (UTC)
From: [identity profile] yesthattom.livejournal.com
Yeah but he gets better results :)

Date: 2006-05-06 11:51 am (UTC)
ext_86356: (profile)
From: [identity profile] qwrrty.livejournal.com
um, you work for google, can't you just ask?

I admit that was kind of my reaction too :-)

December 2015

S M T W T F S
  12345
6789 101112
13141516171819
202122 23242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 5th, 2026 02:13 pm
Powered by Dreamwidth Studios