views:

36

answers:

2

Hi i am using Ruby on rails. I am developing application where users can import their blogposts from wordpress , blogger and may be typepad into my site. can any one guide me how can i do it. Even if it's not a ROR solution do give me some ideas. I tried using Gdata api for blogger but that just gave me the link to post.

+2  A: 

I don't know of an API that will do all of that (there maybe one though), but couldn't you just get a user's posts from their RSS feed? Since wordpress, blogger and pretty much all other "blogging" sites have an RSS feed, that should make it pretty easy to import posts because the data is just XML. You might have to parse each feed differently because blogger and wordpress probably render slightly different XML tags.

The only problem I can think of is that if a user's RSS feed has some kind of excerpt mode enabled. If so, you would have to tell them to disable that.

A nice XML parser for RoR is Nokogiri. I've used it before and thought it was pretty easy to setup and use. Here's a link to some tuts on Nokogiri: http://nokogiri.org/tutorials

CalebHC
A: 

But the feeds will not give the full feed values so any solution for this?

Shrikanth Hathwar
Please give any solution to this
Shrikanth Hathwar