Wednesday, March 4, 2015

Starting RSS Work + Finding Audiobook URLs (3/4)

Luckily, we've found a way to get audiobook URLs to load! Unfortunately, we have to use RSS, which (so far) is a LOT tougher to parse through than JSON.


This function will go through the RSS feed, and we can then figure out certain attributes of the code with these lines here.

From there, we've found that there's tags in the RSS feed that will allows us to determine title, URL, etc. with certain indicies. It's pretty much like JSON in that instance, it's just that parsing it can get a bit more complex with the different types of objects.

So far, I've gotten titles to load. I'll start working on audiobook URLs once I have that working perfectly.

1 comment:

  1. XML parsing is an essential skill for a web developer, so you're not wasting time here. You may find yourself having to learn how to write regular expressions (http://en.wikipedia.org/wiki/Regular_expression) along the way as well.

    btw How did you arrive at this solution? What resources did you use? Document! DOCUMENT! ;-)

    ReplyDelete