googlenews.py

While half the world is watching Olympic Games and the other half is discussing about decorators, and as far as my good proposal (“#decorator” :) has been sadly ignored, I’ve spent last days writing googlenews.py: a simple python script to retrieve news from Google News Service.

Features:

  • Supported feeds: es, fr, de, it, nz, au, in, ca, uk, us
  • Can export to: rss2 xml and html files

Requirements:

I use it in a hourly cron script, building rss files which I read with liferea:

[inigo@inigo inigo]$ cat /etc/cron.hourly/googlenews
#!/bin/bash
/home/devel/mine/googlenews/googlenews.py --rss-path=/tmp -w -q es
/home/devel/mine/googlenews/googlenews.py -cnes --rss-path=/tmp -w -q nz
exit 0
[inigo@inigo inigo]$

Type googlenews.py --help for more info.

Hope you like it.