This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to VietTUG.org

vietnamnet.vn: fixing rss for liferea

Added by over 3 years ago

Rss Feed of http://vietnamnet.vn/ works well in Firefox but it makes my Liferea stupid; I cannot click on feed links to jump to web browser. Note that sometimes the feed contains wrong links (are editors sleepy?)

Because Liferea allows us to use external command to get feeds, I created the file ~/bin/vietnamnet.sh with some sed substitutions.

#!/bin/sh

feed=http://www.vietnamnet.vn/rss/index.rss

curl --proxy 127.0.0.1:3128 \
  $feed \
  | gsed \
    -e 's#<link> #<link>#g' \
    -e 's# </link>#</link>#g' \
    -e "s#\(/[a-z]\+>\)#\1\n#g" \
    -e 's#http://vietnamnet.vnhttp://#http://#g'

Yes it works now...


Comments