PDA

View Full Version : Coding my first app - animefreak.tv


Steel
November 10th, 2009, 05:31 AM
I am going to be coding an app for animefreak.tv I've already got what I need to parse and it looks pretty easy... would it be easier to set this up as a RSS feed? I've talked to the site owner and he okayed this so i'm sure he will help there Also if somebody wants to just code this I'm fine with that. I'm mainly learning Python so I can code some anime streaming apps.

--Anime title—
Url: http://www.animefreak.tv/book
begin when this is found: <div class="item-list"><ul><li class="first"*
title example to parse: <li><a href="/watch/hack-roots-english-dubbed-online-free">.hack // Roots</a></li>
end when this is found: <li class="last>*
--Episode title—
Example Url: http://www.animefreak.tv/watch/hack-legend-twilight-bracelet-english-dubbed-online-free
begin when this is found: <div id="book-navigation-2212" class="book-navigation">
1st Episode example to parse: <ul class="menu"><li class="leaf first"><a href="/watch/hacklegend-twilight-bracelet-episode-1-english-dubbed-online-free">.hack//legend of the Twilight Bracelet Episode 1</a></li>
2nd Episode example to parse: <li class="leaf"><a href="/watch/hacklegend-twilight-bracelet-episode-2-english-dubbed-online-free">.hack//legend of the Twilight Bracelet Episode 2</a></li>
End when this is found: </ul>

--Player--
Player example: "http://www.animefreak.tv/sites/default/files/af/misc/mediaplayer.swf"
Guess this needs to be parsed and sent to the mediaplayer: " 'mpl', '550', '412', '9'); "

DPK
November 10th, 2009, 06:39 AM
When it comes to Boxee apps, if the data you're referencing is in the form of an rss feed already it makes your life so much easier.

dkane
November 10th, 2009, 07:24 AM
That looks like a job for yahoo pipes http://pipes.yahoo.com
Pipes will parse the html page a spit out an rss feed for you.