Recoding links in RSS

Problem: as client of our university library I have access to certain databases. The RSS feed of the databases contains links that does not work with the kind of access that library clients have. The fix is a oneliner (a long oneliner, but still), but to use the corrected rss-file, you need to put them on the webb. In my case the following snippet did the job:

wget -O - -nd 'http://www.infotorgjuridik.se/premium/straffratt/rss.xml' | \
sed 's/<link>http:\/\/www.infotorgjuridik.se\/premium/<link>https:\/\/www5-infotorg-se.ezproxy.ub.gu.se\/rb\/premium/' \
 > /var/www/sociologi.cjb.net/infotorg.xml

Put the code in a file, make it executable, call the file from a cron entry, and you are done.

chmod 755 /home/hans/bin/recode-rss-links
@daily /home/hans/bin/recode-rss-links

Is it legal for me to publish this RSS-feed, or can I only use it myself?

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: oktober 17, 2019