Thursday Feb 13, 2014

RSS proxy by 'netcat' and 'curl'

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.

Using netcat to build a simple TCP proxy in Linux - Notes - Tweakblogs - Tweakers

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.

 





Thursday Jan 23, 2014

Orale Learning Library(OBE) updates via RSS

Oracle By Examples, short videos, tutorials...
A lot of materials from many product lines are put in one place.
(Not all, unfortunately..)

Oracle Learning Library (OLL)

Most Popular in Last Month

  • Using Database Change Notification With ODP.NET and Oracle Database 11g Hits: 17,399

And here's RSS XML.

Oracle Learning Library: Recent Activity

Oracle Learning Library: Recent Activity

Description: Oracle Learning Library RSS Feed
What's New in Webcenter 11.1.1.8 (Recorded Webcast) 

Released On: 01/21/2014 An overview of

This RSS does one smart thing. It alternate its contents every 10x{n} minutes even when
nothing changes in the repository. For example, "Released On: 01/16/2014" changes to
"Released On: Jueves, 16 Enero, 2014" which is apparently Spanish!

The RSS reader I use is rss2email and it's easily fooled by this and show all entries as new multiple times.
I'm not sure if my RSS reader is too old or RSS XML is wrong.
If you think the latter is the case, please let me know. I'll try to contact the administrator.

About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today