NAME
WebFetch::CNNsearch - search for stories at CNN Interactive
SYNOPSIS
In perl scripts:
use WebFetch::CNNsearch;
From the command line:
perl
] [--use_keyword]-w
-MWebFetch::CNNsearch -e
"&fetch_main" -- --dir directory --search search-string [--pagesize search-page-size
DESCRIPTION
This module gets the stories by searching CNN Interactive.
The required --search parameter specifies a string to search for in CNN's news. The optional --pagesize parameter can be used to have the search engine return more entries per page if not enough are obtained for your use.
The optional --use_keyword parameter causes a search by keyword instead of by just any occurrence in the text. This parameter was added in WebFetch 0.07 because previous searches by body text only for "Linux" began to fail when a Linux story became listed in the "in other news" links on every page at CNN. Using a keyword-only search gets around this problem, returning only pages which have the string among their keywords. But this only works if the writers at CNN used the keyword you're interested in - do some searches either way to try it out first.
After this runs, the file cnnsearch.html
will be created or replaced. If there already was an cnnsearch.html
file, it will be moved to Ocnnsearch.html
.
AUTHOR
WebFetch was written by Ian Kluft for the Silicon Valley Linux User Group (SVLUG). Send patches, bug reports, suggestions and questions to webfetch-maint@svlug.org
.