rt.cpan RSS feeds

David Cantrell david at cantrell.org.uk
Thu Feb 8 14:19:13 GMT 2007


I wrote:

> Cos if it can't, then I'm more likely to write a quick shell script to
> GET and scrape the list from the website myself ...

And one lunch-break later ...

---

#!/bin/sh

for i in `
    GET http://rt.cpan.org/?user=YOURUSERNAME\&pass=sekr1t |
    grep Dist/Display.html\?Status=Active|sed 's/.*Queue=//;s/".*//'
`; do
    if (! r2e list|grep rt.cpan.org.*$i>/dev/null) ; then
        echo Adding RSS feed for $i on rt.cpan.org
        r2e add \
	  http://rt.cpan.org/Search/Results.rdf?user=YOURUSERNAME\&pass=sekr1t\&Query=Queue%20%3D%20\'$i\'%20AND%20\(%20Status%20%3D%20\'new\'%20OR%20Status%20%3D%20\'open\'%20OR%20Status%20%3D%20\'stalled\'%20\)
    fi
done

---

where r2e is <http://rss2email.infogami.com/>.  I suppose I should put
this script on the CPAN itself, even though it's not written in perl.

-- 
David Cantrell | top google result for "internet beard fetish club"

Arbeit macht Alkoholiker


More information about the london.pm mailing list