Reply to comment

Cheap Mobile RSS Reader

If you're cheap and have a low-end, generic MP3 player that will also display text files, you can read your RSS feeds on it with the help of this script. It's called, and I think it was on the web. I don't know. I may have written it and forgotten about it. Anyway, it was found on my computer.

#! /usr/bin/perl

use XML::RSS;
use WWW::Curl::Easy;

my $curl = WWW::Curl::Easy->new();
open DEVNULL,">/dev/null";
$curl->setopt(CURLOPT_URL, $ARGV[0] );
my $response_body;
open (my $fileb, ">", \$response_body);
my $retcode = $curl->perform;

my $rss = new XML::RSS;

foreach my $item (@{$rss->{'items'}}) 
	print $item->{'title'}."\n\n";
	print $item->{'description'}."\n\n";

close DEVNULL;

Here's a script that uses it to load up a bunch of text files RSS feeds into my somewhat cheap Sly Electronics mp3 player/camera/videocamera.

#! /bin/bash 
$RSS > $PATH/krug.txt
$RSS > $PATH/eastside.txt
$RSS > $PATH/wiseb.txt
$RSS > $PATH/scholar.txt
$RSS > $PATH/bloor.txt
$RSS > $PATH/fsdaily.txt
$RSS > $PATH/imcnews.txt
$RSS > $PATH/techcrunch.txt
$RSS > $P
$RSS > $PATH/deicaza.txt
$RSS > $PATH/salpha.txt
$RSS > $PATH/danaboyd.txt

When the player is plugged in, I type bin/updaterss and, a minute later, my feeds are on the player.


The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.

More information about formatting options

1 + 2 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.