Grouper Documentation
Grouper Documentation
twitter youtube linkedin google-plus
Grouper: RSS manager, XML converter, website scraper
Web This Site

Grouper - Documentation


Getting Started: Free Download | Purchase | Install
Reference: Functions | Plugins | Themes
Etc.: Configure | Affiliates

Google News Plugin

The Google News plugin can be used to search Google News for news items, blog posts, etc. Since Google News is able to return its results in RSS format, the plugin simply returns the search results as formatted by Google News.

Installation:
To use the Google News plugin, google.php must be located in the "plugins" folder inside the folder containing grouper.php. This is the default location when Grouper Evolution is installed.

Use:
The following code searches Google News and outputs the results in RSS format:

<?php
require_once '/YOUR/PATH/TO/grouper/grouper.php';
GrouperLoadPlugin('google.php'); /* this line may be omitted, because Google News in the default data source */
GrouperShow('SEARCH TERMS','CACHE-FILE-NAME');
?>

Configuration:
You may configure the behavior of the Google News plugin using the function GrouperSourceConf, as follows:

GrouperSourceConf('OptionName','new value');

See this page for a description of the options available for the Google News plugin.