Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Blog Reader Project Different URL Help!

Hi! I want to use a different blog to get posts. However, the blog only has RSS Feeds. So how would i set up the URL so I can simply plug it in for the Team Treehouse URL? Thanks!

2 Answers

Alex Hedley
Alex Hedley
16,381 Points

You are going to need to change a couple of things. At the moment the tut uses JSONSerialiser so you will need to change it to parse RSS instead, there are a few tuts below:

http://www.raywenderlich.com/2636/how-to-make-a-simple-rss-reader-iphone-app-tutorial

http://www.appcoda.com/ios-programming-rss-reader-tutorial/

http://www.touch-code-magazine.com/tutorial-building-advanced-rss-reader-with-ios6/

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Alex has given a good answer. If you have access to the blog and it's WordPress, then you can use the JSON API plugin. Amit Bijlani found this for us (see his answer to a similar question which includes a link to a gist you can use as well).

How about drupal?

Ben Jakuben
Ben Jakuben
Treehouse Teacher

I've never worked with Drupal, but if you can find a similar plugin that returns JSON data about a specific blog, then you should only need to make minor changes to the Blog Reader app code regarding how the JSON data is parsed.