Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Read RSS news feeds via a Perl script UNIX
Ever want to put that Mac OS X voice box to the test? Here's a chance to have your OS X machine read the news from RSS feeds to wake you up in the morning, or whenever you want to hear the news instead of read it. All you need is wget (also available via Fink) installed, and this perl script I wrote called speak_up.

Other than that, OS X (tested on 10.3.5 with the Developer Tools installed) has all the perl you need to be up and running. In the script, I have comments on how you can configure it or run it out of the unix scheduler (cron) with different sites throughout the day.

[robg adds: I haven't tested this one...]
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)

Read RSS news feeds via a Perl script | 2 comments | Create New Account
Click here to return to the 'Read RSS news feeds via a Perl script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
You don't need WGET
Authored by: wallybear on Sep 28, '04 11:31:50AM

You can use curl instead of wget. The curl command is already installed.
Just change the line:

$wget = "/usr/local/bin/wget";

with this one:

$wget = "/usr/bin/curl";

and change this one (at the end of the script):

$done = system("${wget} -q --output-document=$temp_xml -U Mozilla '$rss'");

with this one:

$done = system("${wget} -s --output $temp_xml -A Mozilla '$rss'");

That's all. I did not change the variable name ($wget) to make changes simpler.

[ Reply to This | # ]
Cheesegrater and Portalizer
Authored by: reeses on Sep 28, '04 12:56:37PM
I've been using JWZ's Cheesegrater and Portalizer for a few years to achieve this. One scrapes non-rss-exposing sites and creates rss, the other consumes rss and builds a web page tying all of your feeds into one html.

[ Reply to This | # ]