New tech toy
May. 23rd, 2009 11:41 amThis morning was spent playing* with Yahoo Pipes, an incredibly simple tool for taking a web page, RSS feed, etc. and producing something new out of it.
It's a web-based gui, and very simple to get going.
All I wanted was to take the Hacker News RSS feed and change it so that the main link was to the Hacker News comments rather than to the site that the news entry was about. I assumed I'd have to finally get around to learning javascript, Python or similar to do this.
Turns out I just had to drag a couple of boxes around.
Step 1: Swap over the "link" and "description" elements in the feed. But this leaves the link from the "description" with an unnecessary HREF around it, and the link from the "link" withough a needed one.
Step 2: Use a regex to encapsulate the url new "description" element in an HREF.
Step 3: Use a regex to extract the url from the new "link" element.
Step 4: There is no step 4.

Looks like it has a lot of potential.
You can see the finished version at here at http://pipes.yahoo.com/andrewducker/hackernews
One of the nicest things is that you can take that one, clone it, and do your own thing with it - which is how I got started...
*It wasn't just spent doing that. There was also an hour and a half involving a webcam and Julie. You don't get a screenshot of _that_ though.
It's a web-based gui, and very simple to get going.
All I wanted was to take the Hacker News RSS feed and change it so that the main link was to the Hacker News comments rather than to the site that the news entry was about. I assumed I'd have to finally get around to learning javascript, Python or similar to do this.
Turns out I just had to drag a couple of boxes around.
Step 1: Swap over the "link" and "description" elements in the feed. But this leaves the link from the "description" with an unnecessary HREF around it, and the link from the "link" withough a needed one.
Step 2: Use a regex to encapsulate the url new "description" element in an HREF.
Step 3: Use a regex to extract the url from the new "link" element.
Step 4: There is no step 4.
Looks like it has a lot of potential.
You can see the finished version at here at http://pipes.yahoo.com/andrewducker/hackernews
One of the nicest things is that you can take that one, clone it, and do your own thing with it - which is how I got started...
*It wasn't just spent doing that. There was also an hour and a half involving a webcam and Julie. You don't get a screenshot of _that_ though.
no subject
Date: 2009-05-23 04:29 pm (UTC)http://theweirdone.com/totw
although I've not made that the permanent totw page as the feed output doesn't stick around for long when it's not updated, not sure how to get around that.
Meant to add this too
http://pipes.yahoo.com/theweird1ne/twitterness
no subject
Date: 2009-05-28 08:41 pm (UTC)I wonder why it doesn't cache stuff - or pull it in on demand.
no subject
Date: 2009-05-28 09:18 pm (UTC)There's apparently some caching thing I could set up on my site but I don't know enough about the implementation to get started.