WebFetch::Slashdot - download and save Slashdot headlines |
WebFetch::Slashdot - download and save Slashdot (or any Slashdot-compatible) headlines
In perl scripts:
use WebFetch::Slashdot;
From the command line:
perl -w -MWebFetch::Slashdot -e "&fetch_main" -- --dir directory [--alt_url url [--alt_file file]
Alternative command line to filter out specific authors:
perl -w -MWebFetch::Slashdot -e "&fetch_main" -- --dir directory --filter author [--alt_url url] [--alt_file file]
This module gets the current headlines from Slashdot.org via their XML interface.
The optional --alt_url
parameter allows you to select a different
URL to get the headlines from.
An optional command-line argument of --filter
may be used to
filter out specific authors.
This is not necessarily recommended but it was in use at
SVLUG when this module was first developed.
After this runs,
by default the file sdot.html
will be created or replaced.
If there already was an sdot.html
file, it will be moved to
Osdot.html
.
These filenames can be overridden by the --alt_file
parameter.
WebFetch was written by Ian Kluft
for the Silicon Valley Linux User Group (SVLUG).
Send patches, bug reports, suggestions and questions to
maint@webfetch.org
.
WebFetch::Slashdot - download and save Slashdot headlines |