Your webbots can also modify or filter data received from RSS (or any other source). In this chapter's news aggregator, you could filter (i.e., not use) any stories that don't contain specific keywords or key phrases. For example, if you only want news stories that contain the words webbots, web spiders, and spiders, you could create a filter array like the one shown in Listing 12-7.
$filter_array="webbots"; $filter_array="web spiders"; $filter_array="spiders";
Listing 12-7: Creating a filter array
We can use
$filter_array to select articles for viewing by modifying the
download_parse_rss() function used in Listing 12-4. This modification is shown in Listing 12-8.
function download_parse_rss($target, ...