The Python script googlefeed generates an RSS file from Google search results.
The script examines up to 1000 query results, the maximum allowed by the Google API. To keep the size of the feed manageable, the feed does not include search results found on the first run of the script or search results found more than three days ago. In other words, the feed includes new search results found during the last three days.
The usage is:
python googlefeed.py key query state_path rss_path
- A Google API license key. You can obtain a license key from the Google API page.
- A Google search string.
- Path to file used to track previous search results.
- Path to the generated RSS file. To enable optimal use of conditional GET, the RSS file is only updated if it actually changes.