This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Read a Web page  RSS feed

 
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I ll be glad if any one could help me with the following.
Here is what I want to do.

I read an RSS feed of any site, and for a specific link returned in by RSS Feed, I want to read that page and embed/include it to my page rather than going to the original site.

Can I use Dispatchers or HttpConnection for this purpose.
Optionally I also want to remove un-necessary contents from the included page.

I tried following but did not work

RSS Feed : http://hosted.ap.org/lineups/TOPHEADS.rss?SITE=TXKER&SECTION=HOME

One of the links returned by above Feed is : http://hosted.ap.org/dynamic/stories/I/IRAQ_SADDAM_PHOTOS?SITE=TXKER&SECTION=HOME&TEMPLATE=DEFAULT




I also tried the dispatcher include passing the URL, but no luck.

Thanks in advance
Ahmad
 
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aren't RSS feeds essentially just XML files? If so, you could easily open a socket connection to the remote server and parse it (e.g. JDOM) and extract the link. I do this with the Slashdot RSS feed.
 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Kashif,

Can you please post some sample code for how you read it.
Basically What I am looking is like web page, which read news from CNN, but shows it within their own site.
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!