RSS proxy by 'netcat' and 'curl'
By katsumii on Feb 13, 2014
If you are like me and having problem with your RSS reader,
maybe you can use 'nc'(netcat) and 'curl' combination to work around your problem.
I got this idea by reading this page.
nc -l -p 8080 <fifo | nc tweakers.net 80 >fifo
I admit that I don't fully understand the above line. Maybe I need to read the netcat's source files.
But this works. Here's the script.
#!/bin/bash # Run this script with nohup and point your RSS browser to localhost:8080 while true do nc -l localhost 8080 < fifo | curl --silent http://feeds.feedburner.com/OLLRecentActivity?format=xml | xml_grep --exclude 'channel/item/description' > fifo done
I don't think this qualifies as 'proxy' because the input is just stubbed out. Also, if your RSS reader is
capable of readling from local file, 'nc' is certainly an overkill.
Lastly, I used 'xml_grep' because I had it installed on my server by chance.
I want to rewrite with XSLT and post here when I have time.